Copy link to clipboard
Copied
I need to count how many times a word document link is clicked on for my web page. I am thinking about creating something in ColdFusion where each time someone clicks on the word document I would have a link parameter increase a counter in the database field. Please advise if someone has any other suggestions or ideas on how to handle this?
Copy link to clipboard
Copied
Hi,
If you want to record the total downloads I would recommended building an intermediate page which records the details then starts the download. A baisc example...
1) Page with link
2) User clicks link
3) User is redirected to URL download.cfm?id=1
4) Download.cfm template then records user request in DB
5) Download.cfm then using maybe cflocation loads the relevant document for the user.
The above method is a very easy way to record downloads. download.cfm template would be used to record all downloads with the referring ID alway corresponding to the requested document.
Glyn.