Merge pull request #539 from Cyrille37/Cyrille37-TypeError-multiplegtagUa
TypeError: tarteaucitron.user.multiplegtagUa
This commit is contained in:
commit
cbe16bbc16
|
|
@ -2852,8 +2852,8 @@ tarteaucitron.services.multiplegtag = {
|
|||
"use strict";
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
|
||||
if (tarteaucitron.user.multiplegtagUa !== undefined) {
|
||||
tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
|
||||
|
||||
tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
|
||||
window.gtag = function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
|
@ -2861,6 +2861,7 @@ tarteaucitron.services.multiplegtag = {
|
|||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Koban
|
||||
|
|
|
|||
Loading…
Reference in New Issue