Hey friend! Have fun exploring Q&A, but in order to ask your own
questions, comment, or give thumbs up, you need to be logged in to your
Moz Pro account.
You can also earn access by receiving 500
MozPoints
from participating in YouMoz and the Moz Blog!

14 Responses

Hi Atul,
Following is the response to your queries.
1). 'Map.pdf' refers to the name of the pdf and 'file' refers to the directory in which it is stored.
2). Using the above code, you would be able to track the click on the links and not the downloads. For setting up event tracking for a pdf download, I would recommend you to place the following code within the code of your download link
onClick="_gaq.push(['_trackEvent', 'download', 'Pdf', 'Mypdfname',, true]);"
Thus, the final download link would look like
Download PDF
Now that you have set up event tracking script in place, you now need to set up the event as a goal in Google Analytics.
For that, follow the steps,
1. Open up the profile you wish to set up the goal in.
2. Click the gear icon in the upper right corner of the Google Analytics interface.
3. Click the Goals tab (in the sub-navigation just below where your Profile is listed)
4. Choose the Goal Set you wish to add the event to.
5. Name your goal and select the Event radio button.
6. Populate the following goal details:
Category | that matches | download
Action | that matches | Pdf
Label | that matches | Mypdfname
Value | that matches |
7. If you’ve added a Value in step 1, leave the “Use the actual Event Value” radio button selected.
8. Click “Save” and you’re ready to go!
Hope, it might help!
Cheers! :)

I doesn't. It does you a number of views, because there's a lot different solutions in internet browsers and plugins and user can even view it in Google docs viewer. But for many purposes it is sufficient to know that user view a document.

You can implement dedicated java script tool to know the number of downloads. Probably the code mentioned by nvs.nim (below) realizes such an action.

- value (optional) - An integer that you can use to provide numerical data about the user event. It is very complicated to quick explanation and usage, you should read full article and additions like: Implicit Count.

- non-interaction (optional) - set it for "true" (A boolean that when set to true, indicates that the event hit will not be used in bounce-rate calculation.)

In this link you can read full google help article: http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html

Hey friend! Have fun exploring Q&A, but in order to ask your own
questions, comment, or give thumbs up, you need to be logged in to your
Moz Pro account.
You can also earn access by receiving 500
MozPoints
from participating in YouMoz and the Moz Blog!
Learn more.