-
Hi Urmo |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
If you are talking about a snippet like this: <!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//{$MATOMO_URL}/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', {$IDSITE}]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code --> You can take the script part and insert it into the Configurable JS part in the settings. |
Beta Was this translation helpful? Give feedback.
-
why i ask it because i add code yesterday and tested on phone and another site and did not see any visit. <html>
<body>
<!--StartFragment-->
<!-- 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="//matomo.urmo.ee/";
| _paq.push(['setTrackerUrl', u+'matomo.php']);
| _paq.push(['setSiteId', '3']);
| 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 -->
<!--EndFragment-->
</body>
</html> into frontend.blade.php file. |
Beta Was this translation helpful? Give feedback.
-
https://lycheeorg.github.io/docs/external_tracking.html thanks to timo-reymann |
Beta Was this translation helpful? Give feedback.
https://lycheeorg.github.io/docs/external_tracking.html thanks to timo-reymann