What geo-fencing can do
Within HoopAI funnels and websites, you can use geography-based logic to:- Redirect visitors from specific countries or regions to a different page or URL
- Show or hide sections of a page based on visitor location
- Display location-specific offers, pricing, or copy
- Block access to a funnel from restricted regions
- Route visitors to a localized version of your funnel
How location detection works
HoopAI detects visitor location using IP geolocation. When a visitor loads a funnel page, their IP address is used to determine their approximate location — typically accurate to the country and often to the region or city level. Visitors using VPNs may appear to be located in a different country than their physical location.Geo-based redirects using custom JavaScript
The most flexible approach to geo-fencing in HoopAI is to add a JavaScript snippet to the page or funnel-level tracking code that checks the visitor’s location and takes action accordingly.Redirect visitors from a specific country
Paste this in the Head Tracking Code field (funnel-level) or page-level tracking code. ReplaceUS with the ISO 3166-1 alpha-2 country code for the country you want to target and update the redirect URL:
Show content only for visitors in a specific region
Block visitors from specific countries
Common geo-fencing use cases
Compliance and legal restrictions
Some products, offers, and services cannot legally be offered in certain countries or regions. Use geo-based redirects to send visitors from restricted regions to a compliance page explaining that the offer is not available in their location.Currency and pricing
Display different pricing pages for different regions. Route visitors from the EU to a EUR-priced version of your funnel and visitors from the UK to a GBP-priced version.Language localization
If you maintain separate versions of a funnel in different languages, use geo-fencing to automatically route visitors to the version that matches their country’s primary language.Regional promotions
Run country-specific promotions without creating entirely separate funnels. Show a local phone number, local testimonials, or a region-specific bonus offer to visitors from that location.Geo-fencing limitations
- VPN users: Visitors using VPNs will appear to be in the country of the VPN server, not their actual location. Geo-fencing cannot reliably block or target VPN users.
- IP accuracy: IP geolocation is accurate at the country level in most cases. City and region-level accuracy is lower and varies by provider.
- Load time: Fetching geolocation data from a third-party API adds a small amount of latency. For performance-critical pages, consider pre-loading or caching geolocation data.
- Privacy considerations: Collecting and processing geolocation data may be subject to GDPR, CCPA, or other privacy regulations. Disclose location-based processing in your privacy policy.
Geo-fencing based on custom JavaScript is not a built-in drag-and-drop feature in HoopAI — it requires adding JavaScript to your tracking code or a custom code element. If JavaScript is disabled in the visitor’s browser, geo-fencing logic will not execute.
.png?fit=max&auto=format&n=EQK5eX9kTD8NzWwA&q=85&s=878008bf159fcc4964d0c0d508b6e400)