Help - Search - Members - Calendar
Full Version: Getting User Ip Address Through Google Analytics
MonsterSmallBusiness Forums > MonsterCommerce > MC Plug-ins & Add-ons > Urchin Site Statistics
paulhung
Has anyone had any luck in setting up a user-defined parameter for getting a visitor's IP address in Google Analytics? Supposedly something like this would work normally, but since we have limited access to monstersmile.gif code and php doesn't work, I can't really figure it out on my own.

[codebox]<body onLoad="java script:__utmSetVar('<?php echo $_SERVER['REMOTE_ADDR']; ?>')">[/codebox]

Source: http://forums.searchenginewatch.com/showthread.php?t=9144


paulhung
I'll answer my own question: No you cannot do this Paul. First of all, Google's Terms of Service forbids this (associating data to IP addresses) and additionally they changed Google Analytics so that you can no longer "hack" the software to obtain IP addresses.

I'm mostly happy with Google Analytics, but this is honestly a very silly restriction. Anyone who runs their own server is able to parse their logs and view the IP addresses that are hitting their web server. From what I recall, lots of other free stats sites offer this functionality without a flinch.

While I'm at it, another thing I wish I was able to do was to see statistics for the images on a site. You know, to keep an eye out for leechers.

Anyways, not a big deal... just a minor nuisance... again.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.