How to Capture IP Address

landin_gee
Silver Contributor
Silver Contributor landin_gee
Is there any way to capture the user's IP address through TIQ?
4 REPLIES 4

How to Capture IP Address

son_hoang
Employee Emeritus
son_hoang

Hi Landin,

 

This is not normally available to JavaScript.

 

There are two ways to get an IP address into Tealium:

 

  1. Your UDO passes it into Tealium. Your web server knows what the visitor's IP is and returns it as part of the UDO (or as part of a manual view or link call)
  2. You use a third party service to retrieve it.

 

There are a lot of services that would basically make a call from the visitor's browser, and upon success you'd make a call to Tealium. The reliability/performance of this service would vary from vendor to vendor (some are free, some are not), and the actual implementation would have caveats depending on if your team coded that request or if it was done from within Tealium.

 

I normally recommend option 1 as the best practice.

How to Capture IP Address

landin_gee
Silver Contributor
Silver Contributor landin_gee
Thanks Son!

How to Capture IP Address

andre_molnar
Silver Contributor
Silver Contributor andre_molnar
Hello All- I'm not seeing the IP address variable in my UDO layer when I do a utag_data. Is there an option in Tealium to turn this on? Thanks-
Highlighted

How to Capture IP Address

son_hoang
Employee Emeritus
son_hoang

Hi Andre,

 

This means your webdev team did not enable it to be part of the data layer. Please see my original response for the two options you have in doing this, and I'd highly recommend the first option.