Load rule based on geo location

Gold Contributor
Gold Contributor
Hi, is there any solution to upload a tag for users coming from US (per instance) only?
10 REPLIES 10

Load rule based on geo location

Employee Emeritus

Hi Jarno, While I'm not exactly sure what you mean by "per instance", the short answer is that IF the location can be made available as a data source then it can be used in a load rule for a tag. Tealium iQ runs clientside and needs some help getting the geolocation though. This question: https://community.tealiumiq.com/t5/Tealium-iQ-Tag-Management/Is-this-feasible-in-a-javascript-extens... has some tidbits on ways that could be used to get the location. Although it would be better if your CMS could output the geo location to the universal data object (or other javascript variable)

Load rule based on geo location

Employee Emeritus
Hey Jarno, This could also be accomplished by using logic based on the domain if the domain contains .us vs .uk etc.... Jim

Load rule based on geo location

Gold Contributor
Gold Contributor
Thanks Clint, I will continue on the page that you linked. (I meant to use "US" as an example)

Load rule based on geo location

Gold Contributor
Gold Contributor
Thanks Jim. Unfortunately I have not-US users browsing in the "/us/" domain path. So I'm wondering how to fire a tag only for US users, due to a commercial reason.

Load rule based on geo location

Gold Contributor
Gold Contributor
I see that I have not permission to add any post, so I do it here below: This does not work properly, I'm in Italy and it responds me with "GB": jQuery.getJSON('http://freegeoip.net/json/', function(location) { alert(location.country_code) }); This works: $.get("http://ipinfo.io", function(response) { alert(response.country); }, "jsonp");

Load rule based on geo location

Employee Emeritus
Hey Jarno, this is probably "you get what you pay for". Based on the above the JavaScript is working properly but ipinfo isn't triangulating the (you're?) IP correctly. In other words, IP based geo is only as good as the database that does the matching. It's also possible that your ISP proxy servers are in the UK and that's what is being reported.

Load rule based on geo location

Tealium Employee

Would using the HTML5 location services be an option? It has it's drawbacks, in that it just gives you latitude and longitude raw data, the user has to allow it, and its not supported on all devices - but I thought I'd suggest it as an option. (see https://community.tealiumiq.com/t5/Tealium-iQ-Tag-Management/Our-mobile-website-requests-permission-... for previous discussion on the subject)

Connecting data systems since the 1980s.

Load rule based on geo location

Tealium Expert
Tealium Expert

This is an old thread of course, but it's a perfect candidate for a request I've made in the past:


The TiQ CDN should be able to provide at least some level of Geo information and pop it into a value on the data layer.  I think I need to request this in the Product Ideas section!  :)

 

Thanks - 

Tealium Expert

Load rule based on geo location

Gold Contributor
Gold Contributor

@mitchellt has any progress been made wrt this? I want to know the user's location or atleast if they're in EU or not.  Will be great if Tealium gives us some options instead of us chasing the developer for this information.  Thanks!!

Load rule based on geo location

Tealium Expert
Tealium Expert
Hi @sujani_koya - I haven't heard much further, thanks for bumping this thread.
Tealium Expert
Public