Add openwebanalytics #652

This commit is contained in:
Amauri CHAMPEAUX 2021-04-14 19:41:09 +02:00
parent c682079dd1
commit 2d50c3f2d7
1 changed files with 25 additions and 0 deletions

View File

@ -53,6 +53,31 @@ tarteaucitron.services.pardot = {
}
};
// Open Web Analytics
tarteaucitron.services.openwebanalytics = {
"key": "openwebanalytics",
"type": "analytic",
"name": "Open Web Analytics",
"uri": "",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
if (tarteaucitron.user.openwebanalyticsId === undefined || tarteaucitron.user.openwebanalyticsHost === undefined) {
return;
}
window.owa_baseUrl = tarteaucitron.user.openwebanalyticsHost;
window.owa_cmds = window.owa_cmds || [];
window.owa_cmds.push(['setSiteId', tarteaucitron.user.openwebanalyticsId]);
window.owa_cmds.push(['trackPageView']);
window.owa_cmds.push(['trackClicks']);
tarteaucitron.addScript(window.owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js');
}
};
// xandr universal pixel
// https://docs.xandr.com/bundle/invest_invest-standard/page/topics/universal-pixel-overview.html
tarteaucitron.services.xandr = {