Scroll Viewport and analytics integration

Comments

8 comments

  • Official comment
    Avatar
    K15t Team

    Hi Dorte,

    On Confluence Cloud, we already integrate with a GDPR compliant solution called Cloudflare Web Analytics. We are also considering to extend the integration offers to include Matomo, which has a cookieless tracking method.

    If you're on Confluence DC you can still use these services. You will just need to grab the embed code that they provide you and inject it in your custom Javascript file to the theme.

    Please let me know if you have any questions about this!

    Cheers,

    Laura

    Comment actions Permalink
  • Avatar
    Dorte Jacobsen

    Hi Laura,

    Thank you so much for your reply. 

    Unfortunately, we're still on Server and the decision on Cloud vs Data Center is still outstanding.

    We'll definitely have a look at the two solutions you mention.

    Thanks again!

    Dorte

    0
    Comment actions Permalink
  • Avatar
    K15t Team

    Hi Dorte,

    Scroll Viewport for Data Center is the same as for Server. So Lauras mentioned solution for DC works also for Server the similar way. Here is the documentation article on how to inject custom css and javascript into the theme.

    Cheers,
    Steffen

    0
    Comment actions Permalink
  • Avatar
    Dorte Jacobsen

    Hi Steffen,

    Thanks for taking the time to comment, appreciate it!

    You guys are always SO helpful :-) 

    Dorte

    0
    Comment actions Permalink
  • Avatar
    Artem.K

    Good afternoon. I have the Matomo app installed, but the js-code generated by it still doesn't track the actions of site users. I embed the script in the file custom.js, Help Center Theme. What could be wrong?

    0
    Comment actions Permalink
  • Avatar
    K15t Team

    Hi Artem,

    If you could please send us the js code that you've added to help@k15t.com, we'll be happy to look at it.

    Cheers,

    Laura

    0
    Comment actions Permalink
  • Avatar
    Artem.K

    Hi Laura

    I insert this code into custom.js I don’t know JS well, maybe it’s a trifle and it’s enough to fix a couple of lines.

    Thank you very much in advance!

    <!-- Matomo -->
    <script type="text/javascript">
      var _paq = window._paq || [];
      /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="//177.17.4.56/";
        _paq.push(['setTrackerUrl', u+'matomo.php']);
        _paq.push(['setSiteId', '6']);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
      })();
    </script>
    <!-- End Matomo Code -->
    0
    Comment actions Permalink
  • Avatar
    K15t Team

    Hi Artem,

    As we mention on https://help-cloud.k15t.com/scroll-viewport/inject-custom-javascript, it's important that you remove any HTML elements from the code.

    It should looks as follows:

    var _paq = window._paq || [];
    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
    _paq.push(['trackPageView']);
    _paq.push(['enableLinkTracking']);
    (function() {
      var u="//177.17.4.56/";
      _paq.push(['setTrackerUrl', u+'matomo.php']);
      _paq.push(['setSiteId', '6']);
      var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
      g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
    })();

    Or, if you'd like to use cookielesstracking , you'll need to add : _paq.push(['disableCookies']);
    Like this:

    var _paq = window._paq || [];
    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
    _paq.push(['disableCookies']);
    _paq.push(['trackPageView']);
    _paq.push(['enableLinkTracking']);
    (function() {
      var u="//177.17.4.56/";
      _paq.push(['setTrackerUrl', u+'matomo.php']);
      _paq.push(['setSiteId', '6']);
      var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
      g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
    })();

    Hope that helps.

    Cheers,

    Laura

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk