Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Hits on link

New Here ,
Oct 29, 2009 Oct 29, 2009

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?

404
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 30, 2009 Oct 30, 2009
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources