Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...LinkClick.aspx source code?LinkClick.aspx source code?
Previous
 
Next
New Post
6/20/2010 9:18 AM
 
I need to use the LinkClick.aspx to track links clicked inside a email and there log the users clicks without them first logging in to the DNN framework. My Idea is to use LinkClick.aspx together with the userID found in the dbo.aspnet_users table and its column UserID column  and in this way log the clicks without the users logging into the DNN framwork

But where do I find the source code for LinClick.aspx that I need to override?
 
New Post
6/20/2010 9:03 PM
 
To answer your question directly: /services/FileSystem/FileServerHandler.vb

To give some friendly advice: it sounds like a good idea but ultimately it's not going to work very well.

You can't get the userid of a user unless they are logged on.  The user id can only be delivered through the dnn/asp.net authentication provider, or by lookup on the username if you have that.   You can ultimately get some users automatically if you increase the logon period so that the authentication cookie is kept for longer than default - this automatically re-logs the person on to the site *if* they checked the 'remember logon' box, and so will be available in the linkclick handler 'click'.  However, people click on emails from a variety of devices, they use different browsers, they clear their cookies, they do all sorts of things which means that they are not always going to log on automatically.  This is going to leave your data patchy and misleading, and ultimately pretty worthless.  You're also making the assumption that every user that clicks on an email is a registered user, which is faulty reasoning because any of your users could forward the email to someone else.

If you want to modify the linkclick handler I advice making your own handler and remvoving the linkclickhandler from the web.config file, and adding your own handler using the same 'linkclick.aspx' path.  This way you're not modifying the DNN Core and you leave an easier upgrade path.  You'll also need to create your own table to track the clicks, because the standard linkclick table tracks aggregate clicks, not individual clicks, and you don't want to modify the core tables.

I'm assuming your requirement is to track email open rates, and try and get an idea of which users are opening which emails.  I would suggest you look at an email service like MailChimp, because it's got more features than you could program in a years worth of work, is ready to go and will give you much higher delivery rates than just bulk emailing your users yourself.  They will give you statistics of opens on an email by email basis, which you could then re-import back into your database if you want to do analysis on it.  But the data is pretty worthless except for assessing trends in open rates - it's not particularly useful on an individual user basis because it is so unreliable, and you can't extract any meaningful information from it.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...LinkClick.aspx source code?LinkClick.aspx source code?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out