Tracking PDFs and Images w/ Google Analytics | Community
Skip to main content
Mikes_Jones
Level 7
July 14, 2015
Solved

Tracking PDFs and Images w/ Google Analytics

  • July 14, 2015
  • 1 reply
  • 2605 views

So I noticed while viewing a PDF hosted on Marketo that there was no Google Analytics tracking taking place, is there a way to track clicks to PDFs or other files with Google Analytics?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Malik, since PDFs can't themselves fire third-party (GA) tracking events but only the built-in (Marketo) Clicked Email event, you need to wrap a PDF download in a landing page.  The landing page can just contain a simple redirect to the PDF (so the person doesn't need to click anything else) but it can also fire off the GA event when it loads. 

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
July 14, 2015

Malik, since PDFs can't themselves fire third-party (GA) tracking events but only the built-in (Marketo) Clicked Email event, you need to wrap a PDF download in a landing page.  The landing page can just contain a simple redirect to the PDF (so the person doesn't need to click anything else) but it can also fire off the GA event when it loads. 

Mikes_Jones
Level 7
July 15, 2015

Ah, so have a page in between the landing page and actual PDF, that will trigger GA and let you know that it has been clicked?

If that's not correct, do you mind elaborating on "wrap a PDF", thanks Sanford!

SanfordWhiteman
Level 10
July 15, 2015

That's right, Malik, an intermediate page.