Forum Moderators: martinibuster
I have seen posts that wish detailed AdSense reports such as site level or page level stats.
Currently, we are working on a script to track AdSense impressions and clicks. The script lets you track the stats of sites, pages, referrers, color combinations, ad formats, visitor countries, paid or alternate ads displayed etc.
To remove questions, it conforms to Google TOC completely. No change to AdSense code, no interference.
I want to know your opinions on tracking AdSense independently. Do you personally want to use such a script? What features would you expect?
Thanks
and since you don't know how many times each ad/url was shown originally
You could always log also the impressions, it's quite easy. In fact the script developed by jonathanleger does that. The thing is that with some accounts the performance would be very poor with that huge data (my case). Also you can check your logs, stats programs, web stats... to check the impressions per file.
In any case, the information provided for this kind of scripts is very valuable. You would need only to take a look to some complete stats to realize.
Also I am concerned that the additional JS code might slow down the click-thru process or even crash some buggy browsers
That is completely false with a good code. Those scripts does not interfere at all.
function aslog(e) {
window.focus();
if (window.status.indexOf('go to') == 0)
{
var bug = new Image();
bug.src = 'YOURCLICKTRACKINGSCRIPT?ref=' + escape(document.location.href) +
'&url=' + escape(window.status) +
'&w=' + google_ad_width +
'&h=' + google_ad_height +
'&f=' + getVariable('format') +
'&cb=' + getVariable('color_border') +
'&cbg=' + getVariable('color_bg') +
'&cl=' + getVariable('color_link') +
'&cu=' + getVariable('color_url') +
'&ct=' + getVariable('color_text');
}
}var iframeObj;
var elements;
elements = document.getElementsByTagName("iframe");
for (var i = 0; i < elements.length; i++) {
if(elements[i].src.indexOf('googlesyndication.com') > -1)
{
if (document.layers)
{
elements[i].captureEvents(Events.ONFOCUS);
}
elements[i].onfocus = aslog;
iframeObj = elements[i];
}
}function getVariable(name) {
var dc = iframeObj.src;
var prefix = name + "=";
var begin = dc.indexOf("&" + prefix);
if (begin == -1) {
begin = dc.indexOf("?" + prefix);
if (begin == -1) return null;
} else
begin += 1;
var end = iframeObj.src.indexOf("&", begin);
if (end == -1)
end = dc.length;
return unescape(dc.substring(begin + prefix.length, end));
}var bug = new Image();
bug.src = 'YOURPAGEVIEWTRACKINGSCRIPT?url=' + escape(document.location.href) + '&pv=1' +
'&w=' + google_ad_width +
'&h=' + google_ad_height +
'&f=' + getVariable('format') +
'&cb=' + getVariable('color_border') +
'&cbg=' + getVariable('color_bg') +
'&cl=' + getVariable('color_link') +
'&cu=' + getVariable('color_url') +
'&ct=' + getVariable('color_text');
if (window.status.indexOf('go to') == 0)
Still ignoring Spanish ads ("ir a"), French ads ("Afficher la page"), German ads ("gehe zu")...
All these things should not depend on the javascript, but on the server side script, cause then you could add more languages when added to AdSense.
A simple if (window.status) will tell you if an ad (and not the "ads by google" link) has been clicked.
[blooberry.com...]
We need an alternative to onfocus for NS/Mozilla! I'm still working on it...
From Noel: monitorman,
I'm getting an error with your "Adsense Script - Clicks"
The error is:
I apologize for the error. I made a change to that page just before the post which used the older zip file. The correct one is now posted on my site.
This SCRIPT tracks your financial status every x minutes and records that information to the database. You can choose to receive email notifications of updates, etc.
If you can think of improvements, just let me know.
I'm doing all of the setup in cpanel. I created the database.. etc..
You say run the tracker.sql to create the proper tables? I'm doing this:
http://mysite.com/tracker/tracker.sql
However, it doesn't look like it's working, because when I try to ad a site in setup, it doesn't show up in the drop down box below? (not writing to DB)
Thanks.
monitoring now with <snip> script, and i´m really procured of many visitors clicking an ad 2 or 3 times! I know, google filters this out
Clicking the same ad 2 or 3 times? Or clicking 2 or 3 different ads? The former is likely filtered out, though I don't think anything definitive has been shared about that and I suspect the latter is pretty common and I suspect those clicks are credited.
[edited by: Jenstar at 4:21 pm (utc) on Mar. 6, 2004]
[edit reason] No specifics to tools, please [/edit]
Clicking the same ad 2 or 3 times? Or clicking 2 or 3 different ads? The former is likely filtered out, though I don't think anything definitive has been shared about that and I suspect the latter is pretty common and I suspect those clicks are credited.
I would tend to agree and was tempted to post a similar reply 2 hours ago, but the fact of the matter remains someone may be interested in your topic and not find the first site on their first click to be of interest, therefore multiple clicks from the same client are to be expected. If you are seeing multiple clicks on the same advert for the same client then it would be worth keeping an eye on the situation! BTW if someone is abusing this it is easy enough to block them at the border or server level!
I'm particularly concerned about understanding why ad views may be filtered. I'm seeing lots of visitors, each IP visiting a narrow topic, clicking 3-4 ads. I can't say I've detected any filtering since this is the first day.
I suppose I'll wait a day or two before drawing any conclusions for myself.
I'm hoping of using something like this:
bug.src = '/cgi-bin/axs/ax.pl?ref=' + document.location + '&url=' + window.status.substring(6);
there have been times i've clicked an ad (not on my own site) only to realize that my popup blocker prevented it from opening up properly. so, i'd have to toggle the thing off and click again. anyway, just thought i'd let you know of at least one legitimate reason someone might click the same ad twice.