Fix #895
This commit is contained in:
parent
f5b074de61
commit
ba5d06148f
|
|
@ -32,6 +32,33 @@ tarteaucitron.services.iframe = {
|
|||
}
|
||||
};
|
||||
|
||||
// doubleclick
|
||||
tarteaucitron.services.doubleclick = {
|
||||
"key": "doubleclick",
|
||||
"type": "ads",
|
||||
"name": "DoubleClick",
|
||||
"uri": "https://support.google.com/admanager/answer/2839090",
|
||||
"needConsent": true,
|
||||
"cookies": [],
|
||||
"js": function () {
|
||||
"use strict";
|
||||
tarteaucitron.fallback(['doubleclick_container'], function (x) {
|
||||
var id1 = tarteaucitron.getElemAttr(x, "data-id1"),
|
||||
id2 = tarteaucitron.getElemAttr(x, "data-id2"),
|
||||
item = tarteaucitron.getElemAttr(x, "data-item"),
|
||||
quantity = tarteaucitron.getElemAttr(x, "data-quantity"),
|
||||
price = tarteaucitron.getElemAttr(x, "data-price"),
|
||||
postage = tarteaucitron.getElemAttr(x, "data-postage"),
|
||||
seller = tarteaucitron.getElemAttr(x, "data-seller"),
|
||||
axel = Math.random() + "",
|
||||
a = axel * 10000000000000;
|
||||
|
||||
iframe = '<iframe src="http://'+id1+'.fls.doubleclick.net/activityi;src='+id2+';type=;cat=;u1='+item+';u2='+quantity+';u3='+price+';u4='+postage+';u5='+seller+';ord=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>';
|
||||
return iframe;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// userpilot
|
||||
tarteaucitron.services.userpilot = {
|
||||
"key": "userpilot",
|
||||
|
|
|
|||
Loading…
Reference in New Issue