You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package currently uses @datapunt/matomo-tracker-js to send pageview events to Matomo, but it is unmaintained and frankly overkill for this use case. The basic Matomo tracking code is pretty simple and we can re-create it in React without using a library:
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//some.domain.com/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
The text was updated successfully, but these errors were encountered:
This package currently uses
@datapunt/matomo-tracker-js
to send pageview events to Matomo, but it is unmaintained and frankly overkill for this use case. The basic Matomo tracking code is pretty simple and we can re-create it in React without using a library:The text was updated successfully, but these errors were encountered: