segmentio / segmentio/analytics.js-integrations
[hubspot] Segment does not load the forms SDK if the Hubspot Analytics file fails to load
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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