From 05e07c7387c918f791ed311a80db4bb58bc3d27f Mon Sep 17 00:00:00 2001 From: tawe-segment <88668535+tawe-segment@users.noreply.github.com> Date: Mon, 22 Nov 2021 18:15:31 +0000 Subject: [PATCH] [LIBWEB-926] Add support for Hubspot EU SDK (#645) Adds option --- integrations/hubspot/HISTORY.md | 4 ++ integrations/hubspot/lib/index.js | 12 ++++-- integrations/hubspot/package.json | 2 +- integrations/hubspot/test/index.test.js | 50 ++++++++++++++++++++++++- 4 files changed, 63 insertions(+), 5 deletions(-) diff --git a/integrations/hubspot/HISTORY.md b/integrations/hubspot/HISTORY.md index c9c5231d6..42cffecb3 100644 --- a/integrations/hubspot/HISTORY.md +++ b/integrations/hubspot/HISTORY.md @@ -1,3 +1,7 @@ +2.2.4 / 2021-11-22 +=================== + * Add support for HubSpots EU Data Residency with EU script tag. + 2.2.2 / 2020-12-14 =================== diff --git a/integrations/hubspot/lib/index.js b/integrations/hubspot/lib/index.js index 12bd1eb95..f17a25541 100644 --- a/integrations/hubspot/lib/index.js +++ b/integrations/hubspot/lib/index.js @@ -20,10 +20,15 @@ var HubSpot = (module.exports = integration('HubSpot') .global('hbspt') .option('portalId', null) .option('loadFormsSdk', false) + .option('enableEuropeanDataCenter', false) .tag( - 'lib', + 'global-tag', '