Google Adwords conversion tracking support
This commit is contained in:
parent
2503634539
commit
7a253c82ad
|
|
@ -68,6 +68,33 @@ tarteaucitron.services.addtoanyshare = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// adwordsconversion
|
||||||
|
tarteaucitron.services.adwordsconversion = {
|
||||||
|
"key": "adwordsconversion",
|
||||||
|
"type": "ads",
|
||||||
|
"name": "Adwords (conversion)",
|
||||||
|
"uri": "https://www.google.com/settings/ads",
|
||||||
|
"needConsent": true,
|
||||||
|
"cookies": [],
|
||||||
|
"js": function () {
|
||||||
|
"use strict";
|
||||||
|
if (tarteaucitron.user.adwordsconversionId === undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
|
||||||
|
window.google_trackConversion({
|
||||||
|
google_conversion_id: tarteaucitron.user.adwordsconversionId,
|
||||||
|
google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
|
||||||
|
google_custom_params: {
|
||||||
|
parameter1: tarteaucitron.user.adwordsconversionCustom1,
|
||||||
|
parameter2: tarteaucitron.user.adwordsconversionCustom2
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// adwordsremarketing
|
// adwordsremarketing
|
||||||
tarteaucitron.services.adwordsremarketing = {
|
tarteaucitron.services.adwordsremarketing = {
|
||||||
"key": "adwordsremarketing",
|
"key": "adwordsremarketing",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue