Link to home
Create AccountLog in
Avatar of Stef Merlijn
Stef MerlijnFlag for Netherlands

asked on

Downloadlink clicked tracking

Hi,

I would like to track the number of time a customer is downloading my application from the website.
Currently they just click on a link and the download starts, but this isn't pickedup by google analytics.
What would be a good approach to make tracking possible?

I thought of adding a page like:
"Thank you for downloading"
"If your download doesn't start automatically please click this link"

Open in new window


Can anybody supply me with some simple example on how to set this up correctly?
I prefer code in HTML and/or PHP.
Avatar of palanee83
palanee83
Flag of United States of America image

Whether user click on some PHP script to download (PHP script internally fetches the content of the downloaded file and sent to the browser) OR they click on the actual download file to download it.

If you have PHP script , you can track it easily .
ASKER CERTIFIED SOLUTION
Avatar of palanee83
palanee83
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Stef Merlijn

ASKER

Isn't there a solution possible without using a DB?
Just plain HTML so Google analytics can pick it up?
It is possible via GA however the better option is php google doesn't reveal the ip address with the php and db you can tracl that
I don't realy need to IP.
I just want to know how many times the downloadlink is clicked.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Yes, but that doesn't show this for downloadlinks.
Is there anybody who can show me a simple example in HTML/PHP without database?
One page where the download is started (link is clicked)
Second page "Thank you for downloading...etc." (see my initial question.
On the second page Google Analytics can be integrated.
Thank you all