tisonkun commented on issue #15664:
URL: https://github.com/apache/pulsar/issues/15664#issuecomment-1305280536

   Here is the code snippet provided by privacy@:
   
   ```js
   <!-- Matomo -->
   <script>
     var _paq = window._paq = window._paq || [];
     /* tracker methods like "setCustomDimension" should be called before
     "trackPageView" */
     /* We explicitly disable cookie tracking to avoid privacy issues */
     _paq.push(['disableCookies']);
     _paq.push(['trackPageView']);
     _paq.push(['enableLinkTracking']);
     (function() {
       var u="https://analytics.apache.org/";;
       _paq.push(['setTrackerUrl', u+'matomo.php']);
       _paq.push(['setSiteId', '32']);
       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 -->
   ```
   
   To integrate with Docusaurus platform, I already made an example 
[here](https://github.com/korandoru/town/compare/63ad77eb2d1212bf860257e26d4876b57c753ead~1...c298186b05f266d4cf2605b67ee6a6f674b41cbd).
 I'm gonna submit a pull request later when I have some spare time, but you can 
also follow my example and prepare a patch :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to