Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Count number of clicks on a URL

Posted on 2013-05-17
1
Medium Priority
?
306 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 83

Accepted Solution

by:
David Johnson, CD, MVP earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

604 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