View Full Version : pdf file showing on analytics
macmacman
5th August 2009, 23:14
Hi
Just a quick one...
We have a pdf on our website. The link is link.pdf and shows up within a pdf window.
How do i add this page to google analytics or track how many people click the link to view it. If i go to view>source there is no code on the pdf page. So how can i add the analytics code.
I hope that makes sense. Any help much appreciated.
WordPress Web Designers
5th August 2009, 23:23
Hi
Yes that makes sense.
It is explained here (http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55529).
Liz
macmacman
6th August 2009, 08:00
Thanks! I undertand all that, expect the downlaods/map bit. Is that the route on our website.
The link to the pdf is on our home page and is called directions so would it be
www.mydomain.co.uk/directions (http://www.mydomain.co.uk/directions)
directmarketingadvice
6th August 2009, 08:07
Thanks! I undertand all that, expect the downlaods/map bit. Is that the route on our website.
The link to the pdf is on our home page and is called directions so would it be
www.mydomain.co.uk/directions (http://www.mydomain.co.uk/directions)
It can be called anything you want.
(just pick something that'll be unique in your content - i.e. any name that's not the same as another page)
Steve
PS If you want to see an example of this tracking on a page, take a look at the source code of http://www.bothsidesoftheclick.co.uk/free-adwords-report.
rossoonline
6th August 2009, 14:10
The best way of putting tracking on it, is to copy and paste this code into the <a href> tag onclick="javascript: pageTracker._trackPageview('/outgoing/filename');".
And put the name of the pdf where it says filename.
then, you can go into the content section of analytics and search for "outgoing" and all the links you've applied the code to, will appear for you to see.