Giter VIP home page Giter VIP logo

analytics.js-integration-hubspot's Introduction

analytics.js-integration-hubspot's People

Contributors

bbeaird avatar f2prateek avatar flaque avatar hankim813 avatar ndhoule avatar peripheral1994 avatar segmentdestinationsbot avatar sperand-io avatar srthurman avatar ucarion avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

analytics.js-integration-hubspot's Issues

Hubspot adds url parameters making them invalid

I am having the issue as detailed in here: segmentio/analytics.js#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

HubSpot adds __hstc, __hssc and __hsfp query params to all external URL, making them invalid

Hi!

Here's a string I'm applying to a href attribute of a link:

https://example.com/app#/tree?path=foo.bar

But when its rendered on the page, here's how it ends up looking:
https://example.com/app&__hstc=181257784.ec3b8f50ceac6ae94ada7d99c135638e.1456488482298.1458396994219.1458561178659.71&__hssc=181257784.16.1458561178659&__hsfp=3702051802#/tree?path=foo.bar

Our backend filters results by query params at this point, so the URL does not yield what it's supposed to.

How do I prevent those __hstc, __hssc and __hsfp query qarams from polluting all URLs? Note that I'm unable to prevent them from appearing at the frontend logic level, because at that level URLs are clean and get polluted after rendering by the HubSpot script injected by segmentio/analytics.js.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.