← All posts

Guides

How to Redirect a HubSpot Landing Page by Country

June 11, 2026 · 4 min read

TL;DR

To geo-redirect a single HubSpot landing page: create regional versions, then add a path-scoped rule per market — "DACH visitors on /demo /de/demo". The snippet you already have in Site header HTML covers landing pages automatically; only the rules are new.

The site-wide setup gets all the attention, but the most common real-world request is smaller: this one campaign page needs to route by country, and nothing else should change. Here's that recipe.

Visitor 🇩🇪loads your pageHubSpot pagewith script tagEdge lookupcountry = DERule match→ site.de
Same mechanism, narrower scope: the rule only evaluates on the landing page's path.

Step 1 — Regional versions

Clone the landing page per market in HubSpot and localize what matters: language, currency, the regional offer, the right form routing to the right team. Keep a predictable URL scheme — /demo, /de/demo, /fr/demo — your future self will thank you.

Step 2 — Path-scoped rules

Create one rule per market with the source path set to the original page (/demo) rather than *:

  • DE, AT, CH on /demo /de/demo
  • FR, BE on /demo /fr/demo
  • Everyone else: no rule matches — they stay on /demo

Use a prefix pattern (/demo*) if the campaign has sub-pages that should route too.

Step 3 — One link in every campaign

Point all ads, emails, and social posts at the original /demo URL. UTM parameters survive the redirect, so attribution reports as if each visitor clicked their regional link directly — without you building three ad sets.

QA in 60 seconds

Add a temporary rule for your own country on the path → open the page in a private window → confirm the hop → check the thank-you flow on the destination page → delete the temp rule. Editors working on the page can browse with ?no_redirect=1.

Geo-redirects on your HubSpot site in 5 minutes

One script tag, no code, no DNS changes. Free plan included.

Start free

Frequently asked questions

Can I geo-redirect just one landing page without affecting the rest of the site?

Yes — that's what path scoping is for. A rule with the page's path (e.g. /demo-request) only evaluates on that path; every other page on the domain is untouched.

My landing pages are on a separate subdomain (offers.mysite.com). Does that work?

Yes. Register the subdomain as its own site, and paste the snippet into that domain's Site header HTML in HubSpot — HubSpot manages header HTML per domain, so each connected (sub)domain gets its own snippet slot.

Will the redirect interfere with my form submissions or thank-you pages?

No — the redirect evaluates on page load, before the visitor interacts. Scope rules to the landing page path only (not the thank-you path), and the post-submit flow behaves exactly as built.