From 2c539f62cf5bc7464b835cabfa63f172a1875b20 Mon Sep 17 00:00:00 2001 From: Michel Seris Date: Wed, 12 Sep 2018 15:29:10 +0200 Subject: [PATCH] Add Hubspot service --- tarteaucitron.services.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index f5096b2..be025b9 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1213,6 +1213,20 @@ tarteaucitron.services.googletagmanager = { } }; +// hubspot +tarteaucitron.services.hubspot = { + "key": "hubspot", + "type": "analytic", + "name": "Hubspot", + "uri": "https://legal.hubspot.com/privacy-policy", + "needConsent": true, + "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'], + "js": function () { + "use strict"; + tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader'); + } +}; + // jsapi tarteaucitron.services.jsapi = { "key": "jsapi",