Search
Other GeoIp questions
Forum

Is there a way to Geolocate a link so different final URLs are per country?

Calvin's Avatar Calvin
I'm not sure where to ask this, or if it is even possible.

My client wants to change their donation link so that when they click on it, a different end URL is loaded.

So if a person in the USA clicks on a link, it goes to the USA donation page. If a person in the UK clicks on the SAME link, it goes to the UK donation page.

I know I can geo-locate the link itself in place, but this could be pretty involved as the donation links could be on many different locations buried in the site. I was hoping there would be a way to do this more universally.

As a related topic, the mobile menu pulls directly from the Joomla menu. Would a solution to the redirected links/buttons also work with the menu donate link?

I thought of using ReReplacer, but that won't work in this situation as that although the link goes to an external site, some Javascript from the donation processor actually interprets the link and creates a popup window with the donation form. Since ReReplace works on the end result sent to the web browser, it would not do the replacement early enough in the sequence to be acted on by the popup script.

I have the full Regular Labs bundle, so can combine any of your extensions to solve this if necessary.

If this just isn't possible with any Regular Labs extensions, I'll geo-locate the buttons themselves. I'm not sure what to do about the menu link.

Thanks for your help.
Peter van Westen's Avatar Peter van Westen ADMIN
Is that donation link on your own site? Or on the external site?
Does changing the url on that link solve your issue?
Or is changing the link not enough because of the resulting javascript?

I don't quite understand what your situation is and what exactly you want to change.
Do you have this online so I can take a look?
Please post a rating at the Joomla! Extensions Directory
Calvin's Avatar Calvin
I decided to do the simple thing and just geo-locate the primary buttons and links directly in the modules.

I may re-open this question if I want to create a more universal link that geo-locates, but for expedience I'll stick with what works right now.

Thanks for your time.

Calvin
You can only post on this forum if you log in