segmentio / segmentio/analytics.js-integrations

[hubspot] Segment does not load the forms SDK if the Hubspot Analytics file fails to load

Open
#87 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
125
Forks
136
Avg merge
2h 45m
Merged PRs (30d)
1

Description

Hello,

My ad/tracking blocker (uBlock in Firefox) blocks the load of the Hubspot analytics file, as expected.
uBlock does not, however, block the load of the Hubspot Forms SDK when loaded directly.

Unfortunately, when segments fails to load the Hubspot analytics file, it does not try to load the forms SDK, and never calls the 'ready' callback. Therefore my Hubspot form does not show up.

(My workaround for now is to load the Hubspot Forms SDK myself rather than through Segment, but I'd like Segment to load the Forms SDK even when the other file has failed)

Best regards,
Laurent

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the HubSpot integration entry point and the code that loads the HubSpot Analytics file, Forms SDK, and invokes the ready callback. Reproduce the blocked-Analytics-file case, then verify that the Forms SDK still loads and ready is called when the form becomes available.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.