User Login

Help Community Login:

Can I Track IP Addresses With My Google Analytics?

33 replies [Last post]

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
STaRDoGG's picture
From:
Olympus
STaRDoGG
Head Mucky MuckJoined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainI use FirefoxI use Google ChromeI use Internet ExplorerI use SafariLinux UserMac UserWindows UserI donated to GeekDrop simply because I love it!Booga Booga BoogaI took a bite of the AppleFormer Phrozen Crew MemberI'm MagicMember of VileThe Dr. put the stem on the apple!The JokerSomeone thinks you're udderly delightful!
Relationship Status:
Divorced
Joined: 01/14/2009
Posts: 2507
Drops: 2945
Mood: Curious
Re: Can I Track IP Addresses With My Google Analytics?
Guest wrote:

should I then replace what you wrote in all my pages or can I use the original line code? your line is associated to a specific IP...

The IP that you're seeing there is your own IP address, generated by the little bit of PHP code that's in it's place in the original code. Smile So, you want to use the original code, not the code that you're seeing in the source code after visiting the page.

bioepostdoc's picture
bioepostdoc
Re: Can I Track IP Addresses With My Google Analytics?

Here the error I get when I upload a page as .php

Parse error: syntax error, unexpected T_STRING in /membri/racheleallena/Home.php on line 1

don't know what to do...
sorry!

STaRDoGG's picture
From:
Olympus
STaRDoGG
Head Mucky MuckJoined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainI use FirefoxI use Google ChromeI use Internet ExplorerI use SafariLinux UserMac UserWindows UserI donated to GeekDrop simply because I love it!Booga Booga BoogaI took a bite of the AppleFormer Phrozen Crew MemberI'm MagicMember of VileThe Dr. put the stem on the apple!The JokerSomeone thinks you're udderly delightful!
Relationship Status:
Divorced
Joined: 01/14/2009
Posts: 2507
Drops: 2945
Mood: Curious
Re: Can I Track IP Addresses With My Google Analytics?

It sounds like you might be running into an issue with your host / server rather than the code. Are you using one of those free web hosts? Often times they lock them down so tight for security reasons that you don't get access to some things, or just have a lot of issues trying to do more advanced stuff (like this). I know the code itself works fine as I've been using it myself for a couple years or more now, and have set it up for others, which makes me think it might be your web host.

bioepostdoc's picture
bioepostdoc
Re: Can I Track IP Addresses With My Google Analytics?

well, then thanks anyway for the help...I'll try to figure out what kind of problem it is...

BRIANNA's picture
BRIANNA
Moderator (Watching Over The Masses)Premium Member (Silver)I use FirefoxI use Google ChromeI use SafariWindows UserThe Dr. left the stem off the apple!
Relationship Status:
Taken
Joined: 02/27/2011
Posts: 104
Drops: 187
Mood: Optimistic
Re: Can I Track IP Addresses With My Google Analytics?

If it turns out to be your host that's the problem you might want to try BlueHost. We're hosted there and they're a solid web host with good prices. Smile

bioepostdoc's picture
bioepostdoc
Re: Can I Track IP Addresses With My Google Analytics?

Sorry to bother you, but I have another question...the last one I hope!
you said the error may be related to the host, ok
but then why by putting my IP in the test page code the IP's showed on GA and it indicates the IP that have visited the page?
could I do the same for each one of my pages?
(maybe it's a very silly question, I am not a java pro nor php Wink )

STaRDoGG's picture
From:
Olympus
STaRDoGG
Head Mucky MuckJoined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainI use FirefoxI use Google ChromeI use Internet ExplorerI use SafariLinux UserMac UserWindows UserI donated to GeekDrop simply because I love it!Booga Booga BoogaI took a bite of the AppleFormer Phrozen Crew MemberI'm MagicMember of VileThe Dr. put the stem on the apple!The JokerSomeone thinks you're udderly delightful!
Relationship Status:
Divorced
Joined: 01/14/2009
Posts: 2507
Drops: 2945
Mood: Curious
Re: Can I Track IP Addresses With My Google Analytics?

It's ok to keep asking, GeekDrop is here to help anyone who needs it. Smile

When I whipped up that test page I also visited it a few times from a few different places (proxies, etc.) so that you could see that the code does actually work, so you may be seeing those instead of your own? You can check by visiting ipchicken.com, and comparing your own IP address with any of the ones shown in GA.

Also, when you viewed your own IP in the source code, was it on a page running on your own server? Or was it the one running on mine? Other than that, I'm not really sure why, I'd have to see the full source code of the actual page you're getting that error on to see what's possibly causing it.

STaRDoGG's picture
From:
Olympus
STaRDoGG
Head Mucky MuckJoined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainI use FirefoxI use Google ChromeI use Internet ExplorerI use SafariLinux UserMac UserWindows UserI donated to GeekDrop simply because I love it!Booga Booga BoogaI took a bite of the AppleFormer Phrozen Crew MemberI'm MagicMember of VileThe Dr. put the stem on the apple!The JokerSomeone thinks you're udderly delightful!
Relationship Status:
Divorced
Joined: 01/14/2009
Posts: 2507
Drops: 2945
Mood: Curious
Re: Can I Track IP Addresses With My Google Analytics?

Give this a try:

On the page with the GA code, that you've renamed to .php, (home.php), on the very first line add this (exactly as it looks; less-than sign, question mark, php): <?php

And then on the very last line of the same page, add this: ?>

You'll also need to do that for each page that you renamed to .php.

bioepostdoc's picture
bioepostdoc
Re: Can I Track IP Addresses With My Google Analytics?

It keeps says there's an error (i.e. there is a '=' that does not work apparently...)
the very first line of code looks like this

<?php version="1.0" encoding="UTF-8"?>

I changed xml with php as you said (I tried this before too...)

STaRDoGG's picture
From:
Olympus
STaRDoGG
Head Mucky MuckJoined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainI use FirefoxI use Google ChromeI use Internet ExplorerI use SafariLinux UserMac UserWindows UserI donated to GeekDrop simply because I love it!Booga Booga BoogaI took a bite of the AppleFormer Phrozen Crew MemberI'm MagicMember of VileThe Dr. put the stem on the apple!The JokerSomeone thinks you're udderly delightful!
Relationship Status:
Divorced
Joined: 01/14/2009
Posts: 2507
Drops: 2945
Mood: Curious
Re: Can I Track IP Addresses With My Google Analytics?
Guest wrote:

I changed xml with php as you said (I tried this before too...)

Laughing I said NOT to change the .xml files to php. Only the .htm/.html files that you're putting the GA code into. See here?

First, just rename it (that file) back to .xml (and don't put the GA code into it), if it still errors try changing the <?php to <?xml

Who's New

Etilme's picture
ripandrun1111's picture
tyreksavageazz's picture
dizzybitch's picture
YunieQueen's picture
mugumya frank's picture
axtranti's picture
Avinash Murmu's picture
sniper's picture
keenan101's picture
jc3708's picture
babauzis's picture
DeezyCain's picture
Tiaaaaaa__'s picture
shurbashy's picture
facebook codes exploits tips tricks Phrozen Crew
All contents ©Copyright GeekDrop 2009-2014
TOS | Privacy Policy