Scroll Viewport and analytics integration
We have been using the Google Analytics integration with the Scroll Viewport Help Center Theme to learn about the behavior of our external users: where are they from, what pages do they access, what do they search on etc.
The integration was easy to set up in the Help Center Theme and we managed to use the data to make improvements in the documentation (=the primary purpose of the integration).
But then we became aware that using Google Analytics out of the box is a violation of GDPR and we removed the integration from our Help Center implementation.
The French authorities have created a guide in making analytics compliant with GDPR (https://www.cnil.fr/en/google-analytics-and-data-transfers-how-make-your-analytics-tool-compliant-gdpr) but the steps seem quite extensive.
Does anyone have thoughts, ideas, or practical experience with integration to another analytics tool?
Or maybe K15t plans to integrate with some other analytics tool?
Any input would be appreciated - thanks!
Dorte
-
Official comment
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 -
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 -
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
-
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 -->
-
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
Please sign in to leave a comment.
Comments
8 comments