From 25036345396db2f3020a1fe1f6ef59dbed142f83 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Fri, 20 Feb 2015 18:21:27 +0100 Subject: [PATCH] Google Adwords remarketing tracking support --- tarteaucitron.services.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index c5bf53f..df08619 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -68,6 +68,29 @@ tarteaucitron.services.addtoanyshare = { } }; +// adwordsremarketing +tarteaucitron.services.adwordsremarketing = { + "key": "adwordsremarketing", + "type": "ads", + "name": "Adwords (remarketing)", + "uri": "https://www.google.com/settings/ads", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + if (tarteaucitron.user.adwordsremarketingId === undefined) { + return; + } + + tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () { + window.google_trackConversion({ + google_conversion_id: tarteaucitron.user.adwordsremarketingId, + google_remarketing_only: true + }); + }); + } +}; + // alexa tarteaucitron.services.alexa = { "key": "alexa",