TL;DR
If your company serves more than one country from a HubSpot-hosted website, you have a routing problem: a visitor from Munich lands on your English homepage, your German site exists at another URL, and nothing connects the two. Geo-redirects solve this by detecting each visitor's country and sending them to the right destination automatically.
HubSpot Content Hub has no built-in geo-redirect feature (Smart Content can swap page sections, but it can't move a visitor to a different URL or domain). The good news: you don't need one built in. Here's the full setup.
Step 1 — Create an account and register your site
Sign up at Easy Redirects (the free plan includes one site and 100 redirects per month — enough to test everything). Add your HubSpot-hosted domain, e.g. www.yourcompany.com. You get a unique script tag for that site.
Step 2 — Create your redirect rules
Each rule has four parts:
- Countries — pick individual countries or use presets like EU, Nordics, or DACH. Rules can also be inverted ("visitors not in these countries").
- Pages — apply to the whole site (
*) or a path prefix like/pricing*. - Destination — any full URL: a language folder (
/de), a country domain (yoursite.de), or a specific page. - Priority — when multiple rules could match, the lowest priority number wins.
Example rule set for a DACH expansion
Rule 1: visitors from DE, AT, CH on any page → https://www.yourcompany.de/ (priority 100). That single rule covers the most common case. Add more markets as you grow.Step 3 — Install the snippet in HubSpot
In HubSpot:
- Go to Content → Pages in settings
- Select the domain you registered
- Paste your script tag into Site header HTML and save
That's the entire installation. The snippet loads asynchronously on every page of the domain, so it doesn't block rendering, and rule changes you make later take effect immediately — no republishing.
Step 4 — Test it
Create a temporary rule targeting your own country pointing at any recognizable page, then open your site in a private browsing window. You should be redirected within a moment of page load. Three built-in behaviors to know about while testing:
- Redirects fire once per browser session — close the tab or use a fresh private window to re-test.
?no_redirect=1on any URL bypasses all rules — useful for editors working on pages.- Loop protection means a visitor is never redirected to the page they're already on.
Geo-redirects on your HubSpot site in 5 minutes
One script tag, no code, no DNS changes. Free plan included.
Start freeFrequently asked questions
Does this work on HubSpot landing pages and blog posts too?
Yes. Because the snippet goes into your domain's Site header HTML, it loads on every website page, landing page, and blog post served on that domain — no template editing required.
Do I need Content Hub Professional or Enterprise?
No. Any HubSpot tier that lets you edit Site header HTML works, including Content Hub Starter. You don't need Smart Content, memberships, or any Enterprise feature.
Will redirects break my UTM tags and HubSpot tracking?
No. Query parameters are preserved through the redirect by default, so utm_source, hsa_* and other tracking parameters survive and attribution keeps working.
How do I test a redirect without a VPN?
Create a rule targeting your own country and visit your site in a private window. To browse without being redirected (e.g. while editing), append ?no_redirect=1 to any URL.