Giter VIP home page Giter VIP logo

Comments (5)

jonkoops avatar jonkoops commented on July 26, 2024 1

Correct, and in the next version we will get rid of window.MatomoTracker entirely.

from matomo-tracker.

jonkoops avatar jonkoops commented on July 26, 2024

Thanks for submitting this issue @piotr-cz. I agree the documentation is quite confusing on this matter. I am adding this to the milestone for the next version where we intend to remove the global variable and only use the module version.

from matomo-tracker.

piotr-cz avatar piotr-cz commented on July 26, 2024

Thanks,
so for now all examples in readme except bundleshould use new window.MatomoTracker instantiation style

from matomo-tracker.

piotr-cz avatar piotr-cz commented on July 26, 2024

There are more problems with window.MatomoTracker:

  • when using rollup, it treats properties on window object as global dependency and doesn't include in builds
  • when using terser, it tends to shorten property name to for example window.jt.default

from matomo-tracker.

piotr-cz avatar piotr-cz commented on July 26, 2024

Probably fixed by #196 and #197

from matomo-tracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.