Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Analytics tracking code #1527

Open
fmichonneau opened this issue Sep 4, 2019 · 5 comments
Open

Google Analytics tracking code #1527

fmichonneau opened this issue Sep 4, 2019 · 5 comments

Comments

@fmichonneau
Copy link
Member

@fmichonneau fmichonneau commented Sep 4, 2019

@pbanaszkiewicz here is the tracking code you can use to enable google analytics in amy.

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-118122261-3"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-118122261-3');
</script>
@pbanaszkiewicz
Copy link
Contributor

@pbanaszkiewicz pbanaszkiewicz commented Sep 8, 2019

At first this seemed easy fix to me, but then I started thinking about GDPR and all these cookie-acceptance banners we see now everywhere.

I assume that as long as we don't send Personally Identifiable Information (PII) to Google Analytics, we're safe with GDPR. IP anonymization may be useful to turn on too.

We never had any cookie-accept banner, though. @fmichonneau is there a chance a legal advisor could tell us what we should do?

Loading

@fmichonneau
Copy link
Member Author

@fmichonneau fmichonneau commented Sep 9, 2019

let's wait on this. We're in the process of having more clarity around GDPR but it might be a while before we have answers to this type of questions.

Loading

@maneesha
Copy link
Contributor

@maneesha maneesha commented Aug 10, 2021

@fmichonneau Are we ready to revisit this?

Loading

@fmichonneau
Copy link
Member Author

@fmichonneau fmichonneau commented Aug 12, 2021

@pbanaszkiewicz you can use the following tracking code. It's GDPR compliant and no cookies are set up (it means that we can't identify repeat visitors but I'd rather not have cookie banners).

<script>
  var _paq = window._paq = window._paq || [];
  _paq.push(["setDoNotTrack", true]);
  _paq.push(["disableCookies"]);
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="https://carpentries.matomo.cloud/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '5']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src='//cdn.matomo.cloud/carpentries.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<noscript><p><img src="https://carpentries.matomo.cloud/matomo.php?idsite=5&amp;rec=1" style="border:0;" alt="" /></p></noscript>

Loading

@fmichonneau
Copy link
Member Author

@fmichonneau fmichonneau commented Oct 5, 2021

add link to cookie policy in the footer, the link (not live yet) will be:
https://docs.carpentries.org/topic_folders/policies/cookie-policy.html

Loading

pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Oct 16, 2021
pbanaszkiewicz added a commit to pbanaszkiewicz/amy that referenced this issue Oct 16, 2021
pbanaszkiewicz added a commit that referenced this issue Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants