Skip to content

fix: load hubspot tracking from the portal's own region - #713

Merged
huntercaron merged 1 commit into
mainfrom
ruxandra/hubspot-region-hosts
Nov 6, 2026
Merged

huntercaron merged 1 commit into
mainfrom
ruxandra/hubspot-region-hosts

Conversation

@ruxiang05

@ruxiang05 ruxiang05 commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Description

  • Load the HubSpot tracking script from the portal's own region (js-<region>.hs-scripts.com) instead of always using the EU host. Non-EU portals got a 307 redirect on every page view.
  • Switch sites that already enabled tracking with the EU script to the right host when the tracking page is opened. Note: this writes custom code without a click, like the Chat page already does. EU portals keep the exact same script.
  • Open the Chat page's inbox and chatflows links on the portal's own HubSpot domain, like Meetings and Forms already do.

Fixes https://github.com/framer/company/issues/38100

Changelog

  • HubSpot tracking now loads from your portal's own region
  • Chat links now open your own HubSpot domain

Testing

  • Tracking on a US portal
    • Connect a US HubSpot portal and enable tracking
    • Publish and check the page loads js-na1.hs-scripts.com/<hubId>.js with a 200 and no redirect
  • Sites that enabled tracking before this change
    • With the current plugin, enable tracking on a US portal
    • Open the tracking page with this version and check the button shows “Disable” and the script now points to js-na1
  • EU portal
    • Connect an EU portal and check tracking still shows as enabled and still loads from js-eu1
  • Chat links
    • Check “View Chatflows” and an inbox's “Open” link go to app.hubspot.com for a US portal and app-eu1.hubspot.com for an EU portal

@github-actions github-actions Bot added the Auto submit to Marketplace on merge Submits the plugin to the marketplace after merging label Nov 6, 2026
@huntercaron
huntercaron added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit df96c6d Nov 6, 2026
10 of 14 checks passed
@huntercaron
huntercaron deleted the ruxandra/hubspot-region-hosts branch November 6, 2026 11:37

This branch was successfully deployed

1 active deployment
production — b385538a Deployed Nov 6, 2026 by huntercaron via Submit Changed Plugins #123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto submit to Marketplace on merge Submits the plugin to the marketplace after merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants