9, July 2008

tracking cliks. - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Monetizing your site  >  CPC programs  >  Chitika eMiniMalls
Topic: tracking cliks.
« previous next »
Pages: [1] Print

Author Topic: tracking cliks.  (Read 1027 times)
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« on: Nov 21, 2005, 10:25:39 PM »

Hi all,

I've just found this forum, and till now it's the only one (that I have found) with a Chitika 'group' in it.

Anyway.. I've been with Chitika for about 2 months now, and I must say that till now I'm happy with it.
(I'm doing about 60.000 unique impressions per day)

On some of my sites I also have Adsense, and with it I have a small 'click' tracking script (no I did not modify the Adsense code)
The script looks like this:
Code:
<script type="text/javascript"><!--
function hit() {
window.focus();
if (window.status) {
img = new Image();
img.src = 'log.cfm?ref=' + escape(document.location) + '&link=' + escape(window.status);
};
};
document.getElementById("google_ads_frame").onfocus = hit;
//--></script>

(note that this is only a small part of the code. The log.cfm does the rest.)

If I look at the mm.js code from Chitika, it looks like it does 'onfocus' on 'ch_ad', so I changed the:
document.getElementById("google_ads_frame").onfocus = hit;

to

document.getElementById("ch_ad").onfocus = hit;

Guess what.. It does not work :-(
Error I get is a: Error: 'document.getElementById(...)' is null or not an object

Are there any good 'javascript' coders here who can maybe help me with this problem?

Thank you...
« Last Edit: Nov 21, 2005, 10:34:41 PM by wifi »
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7942
40601 credits
Members referred : 3



« Reply #1 on: Nov 22, 2005, 09:19:55 AM »

First of all welcome to our small community Smiley

Javascript is not an area that I am good, but I think that the phpAdsNew script can handle chitika ads (it has a javascript that do the same thing that your script does).

Propably you should take it from there.

Or maybe put your ad into a <div> and call the function for the click in the div. This could propably work.

Hope I might helped you Smiley

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #2 on: Nov 22, 2005, 10:41:09 AM »

First of all welcome to our small community Smiley

Javascript is not an area that I am good, but I think that the phpAdsNew script can handle chitika ads (it has a javascript that do the same thing that your script does).

Propably you should take it from there.

Or maybe put your ad into a <div> and call the function for the click in the div. This could propably work.

Hope I might helped you Smiley

Hi Nikolas,

Thank you for the welcome. You will be seeing me more here :-)

re: phpAdsNew script.
Nice script.. I did not know about this one. I'm going to give it a go later today.

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7942
40601 credits
Members referred : 3



« Reply #3 on: Nov 22, 2005, 10:44:26 AM »

It is a very good one.

I use it for all my sites(except this). It needs some time to learn how  to use it (as everything else does) but it worths it.

Url is http://www.phpadsnew.com/ Visit through proxy

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=847
Tags : javascript forums adsense chitika Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Monetizing your site  >  CPC programs  >  Chitika eMiniMalls
Topic: tracking cliks.
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 09, 2008, 07:40:29 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.582
Total Topics: 7.354
Total Members: 3.659
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: 3hounddesign

15 Guests, 4 Users online :

16 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.