How to track downloads in Google Analytics automatically

From the article:

How to track downloads in Google Analytics automatically

The official Google Analytics help says that any link can be monitored if this script is added in the link:

onclick=”pageTracker._trackPageview(‘/file_name.file_extension’)

Adding this script to every download link on your website can be a laborious task. The simple solution we found is to use a JavaScript that automatically attaches event listeners to files which are downloaded from your web pages.

Advertisements

~ by WPA Staff on March 22, 2010.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: