فهرست منبع

Merge pull request #215 from moosh74/master

Add Hubspot service
Amauri CHAMPEAUX 6 سال پیش
والد
کامیت
63e9e6e61d
1فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 14 0
      tarteaucitron.services.js

+ 14 - 0
tarteaucitron.services.js

@@ -1242,6 +1242,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
 // jsapi
 tarteaucitron.services.jsapi = {
 tarteaucitron.services.jsapi = {
     "key": "jsapi",
     "key": "jsapi",