add 'anonymize_ip' to gtag.js service.
This commit is contained in:
parent
205fdb3cc6
commit
c295754a50
|
|
@ -1582,7 +1582,7 @@ tarteaucitron.services.gtag = {
|
|||
tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
|
||||
window.gtag = function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', tarteaucitron.user.gtagUa);
|
||||
gtag('config', tarteaucitron.user.gtagUa, { 'anonymize_ip': true });
|
||||
|
||||
if (typeof tarteaucitron.user.gtagMore === 'function') {
|
||||
tarteaucitron.user.gtagMore();
|
||||
|
|
|
|||
Loading…
Reference in New Issue