Local Geo Injector
Personalize your landing pages instantly by injecting your visitor's real-time City, State, and Zip code data.
How It Works
The SiteLinx Local Geo Injector integrates with ipgeolocation.io to retrieve high-precision location details based on a visitor's IP address. These details are injected into your content via magic shortcodes after the page loads, ensuring compatibility with all major caching plugins.
Pro Tip: Using localized headlines like "Best Emergency Plumber in [geo_city]" can significantly boost your conversion rates and local trust levels.
Setup Instructions
1
License Activation: Navigate to Geo Targeting in your sidebar and enter your SiteLinx license key to enable the module.
2
Connect Geo Service:
Register for a free account at ipgeolocation.io (1,000 free requests/day). Copy your API Key and paste it into the "Connect Geo Service" field.
3
Enable on Content:
To maintain peak site performance, the geo-script only loads on approved pages. Check the boxes for the specific Post Types (Pages, Posts, or Templates) where you intend to use the shortcodes.
Shortcode Reference
Drop these shortcodes anywhere in your WordPress or Elementor text widgets.
| Data Type | Shortcode | Example Output |
|---|---|---|
| City | [geo_city] |
Chicago, London, Tel Aviv |
| State / Province | [geo_state] |
Illinois, Ontario, Gush Dan |
| State Code | [geo_state_code] |
IL, NY, TX |
| Zip / Postal Code | [geo_zip] |
60601, M5V 2T6 |
| Country | [geo_country] |
United States, Canada, Israel |
Example Usage
Editor Input:
"Looking for the best locksmith in [geo_city], [geo_state_code]? We serve all residents in [geo_zip]!"
Visitor from Chicago Sees:
"Looking for the best locksmith in Chicago, IL? We serve all residents in 60601!"
Troubleshooting & FAQ
Why are my shortcodes appearing blank?
1. Ensure your ipgeolocation.io API key is valid.
2. Verify the specific page is enabled in the "Enable on Content" settings.
3. Check if you have exceeded your daily request limit (1,000 for free accounts).
2. Verify the specific page is enabled in the "Enable on Content" settings.
3. Check if you have exceeded your daily request limit (1,000 for free accounts).
Does this work with caching plugins?
Yes. Location injection happens client-side (in the browser) after the page loads. It works perfectly with WP Rocket, LiteSpeed, Cloudflare, and other static caching tools.
Can I use this in my Meta Titles (SEO)?
The injection occurs after the page loads via JavaScript. While users see the localized text, search engine bots (like Googlebot) may only see the raw shortcode or a blank space, as they do not always execute the necessary script for geo-detection.
How accurate is the detection?
IP-based geolocation is roughly 95-99% accurate at the Country/State level and 80-90% at the City level. Accuracy depends on the visitor's ISP and whether they are using a VPN.