question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Anonymize IP pour Google Analytics

See original GitHub issue

Hello,

Pour le RGPD, il faudra que l’IP soit anonyme, GA propose un code pour le faire, mais je ne suis pas parvenu à l’adapter à tarteaucitron. Quelqu’un à une idée ?

ga('set', 'anonymizeIp', true);

ou

ga('send', 'pageview', {
  'anonymizeIp': true
});

Plus d’info ici : https://developers.google.com/analytics/devguides/collection/analyticsjs/ip-anonymization

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:24

github_iconTop GitHub Comments

3reactions
Djullincommented, Sep 21, 2018

Je viens de me rendre compte que j’utilise une vieille version de tarteaucitron.js, et que dans le nouveau code il y a ça :

image

Donc j’imagine qu’ajouter ça

tarteaucitron.user.analyticsAnonymizeIp = true;

après ton

tarteaucitron.user.analyticsUa = 'UA-27548006-1';

devrait marcher 😃

C’est juste que la doc’ n’est pas à jour 😉

1reaction
shabearcommented, May 24, 2018

Hello En fait, l’emplacement est prévu de base dans le snippet que l’on ajoute pour faire fonctionner GGA sur le site. A ce niveau :

<script type="text/javascript"> tarteaucitron.user.analyticsUa = 'UA-114682668-1'; tarteaucitron.user.analyticsMore = function () { ga('set', 'anonymizeIp', true);ga('set', 'forceSSL', true); }; (tarteaucitron.job = tarteaucitron.job || []).push('analytics'); </script>

Et dans ce cas ça fonctionne parfaitement (renvoie d’un true dans la console).

Merci pour votre aide 😃

2018-05-22 16:51 GMT+02:00 Stepomp notifications@github.com:

Nickel, merci

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AmauriC/tarteaucitron.js/issues/84#issuecomment-391019929, or mute the thread https://github.com/notifications/unsubscribe-auth/AbeVIIix-FAeONLlmRucNpE_8Al82waUks5t1CX6gaJpZM4TwnvM .

Romain Girod

06-28-58-10-38

Read more comments on GitHub >

github_iconTop Results From Across the Web

IP masking in Universal Analytics - Google Support
The IP-masking feature in Universal Analytics sets the last octet of IPv4 user IP addresses and the last 80 bits of IPv6 addresses...
Read more >
Anonymize IP in Google Analytics, gtag & Google Tag Manager
When you anonymize IP in Google Analytics, the last three digits from your website visitor's IP address are automatically dropped/deleted.
Read more >
Google Analytics Stops Logging IP Addresses - The Drum
Google is axing Internet Protocol (IP) address logging on its analytics platform. The decision could hamper marketing effectiveness by cutting ...
Read more >
How to anonymize user data in Google Analytics 4 - Stape.io
To enable the anonymizer, open the sGTM container in https://app.eu.stape.io/, click power-up and open the anonymizer. anonymizer power up .
Read more >
How to Anonymize IP Addresses and Avoid the Cross ...
The IP anonymization feature in Google Analytics anonymizes the last digits of the user's IP. In Google's words :.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found