analytics.js-integrations icon indicating copy to clipboard operation
analytics.js-integrations copied to clipboard

[hubspot] Hubspot adds url parameters making them invalid

Open SegmentDestinationsBot opened this issue 7 years ago • 2 comments

Migrated from #17 by @slowtokyo

I am having the issue as detailed in here: https://github.com/segmentio/analytics.js/issues/504 when I try to add a url parameter to a query string hubspot puts its queries in front of the existing queries thereby creating an invalid URL. I have found a way around this that doesn't impact my analytics, but shouldn't the Hubspot query strings be appended to the end of any existing query strings?

The URL I want to create: https://foo.bar.co/#/register?__hstc=6222316.1d2b332e80357701bf2ef394e3a88e1b.1508536177681.1521725761504.1521729618139.158&__hssc=6222316.4.1521729618139&__hsfp=1692073022&plan=professional

The URL that I get: https://foo.bar.co/?__hstc=6222316.1d2b332e80357701bf2ef394e3a88e1b.1508536177681.1521725761504.1521729618139.158&__hssc=6222316.11.1521729618139&__hsfp=1692073022#/register?plan=professional

SegmentDestinationsBot avatar Aug 20 '18 19:08 SegmentDestinationsBot

So what's the fix for this?? Our urls are polluted by those parameters.

AlexCppns avatar Dec 18 '18 19:12 AlexCppns

Is this still being worked on? We have this issue, too.

erikakalar avatar Apr 16 '21 13:04 erikakalar