Web Design Forum: Tracking a zip download - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Tracking a zip download

#1 User is online   jamesosix 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 446
  • Joined: 16-June 10
  • Reputation: 20
  • Gender:Male
  • Location:South Wales
  • Experience:Intermediate
  • Area of Expertise:SEO

Posted 21 August 2011 - 11:09 AM

Hi guys, I am currently making a website for a musician and he is offering a free download of his album. I have built that into the site, but is there an easy way to track how many people download it?

I see google analytics(sp?) is the way to go, but I have never undertook something like this before and would appreciate some help as to where to start.

If i can provide any more info, please let me know

Many thanks
0

#2 User is offline   Dxnx 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 130
  • Joined: 19-January 09
  • Reputation: 5
  • Gender:Male
  • Location:London
  • Experience:Advanced
  • Area of Expertise:Entrepreneur

Posted 21 August 2011 - 01:02 PM

Try this: http://www.google.co...py?answer=55529

You add an OnClick javascript handler for the link to download the file like this:

<a href="http://www.example.com/files/downloadedfile.zip" onClick="javascript: pageTracker._trackPageview('/downloads/map'); ">

0

#3 User is offline   rallport 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 3,816
  • Joined: 03-January 10
  • Reputation: 266
  • Gender:Male
  • Location:England, UK
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 05 October 2011 - 05:47 PM

View PostDxnx, on 21 August 2011 - 01:02 PM, said:

Try this: http://www.google.co...py?answer=55529

You add an OnClick javascript handler for the link to download the file like this:

<a href="http://www.example.com/files/downloadedfile.zip" onClick="javascript: pageTracker._trackPageview('/downloads/map'); ">



You know you can do this by removing the messy onClick attribute and use JQuery instead - ensuring you keep your code clean.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users