Merge pull request #513 from prudloff-insite/verizon_dot_tag

Add support for Verizon Dot Tag
This commit is contained in:
Amauri CHAMPEAUX 2020-11-04 12:34:55 +01:00 committed by GitHub
commit d003e08f45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View File

@ -2333,6 +2333,34 @@ tarteaucitron.services.visualrevenue = {
} }
}; };
// verizon dot tag
tarteaucitron.services.verizondottag = {
"key": "verizondottag",
"type": "analytic",
"name": "Verizon Dot Tag",
"uri": "https://developer.verizonmedia.com/native/guide/audience-management/dottags/",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
window.dotq = window.dotq || [];
window.dotq.push({
'projectId': tarteaucitron.user.verizondottagProjectId,
'properties': {'pixelId': tarteaucitron.user.verizondottagPixelId}
});
tarteaucitron.addScript('https://s.yimg.com/wi/ytc.js', '', function () {
const items = window.dotq;
window.dotq = [];
window.dotq.push = function (item) {
YAHOO.ywa.I13N.fireBeacon([item])
};
YAHOO.ywa.I13N.fireBeacon(items)
});
}
};
// vshop // vshop
tarteaucitron.services.vshop = { tarteaucitron.services.vshop = {
"key": "vshop", "key": "vshop",