Fix 974c86d
Uncaught TypeError: Cannot read property 'replace' of undefined
This commit is contained in:
parent
974c86d5e9
commit
d32c8ff406
|
|
@ -1178,10 +1178,14 @@ tarteaucitron.services.gajs = {
|
||||||
"uri": "https://support.google.com/analytics/answer/6004245",
|
"uri": "https://support.google.com/analytics/answer/6004245",
|
||||||
"needConsent": true,
|
"needConsent": true,
|
||||||
"cookies": (function () {
|
"cookies": (function () {
|
||||||
// Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
|
var googleIdentifier = tarteaucitron.user.gajsUa,
|
||||||
var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.gajsUa;
|
tagUaCookie = '_gat_gtag_' + googleIdentifier,
|
||||||
gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
|
tagGCookie = '_ga_' + googleIdentifier;
|
||||||
return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie, '_ga_' + tarteaucitron.user.gajsUa.replace(/G-/g, '')];
|
|
||||||
|
tagUaCookie = tagUaCookie.replace(/-/g, '_');
|
||||||
|
tagGCookie = tagGCookie.replace(/G-/g, '');
|
||||||
|
|
||||||
|
return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie];
|
||||||
})(),
|
})(),
|
||||||
"js": function () {
|
"js": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
@ -1214,10 +1218,14 @@ tarteaucitron.services.analytics = {
|
||||||
"uri": "https://support.google.com/analytics/answer/6004245",
|
"uri": "https://support.google.com/analytics/answer/6004245",
|
||||||
"needConsent": true,
|
"needConsent": true,
|
||||||
"cookies": (function () {
|
"cookies": (function () {
|
||||||
// Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
|
var googleIdentifier = tarteaucitron.user.analyticsUa,
|
||||||
var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.analyticsUa;
|
tagUaCookie = '_gat_gtag_' + googleIdentifier,
|
||||||
gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
|
tagGCookie = '_ga_' + googleIdentifier;
|
||||||
return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie, '_ga_' + tarteaucitron.user.analyticsUa.replace(/G-/g, '')];
|
|
||||||
|
tagUaCookie = tagUaCookie.replace(/-/g, '_');
|
||||||
|
tagGCookie = tagGCookie.replace(/G-/g, '');
|
||||||
|
|
||||||
|
return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie];
|
||||||
})(),
|
})(),
|
||||||
"js": function () {
|
"js": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
@ -1261,10 +1269,14 @@ tarteaucitron.services.gtag = {
|
||||||
"uri": "https://support.google.com/analytics/answer/6004245",
|
"uri": "https://support.google.com/analytics/answer/6004245",
|
||||||
"needConsent": true,
|
"needConsent": true,
|
||||||
"cookies": (function () {
|
"cookies": (function () {
|
||||||
// Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
|
var googleIdentifier = tarteaucitron.user.gtagUa,
|
||||||
var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.gtagUa;
|
tagUaCookie = '_gat_gtag_' + googleIdentifier,
|
||||||
gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
|
tagGCookie = '_ga_' + googleIdentifier;
|
||||||
return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie, '_ga_' + tarteaucitron.user.gtagUa.replace(/G-/g, '')];
|
|
||||||
|
tagUaCookie = tagUaCookie.replace(/-/g, '_');
|
||||||
|
tagGCookie = tagGCookie.replace(/G-/g, '');
|
||||||
|
|
||||||
|
return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie];
|
||||||
})(),
|
})(),
|
||||||
"js": function () {
|
"js": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue