Digital Point Forums
Wire Transfer

Go Back   Digital Point Forums > Design & Development > Site & Server Administration > Traffic Analysis > Google Analytics
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #21  
Old Nov 22nd 2005, 12:59 pm
digitalpoint's Avatar
digitalpoint digitalpoint is online now
My cat is on Prozac... really. lol
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 22,359
digitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond repute
Phone Verified
I haven't tested it myself, but this would probably work (same code for both AdSense and YPN)...

Let me know if it works (once someone tries it).
javascript Code:
<script type="text/javascript">
// by Shawn - http://www.digitalpoint.com/~shawn/2005/11/track-adsense-clicks-with-google-analytics.html
// Put this at the bottom of the page (after the last AdSense block)
   
function adsense_click() {
    if(window.status.indexOf('go to') == 0) {
        urchinTracker ('/AdSenseClick');
    }
}

function ypn_click() {
    urchinTracker ('/YPNClick');
}
   
var elements;
if(document.getElementsByTagName) {
    elements = document.body.getElementsByTagName("IFRAME");
} else if (document.body.all) {
    elements = document.body.all.tags("IFRAME");
} else {
    elements = Array();
}
   
for(var i = 0; i < elements.length; i++) {
    if(elements[i].src.indexOf('googlesyndication.com') > -1) {
        elements[i].onfocus = adsense_click;
    } else if (elements[i].src.indexOf('overture.com') > -1) {
        elements[i].onfocus = ypn_click;
    }
}
</script>
__________________
- Shawn
Keyword Tracker now supports Google (once again) as well as Bing (new) and Yahoo
Please do not PM, IM or email me for product or tool support (they will go unread/ignored), and don't "friend" me unless we are really friends.
Reply With Quote
  #22  
Old Nov 22nd 2005, 2:40 pm
mjewel's Avatar
mjewel mjewel is offline
Astral Walker
 
Join Date: May 2004
Location: Northern California
Posts: 5,291
mjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant future
Thanks Shawn, I really appreciate it. I will give it a try and post the results.

Gee, why is DP my favorite forum?
Reply With Quote
  #23  
Old Nov 23rd 2005, 3:24 pm
tresman tresman is offline
Champion of the Naaru
 
Join Date: Dec 2004
Posts: 235
tresman will become famous soon enough
Seobook has published a similar code at http://www.seobook.com/archives/001370.shtml which is supossed to work with Firefox.

I'm not like working on my sites right now, so if someone tries it it would be nice to hear how it worked.
Reply With Quote
  #24  
Old Nov 23rd 2005, 10:40 pm
Dekker Dekker is offline
Starcaller
 
Join Date: Aug 2005
Posts: 4,183
Dekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to behold
shawn, do you have any idea how to track chitika clicks with analytics?
Reply With Quote
  #25  
Old Nov 23rd 2005, 10:56 pm
digitalpoint's Avatar
digitalpoint digitalpoint is online now
My cat is on Prozac... really. lol
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 22,359
digitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond repute
Phone Verified
No idea... never looked at Chitika.
__________________
- Shawn
Keyword Tracker now supports Google (once again) as well as Bing (new) and Yahoo
Please do not PM, IM or email me for product or tool support (they will go unread/ignored), and don't "friend" me unless we are really friends.
Reply With Quote
  #26  
Old Nov 24th 2005, 8:50 am
mjewel's Avatar
mjewel mjewel is offline
Astral Walker
 
Join Date: May 2004
Location: Northern California
Posts: 5,291
mjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant future
YES!! Shawn did it again. Works with YPN
Reply With Quote
  #27  
Old Nov 25th 2005, 4:51 pm
Dekker Dekker is offline
Starcaller
 
Join Date: Aug 2005
Posts: 4,183
Dekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to behold
Quote:
Originally Posted by tresman
Seobook has published a similar code at http://www.seobook.com/archives/001370.shtml which is supossed to work with Firefox.

I'm not like working on my sites right now, so if someone tries it it would be nice to hear how it worked.
from what I see...no

Though I may have installed it wrong or am reading the wrong page I dunno
Reply With Quote
  #28  
Old Dec 12th 2005, 7:45 am
tflight tflight is offline
Twilight Vanquisher
 
Join Date: Mar 2005
Location: ~/ || 45°02'"N 70°19'W
Posts: 618
tflight will become famous soon enough
Shawn,

FYI I've noticed that my friend Googlebot is starting to do some interesting things with this code. Given a random page on my site http://example.com/foo/ Googlebot sees a link to http://example.com/foo/googlesyndication.com.

I'm not sure if there is actually any harm with this, but Googlebot is getting loads of 404's from my sites that are running this code.
__________________
Read gps reviews. Drink a few k-cups, . Need ?
Reply With Quote
  #29  
Old Dec 14th 2005, 3:19 pm
randymorin's Avatar
randymorin randymorin is offline
Hand of A'dal
 
Join Date: Sep 2005
Location: Brampton, ON, Canada
Posts: 387
randymorin can only hope to improve
Quote:
Originally Posted by tflight
Shawn,

FYI I've noticed that my friend Googlebot is starting to do some interesting things with this code. Given a random page on my site http://example.com/foo/ Googlebot sees a link to http://example.com/foo/googlesyndication.com.

I'm not sure if there is actually any harm with this, but Googlebot is getting loads of 404's from my sites that are running this code.
I'm getting something similar, but it's not originating from Googlebot.

This code is still in testing, but if anybody else wants to test it, then feel free.

Add this

Code:
        function chitika_click() 
        {
	        if(window.status.indexOf('go to') == 0) 
	        {
		        urchinTracker ('/ChitikaClick');
	        }
        }
Change the for loop as such

Code:
        for(var i = 0; i < elements.length; i++) 
        {
	        if(elements[i].src.indexOf('googlesyndication.com') > -1) 
	        {
		        elements[i].onfocus = adsense_click;
	        }
	        else if (elements[i].src.indexOf('mm.chitika.net') > -1) 
	        {
		        elements[i].onfocus = chitika_click;
	        }
        }
Note: I'm not having any luck. Looks like Chitika took a break (is down).
__________________
Randy Charles Morin
R-mail Besting Adwords

Last edited by randymorin; Dec 14th 2005 at 3:41 pm. Reason: post merge
Reply With Quote
  #30  
Old Dec 14th 2005, 5:37 pm
randymorin's Avatar
randymorin randymorin is offline
Hand of A'dal
 
Join Date: Sep 2005
Location: Brampton, ON, Canada
Posts: 387
randymorin can only hope to improve
In my code immediately above, I think the first snippet should be...

Code:
        function chitika_click() 
        {
	        if(window.status.indexOf('More Info') == 0) 
	        {
		        urchinTracker ('/ChitikaClick');
	        }
        }
I'm still testing it.
__________________
Randy Charles Morin
R-mail Besting Adwords
Reply With Quote
  #31  
Old Dec 21st 2005, 4:51 pm
randymorin's Avatar
randymorin randymorin is offline
Hand of A'dal
 
Join Date: Sep 2005
Location: Brampton, ON, Canada
Posts: 387
randymorin can only hope to improve
Update, it worked!
__________________
Randy Charles Morin
R-mail Besting Adwords
Reply With Quote
  #32  
Old Dec 29th 2005, 8:16 am
amitpagarwal's Avatar
amitpagarwal amitpagarwal is offline
Hand of A'dal
 
Join Date: May 2005
Location: labnol.org
Posts: 375
amitpagarwal will become famous soon enough
Shawn - Thanks for this wonderful script.

I have modified it a little to include clicks on "Advertise on this site" "Ads by Google", Chitika and YPN ads.

http://labnol.blogspot.com/2005/12/v...n-adsense.html

The above script tracks clicks on Google Ad Units and Adlinks separately.

TODO: Write a script for firefox based on Aaron's script.
__________________
AdSense Sandbox
Reply With Quote
  #33  
Old Dec 29th 2005, 3:50 pm
mjewel's Avatar
mjewel mjewel is offline
Astral Walker
 
Join Date: May 2004
Location: Northern California
Posts: 5,291
mjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant futuremjewel has a brilliant future
Thanks for the update. Be sure to post if you get the script to work with firefox.
Reply With Quote
  #34  
Old Jan 16th 2006, 11:41 am
alephito's Avatar
alephito alephito is offline
Champion of the Naaru
 
Join Date: Aug 2005
Location: Buenos Aires, Argentina
Posts: 197
alephito will become famous soon enough
How can you avoid the tracking of clicks in Adlinks? The problem I see is you don't know if the user will finally click in the ad (second click) and the script counts all the first clicks in Adlink Units.
__________________
Blackberry Tricks - How to Camp Out
Reply With Quote
  #35  
Old Jan 23rd 2006, 9:02 pm
theduke56789 theduke56789 is offline
Champion of the Naaru
 
Join Date: Aug 2005
Posts: 206
theduke56789 is on a distinguished road
Little late to the game. So what's the best way to track ad units like adlinks in google analytics?

I'm using the seobook script but don't think it provides ad unit data...
Reply With Quote
  #36  
Old Jan 23rd 2006, 10:45 pm
amitpagarwal's Avatar
amitpagarwal amitpagarwal is offline
Hand of A'dal
 
Join Date: May 2005
Location: labnol.org
Posts: 375
amitpagarwal will become famous soon enough
Quote:
Originally Posted by golfhomeconnect
Little late to the game. So what's the best way to track ad units like adlinks in google analytics?
Here's a modified script that tracks clicks in Adlink units.

http://labnol.blogspot.com/2005/12/v...n-adsense.html
__________________
AdSense Sandbox
Reply With Quote
  #37  
Old Jan 24th 2006, 7:23 am
theduke56789 theduke56789 is offline
Champion of the Naaru
 
Join Date: Aug 2005
Posts: 206
theduke56789 is on a distinguished road
Thanks for the reply ....so does this work with Firefox?
Reply With Quote
  #38  
Old Feb 12th 2006, 9:06 am
Riboflavin's Avatar
Riboflavin Riboflavin is offline
Twilight Vanquisher
 
Join Date: Nov 2005
Location: Arizona
Posts: 957
Riboflavin will become famous soon enoughRiboflavin will become famous soon enough
Thanks for the code guys, and sorry to bump up the old thread but I think it is still relevant, no point in starting a new topic on this subject.

For me my analytics is reporting more chitika clicks than chitika says I receive, anyone know why?
__________________
New Star Trek DVD - Up DVD -
Reply With Quote
  #39  
Old Feb 26th 2006, 5:42 pm
naplesdave's Avatar
naplesdave naplesdave is offline
Peon
 
Join Date: Oct 2005
Location: Naples, FL
Posts: 22
naplesdave is on a distinguished road
Hi there!

Beginning the 23rd of February, my Goal %'s are way down, however, actual click throughs are the same. Has anyone else noticed this?

Again, the number in the G1 or G2 is way off, but clicks on ads are the same.

Thanks for any input.
Kind regards,
Dave Jackson
Reply With Quote
  #40  
Old Feb 26th 2006, 6:11 pm
tflight tflight is offline
Twilight Vanquisher
 
Join Date: Mar 2005
Location: ~/ || 45°02'"N 70°19'W
Posts: 618
tflight will become famous soon enough
Yes, I can report seeing the same thing. Around Feb 23 goal tracking went to zero.
__________________
Read gps reviews. Drink a few k-cups, . Need ?
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
clicks on ads vs. adsense registered clicks ghacks Reporting & Stats 17 Feb 6th 2007 7:20 pm
Google Analytics - What's in it for them? stephenmunday Google Analytics 9 Oct 9th 2006 11:57 pm
Anyone figure out how to track adsense with the Google stats? mopacfan Traffic Analysis 8 Nov 18th 2005 12:35 pm
Google Analytics Down Already? prowess Google Analytics 15 Nov 17th 2005 2:36 pm
Tracking Google Adsense Clicks daboss Reporting & Stats 9 Jan 11th 2005 12:41 am


All times are GMT -8. The time now is 4:02 pm.