Load rule based on geo location

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

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)

Highlighted

Load rule based on geo location

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

Load rule based on geo location

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

Load rule based on geo location

Silver Contributor
Silver 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.
Highlighted

Load rule based on geo location

Silver Contributor
Silver 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");
Highlighted

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.
Highlighted

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)

Highlighted

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 -