Dynadot โ€” .com Registration $8.99

Google analytics questions

Spaceship Spaceship
Watch

mar6

Established Member
Impact
0
Hopefully i post it in correct place...

I put google analytics code to my webpage, but is it somehow possible to configure it so, that it does not show when i visit my own webpage?
Only data of other visitors. Can i "block" my ip adress somehow?

And one other question.
Does google analytics shows info in realtime or after some time?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Use PHP.

PHP:
<?php 

// Fill in your IP address here.
$your_ip="123.456.789.012"; 

$uip=$_SERVER["REMOTE_ADDR"];
if ($your_ip != $uip) { ?>
 
  GOOGLE CODE HERE 
  
<?php } ?>
 
0
•••
Danltn said:
Use PHP.

PHP:
<?php 

// Fill in your IP address here.
$your_ip="123.456.789.012"; 

$uip=$_SERVER["REMOTE_ADDR"];
if ($your_ip != $uip) { ?>
 
  GOOGLE CODE HERE 
  
<?php } ?>

Thank you, i try it.
:)
 
0
•••
Did it work?
 
0
•••
I have a Google Analytics question that deals with WhyPark.com If you look at the HTML Source code on a WhyPark page (when you view source from your web browser) you will notice that their are two different Google Analytics tracking scripts (WhyPark adds it own Google Analytics Tracking sctipt-This is in addition to the Google Analytics code that you add yourself). I think WhyParkโ€™s Analytics code might be the cause of my issue:

I cannot use the Google Analytics Goal Tracking to create a goal that leads to an external website. For instance if I have a link to cnn.com on my WhyPark site, I want to set up a Google Analytics goal to see how many people click the link. According the Analytics Help Page, all you have to do is make sure your Analytics code is above to link and add this piece of JavaScript to the link:
<a href="http://www.example.com" onClick="javascript:urchinTracker('/G1/example_com');">

You can then add this fake page /G1/example_com as a Goal, and you should be able to track it. I have done this, and the goal tracking simply will not work. My only guess is the extra Analytics code WhyPark automatically adds.

Does anyone have any suggestions or any luck with this process? Thanks!
 
0
•••
Danltn said:
Did it work?

Dont know :red:
I moved back to statcounter becouse it is easyer to use and i have webpage with small traffic and statcounter is ok too at this time.
I tried analytics but i dont understand it very well.
Maybe in future i start "studying" analytics again.
(And then i try that code ofcource)
 
0
•••
chipdomains82 said:
I cannot use the Google Analytics Goal Tracking to create a goal that leads to an external website. For instance if I have a link to cnn.com on my WhyPark site, I want to set up a Google Analytics goal to see how many people click the link. According the Analytics Help Page, all you have to do is make sure your Analytics code is above to link and add this piece of JavaScript to the link:
<a href="http://www.example.com" onClick="javascript:urchinTracker('/G1/example_com');">

You can then add this fake page /G1/example_com as a Goal, and you should be able to track it. I have done this, and the goal tracking simply will not work. My only guess is the extra Analytics code WhyPark automatically adds.

Does anyone have any suggestions or any luck with this process? Thanks!

When you say you add that piece of javascript I presume you are in fact only adding onClick="javascript:urchinTracker('/G1/example_com'); to the link and not the whole text you posted.

If that is the case then do whypark use any javascript themselves?

Danltn said:
Use PHP.

PHP:
<?php 

// Fill in your IP address here.
$your_ip="123.456.789.012"; 

$uip=$_SERVER["REMOTE_ADDR"];
if ($your_ip != $uip) { ?>
 
  GOOGLE CODE HERE 
  
<?php } ?>

There is no need to edit php scripts to not count hits from certain IP's. If you log onto Analytics and click on Filter Manager then Add Filter you can add them into the google analytics system and they will not count those hits. Remember to change the IP however if your IP changes at any time.
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back