Add Adform and Active Campaign

This commit is contained in:
Amauri CHAMPEAUX 2018-09-25 12:30:02 +02:00 committed by GitHub
parent 34e4a22294
commit 6614bd008a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 44 additions and 0 deletions

View File

@ -2338,3 +2338,47 @@ tarteaucitron.services.bingads = {
}); });
} }
}; };
// Adform
tarteaucitron.services.adform = {
"key": "adform",
"type": "ads",
"name": "Adform",
"uri": "https://site.adform.com/privacy-center/overview/",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
if (tarteaucitron.user.adformpm === undefined) {
return;
}
window._adftrack = {
pm: tarteaucitron.user.adformpm,
divider: encodeURIComponent('|'),
pagename: encodeURIComponent('WebsiteName|SectionName|SubSection|PageName')
};
tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
}
};
// Active Campaign
tarteaucitron.services.activecampaign = {
"key": "activecampaign",
"type": "ads",
"name": "Active Campaign",
"uri": "https://www.activecampaign.com/privacy-policy/",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
if (tarteaucitron.user.actid === undefined) {
return;
}
window.trackcmp_email = '';
tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
}
};