SOLVED

Tracking PDFs and Images w/ Google Analytics

Go to solution
Mikes_Jones
Level 8

Tracking PDFs and Images w/ Google Analytics

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?

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Tracking PDFs and Images w/ Google Analytics

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. 

View solution in original post

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Tracking PDFs and Images w/ Google Analytics

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 8

Re: Tracking PDFs and Images w/ Google Analytics

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 - Community Moderator

Re: Tracking PDFs and Images w/ Google Analytics

That's right, Malik, an intermediate page.