Fix and add more param to Doubleclic #971
This commit is contained in:
parent
b34960f0dd
commit
3da2e4c7ca
|
|
@ -222,16 +222,19 @@ tarteaucitron.services.doubleclick = {
|
||||||
tarteaucitron.fallback(['doubleclick_container'], function (x) {
|
tarteaucitron.fallback(['doubleclick_container'], function (x) {
|
||||||
var id1 = tarteaucitron.getElemAttr(x, "data-id1"),
|
var id1 = tarteaucitron.getElemAttr(x, "data-id1"),
|
||||||
id2 = tarteaucitron.getElemAttr(x, "data-id2"),
|
id2 = tarteaucitron.getElemAttr(x, "data-id2"),
|
||||||
|
type = tarteaucitron.getElemAttr(x, "data-type"),
|
||||||
|
cat = tarteaucitron.getElemAttr(x, "data-cat"),
|
||||||
item = tarteaucitron.getElemAttr(x, "data-item"),
|
item = tarteaucitron.getElemAttr(x, "data-item"),
|
||||||
quantity = tarteaucitron.getElemAttr(x, "data-quantity"),
|
quantity = tarteaucitron.getElemAttr(x, "data-quantity"),
|
||||||
price = tarteaucitron.getElemAttr(x, "data-price"),
|
price = tarteaucitron.getElemAttr(x, "data-price"),
|
||||||
postage = tarteaucitron.getElemAttr(x, "data-postage"),
|
postage = tarteaucitron.getElemAttr(x, "data-postage"),
|
||||||
seller = tarteaucitron.getElemAttr(x, "data-seller"),
|
seller = tarteaucitron.getElemAttr(x, "data-seller"),
|
||||||
axel = Math.random() + "",
|
gdpr = tarteaucitron.getElemAttr(x, "data-gdpr"),
|
||||||
a = axel * 10000000000000;
|
gdpr_consent = tarteaucitron.getElemAttr(x, "data-gdpr-consent"),
|
||||||
|
ord = tarteaucitron.getElemAttr(x, "data-ord"),
|
||||||
|
num = tarteaucitron.getElemAttr(x, "data-num");
|
||||||
|
|
||||||
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 src="https://'+id1+'.fls.doubleclick.net/activityi;src='+id2+';type='+type+';cat='+cat+';item='+item+';quantity='+quantity+';price='+price+';postage='+postage+';seller='+seller+';gdpr='+gdpr+';gdpr_consent='+gdpr_consent+';num='+num+';ord='+ord+'?" width="1" height="1" frameborder="0" style="display:none"></iframe>';
|
||||||
return iframe;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue