Add Google Optimize
This commit is contained in:
parent
6ac27ccf6b
commit
6158003bcc
|
|
@ -4717,7 +4717,27 @@ tarteaucitron.services.gforms = {
|
|||
var id = "gforms";
|
||||
tarteaucitron.fallback(['gforms_embed'], tarteaucitron.engage(id));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Google Optimize
|
||||
tarteaucitron.services.goptimize = {
|
||||
"key": "goptimize",
|
||||
"type": "other",
|
||||
"name": "Google Optimize",
|
||||
"needConsent": true,
|
||||
"cookies": ["CONSENT", "NID"],
|
||||
"uri": "https://policies.google.com/privacy",
|
||||
"js": function () {
|
||||
"use strict";
|
||||
|
||||
if (tarteaucitron.user.goptimize === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
tarteaucitron.addScript('https://www.googleoptimize.com/optimize.js?id=' + tarteaucitron.user.goptimize);
|
||||
}
|
||||
};
|
||||
|
||||
// Marketo munchkin
|
||||
tarteaucitron.services.marketomunchkin = {
|
||||
"key": "marketomunchkin",
|
||||
|
|
@ -4750,4 +4770,5 @@ tarteaucitron.services.marketomunchkin = {
|
|||
s.onload = initMunchkin;
|
||||
document.getElementsByTagName('head')[0].appendChild(s);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue