gtag() scope for multiple gtag ua
This commit is contained in:
parent
6051de4fb7
commit
bcef457b24
|
|
@ -2192,7 +2192,7 @@ tarteaucitron.services.multiplegtag = {
|
|||
tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
|
||||
|
||||
tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
window.gtag = function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', ua);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue