GeoTag Specific | Community
Skip to main content
New Participant
Jun 21, 2023 5:22 AM UTC
Solved

GeoTag Specific

 

Hi All,

 

We are planning to implement a tag in our website, but we don't want it to get dropped in certain geographies.

can anyone help us with a solution to identify the visitors from these Geo and not allowing tag to get dropped for them.

 

Thank You.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jennifer_Dungan
Jennifer_DunganAccepted solution
Level 2
Jun 21, 2023 10:30 PM UTC

The problem is that GeoLocation is part of post-processed data... if you need to control when a tag gets added to a page based on location, you will need to have a custom solution for that... 

 

Does your website have any sort of location identification code that you can leverage?

 

If you don't trying to implement something usually means creating an API call to a third party service to determine the location of the user (either based on shared Latitude and Longitude, or based in IP Address... either way, its a lot of code you will have to create.

 

Here is an article I found regarding identify a user's location:

https://betterprogramming.pub/how-to-detect-the-location-of-your-websites-visitor-using-javascript-92f9e91c095f

 

1 reply

Jennifer_Dungan
Jennifer_DunganAccepted solution
Level 2
Jun 21, 2023 10:30 PM UTC

The problem is that GeoLocation is part of post-processed data... if you need to control when a tag gets added to a page based on location, you will need to have a custom solution for that... 

 

Does your website have any sort of location identification code that you can leverage?

 

If you don't trying to implement something usually means creating an API call to a third party service to determine the location of the user (either based on shared Latitude and Longitude, or based in IP Address... either way, its a lot of code you will have to create.

 

Here is an article I found regarding identify a user's location:

https://betterprogramming.pub/how-to-detect-the-location-of-your-websites-visitor-using-javascript-92f9e91c095f

 

Translate