Solved

Count number of clicks on a URL

Posted on 2013-05-17
1
283 Views
Last Modified: 2013-05-29
Hi,

I have an application that sends a URL out to clients.

I want to know how i can count the number of clicks on that particular URL, this is because the URL gets sent to a clients email and i want to check if they have clicked on it

Thanks

R8VI
0
Comment
Question by:R8VI
1 Comment
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 39175457
make the click url unique.
i.e. campaign17052013.htm
and have that url redirect to the page you want the user to see

now all you have to do is check your iis logs for the # of hits OR within the page have it increment a counter

By adding a ?uniqueid  -- where uniqueid is a unique identifier you can also know WHICH user actually clicked on the link.

i.e.
http://www.example.com/campaign17052013?ve3ofa.html

here I used the default iis page
2013-05-17 17:09:01 ::1 GET /iisstart.htm - 80 - ::1 Mozilla/5.0+(Windows+NT+6.2;+WOW64;+rv:20.0)+Gecko/20100101+Firefox/20.0 - 200 0 0 0
2013-05-17 17:09:09 ::1 GET /iisstart.htm ve3ofa 80 - ::1 Mozilla/5.0+(Windows+NT+6.2;+WOW64;+rv:20.0)+Gecko/20100101+Firefox/20.0 - 200 0 0 1
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now