A client of mine has requested some minor geo specific-content. They want their testimonials to change from “Join teachers across Australia”, to “Join teachers across America”, dependant on where the visitor is viewing the page from.
Has anyone here achieved anything similar before?
I am trying to avoid using a service like Geotargetly, as their pricing structure does not make sense for a single client and a small change.
Yes it is possible using custom code, you can use Free Geo IP (https://freegeoip.app/) is free up to 15,000 requests per hour, so I think in this case is more than enough!
Here’s the code:
HTML:
<span> Join teachers across <span id="AU">Australia</span><span id="US">America</span><span id="fallBack"> (Fallback Text)</span></span>
The fallback text is in case someone doesn’t come from that country. Otherwise, it won’t display any text.