Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-21-2009, 10:18 AM   #1
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
An Improved Click Tracking Method, technical

I wrote previously how some sponsors strip the query string when receiving traffic from a header redirect (IOW, you lose your affiliate ID if you send traffic from a header redirect).

In search of a better solution to this so that I could have 100% reliable click tracking AND 100% of sponsors wouldn't lose my affiliate information I came up with this technique:

On any outgoing link, rather than sending them to a forwarding page add an onclick handler to the link tag:

Code:
<a href="http://somesponsor.com/?foo=bar" onclick="return clickTrack(yourTrackingId);">Some Anchor Text</a>
In your JS function "clickTrack" simply perform an AJAX request to your tracking script and pass in the necessary information you require for tracking. If you use Prototype something like this:

Code:
function clickTrack(id)
{
  var url = '/link?from='+escape(document.location.href.toString())+'&id='+id;
  new Ajax.Request(url, {
    method: 'get',
    onSuccess: function(transport) {
      return true;
    }
  });
	
  return true;  //Added in case the request fails... 
}
This was made simply as an example but it works great without worrying about how any sponsor will receive your clicks since they are all sent using the standard link. We're just adding in an in between step... Of course, you can add in any number of tracking items to be passed through such as which link on the page they clicked (specifically), the x, y coordinates of the click, sky is the limit and you have quite a bit more UI options since this is handled through Javascript.

Anyway, just thought I would share...
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-21-2009, 10:19 AM   #2
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
Final note: If you're worried about linking directly to a sponsor for SEO reasons (or other)... then this may not be an option for you.
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-21-2009, 10:59 AM   #3
OrangeContent
Confirmed User
 
OrangeContent's Avatar
 
Join Date: Mar 2009
Location: US / Canada
Posts: 381
Thanks for your idea.

I hope someone utilizes it / improves it and then implements it.

I sometimes wonder how many sales I'm actually missing out on due to deleted / overwritten cookies.
__________________
START A REVIEW SITE GOOD PRICES ON WRITTEN REVIEWS CLICK HERE
quote (at) orangecontent.com | ICQ: 564-113-756
OrangeContent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-21-2009, 12:29 PM   #4
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
Bump for anyone interested in improving their site...
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.