Comments on: Get Visitor IP Address with Google Tag Manager https://mixedanalytics.com/blog/visitor-ip-address-google-tag-manager/ APIs, Sheets, and Analytics Thu, 25 Feb 2021 08:44:45 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: ramesh https://mixedanalytics.com/blog/visitor-ip-address-google-tag-manager/#comment-17816 Tue, 30 Jun 2020 07:07:20 +0000 http://mixedanalytics.com/?p=6969#comment-17816 Very Thanks anna

]]>
By: Ana https://mixedanalytics.com/blog/visitor-ip-address-google-tag-manager/#comment-16674 Wed, 13 May 2020 02:21:23 +0000 http://mixedanalytics.com/?p=6969#comment-16674 In reply to Ben.

You can't view the IP addresses from the steps here, this is only to temporarily access them in Tag Manager, which doesn't record anything. In Tag Manager you can then attach these values to any tag you want (e.g. as described in this post), or, conversely, use this information to block certain tags from firing.

]]>
By: Ben https://mixedanalytics.com/blog/visitor-ip-address-google-tag-manager/#comment-16668 Tue, 12 May 2020 20:07:10 +0000 http://mixedanalytics.com/?p=6969#comment-16668 Hi Ana

Where can you view the IP addresses collected by this code?

Regards Ben

]]>
By: Ana https://mixedanalytics.com/blog/visitor-ip-address-google-tag-manager/#comment-14088 Fri, 21 Feb 2020 02:50:02 +0000 http://mixedanalytics.com/?p=6969#comment-14088 In reply to lee.

I think it's possible, but this isn't quite the right method since the page would need to partly load (long enough to run the GTM script), and then apply some logic to redirect or block the page. It's more straightforward to just block them server-side before the site even loads. Here's one article on how to do it: https://www.hostinger.com/tutorials/htaccess/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess

]]>
By: lee https://mixedanalytics.com/blog/visitor-ip-address-google-tag-manager/#comment-14085 Fri, 21 Feb 2020 02:02:01 +0000 http://mixedanalytics.com/?p=6969#comment-14085 H Anna would it be possible to block visitors from a page based on IP address. I run a site in the UK, the conversion page is a form that collects an estimate resquest. But im getting loads of form fills from outside the UK. I dont mind them browsing, but dont want to deal with the from fill replies from people who cannot be customers. Is it possible to block or serve an overlay on this page based on their address? To say sorry this service is only for customers based in the UK? Using a method like this. thanks in advance Lee

]]>
By: Ana https://mixedanalytics.com/blog/visitor-ip-address-google-tag-manager/#comment-12440 Wed, 18 Dec 2019 09:52:45 +0000 http://mixedanalytics.com/?p=6969#comment-12440 In reply to Anonymous.

Are you using Google Analytics? If so you don't need to do anything at all as it's included in GA by default. Just navigate to Audience > Technology > Network to see a list of company names, and choose Secondary Dimension = Network Domain for some additional information.

]]>
By: Anonymous https://mixedanalytics.com/blog/visitor-ip-address-google-tag-manager/#comment-12439 Wed, 18 Dec 2019 09:36:48 +0000 http://mixedanalytics.com/?p=6969#comment-12439 In reply to Ana.

Hello Ana,
I was tried the above suggestion which is about getting company name but I can't get. Please give me the clear solution to resolve this one.

]]>
By: Anonymous https://mixedanalytics.com/blog/visitor-ip-address-google-tag-manager/#comment-11435 Sun, 03 Nov 2019 13:25:47 +0000 http://mixedanalytics.com/?p=6969#comment-11435 Thank you so much

]]>
By: Ana https://mixedanalytics.com/blog/visitor-ip-address-google-tag-manager/#comment-8592 Wed, 17 Jul 2019 12:14:37 +0000 http://mixedanalytics.com/?p=6969#comment-8592 In reply to matej.

The error message means you're missing the variable called 'IP Address'. Make sure you've included it as described in step 3.

]]>
By: matej https://mixedanalytics.com/blog/visitor-ip-address-google-tag-manager/#comment-8590 Wed, 17 Jul 2019 09:26:52 +0000 http://mixedanalytics.com/?p=6969#comment-8590 In reply to Ana.

Hello, thanks for reply, it says when publishing GA custom event – “Unknown variable “IP Address” found in a tag. Edit the tag and remove the reference to the unknown variable.” So i guess there is some step missing? Thank you once again, this would be very helpful.
M

]]>