Click Tracking & Encrypting - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Web Application/Script Support

WebmasterForums.com is the premier Forum on the internet. Registered Users do not see the above ads.
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-06-2012, 08:47 AM   #1 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 4
Default Click Tracking & Encrypting

I am hoping someone can point me towards a script (or ideally a wordpress plugin) that would allow me to track what ads are being clicked on my website.

This will be basic banner ads, not Adsense or anything like that.

It would need to have an interface that showed me what ad was clicked and how many times. Ideally it would be good if it could encrypt the link as well so that obvious affiliate links could be hidden.
Telemicus is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old 02-10-2012, 01:44 AM   #2 (permalink)
Regular User
 
Join Date: Feb 2012
Posts: 47
Default Re: Click Tracking & Encrypting

Do you know how to code in php/mysql?

I just built my own tracking system. Basically just set all your banners to go to www dot yourdomain dot com/trackingscript.php?Id=WhateverIdYouAssignedYourBan ner

Have a database set up with an Id, clicks, and the corresponding exit URL.

Once the script is called, increase your click count and redirect the user to the proper exit url.

You could even pass through more variables and track those as well. Ex. I track all clicks from facebook and twitter seperately just by adding &Twitter=1 or &Facebook=1 to the end of my url. The possibilities are endless.

I also like this solution because you don't need to cloak your urls if you are affiliate marketing. The URL shown is directly on your domain.

Does the trick for me and I don't have to rely on external sources.
Dealsopoly is offline   Reply With Quote
Old 02-10-2012, 02:43 AM   #3 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 4
Default Re: Click Tracking & Encrypting

Hi,

Thanks for your reply. I'll have a look for a similar script. I know a little php but not enough mySQL just yet to be able to do this. I understand your idea about the encrypting not being necessary because of the redirect so thanks for that - it'll help me narrow my search.
Telemicus is offline   Reply With Quote
Old 02-10-2012, 03:15 AM   #4 (permalink)
Regular User
 
Join Date: Feb 2012
Posts: 47
Default Re: Click Tracking & Encrypting

The mysql is pretty simple. Here's my basic script. It's pretty much the whole thing. Just save it as a php file and then call it with a ?LinkId=XXX parameter

The only thing you would need to set up is a mysql database called linkdb with the following structure:

id (INT)
clicks (INT)
redirect_url (VARCHAR)


Once that is done, I just set up a quick form to add/modify an entry, then another page to view the data in a table.


It's not fancy and won't track all these crazy stats like other linking sites, but it will still give you a general idea of which links are being clicked.

-------------------
<?php
$redirection = 'http your site (dot) com; // YOUR URL (I can't post links yet

if($_GET["LinklId"] > 0)
{
$id = $_GET["LinklId"];

// Connects to your Database
mysql_connect(localhost,$username,$password);
mysql_select_db($database) or die(mysql_error());

//Adds to the click count for a particular link
mysql_query("UPDATE linkdb SET clicks = clicks + 1 WHERE ID = $id")or die(mysql_error());

//Retrieves information
$data = mysql_query("SELECT redirect_url FROM linkdb WHERE ID = $id") or die(mysql_error());

if(mysql_numrows($data) > 0)
$redirection = mysql_result($data,0,'redirect_url');

mysql_close();
}
//redirects them to the link they clicked
header( "Location: ".$redirection );
?>

---------------

It's also probably not coded as efficiently as it could. I am by no means an expert php programmer. I just started reading up on w3school about it about a year ago.

Good luck!
Dealsopoly is offline   Reply With Quote
Old 02-10-2012, 06:38 AM   #5 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 4
Default Re: Click Tracking & Encrypting

That's brilliant, thanks very much for that - I appreciate it.
I'll have a go at it over the weekend, but you have certainly made things much easier for me.
Telemicus is offline   Reply With Quote
Old 03-05-2012, 03:42 PM   #6 (permalink)
Regular User
 
Join Date: Feb 2012
Posts: 47
Default Re: Click Tracking & Encrypting

Did you end up figuring something out?
Dealsopoly is offline   Reply With Quote
Old 03-06-2012, 08:16 AM   #7 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 4
Default Re: Click Tracking & Encrypting

Hi there,

Yes I did. I have not tried your script yet (but still will do) but managed to get a basic script from hotscripts on it for the time being. I have been distracted by work issues but will hopefully get back to this in another few weeks.

Thanks for checking tho!
Telemicus is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisement

» Advertisement

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Advertisement

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 03:36 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting