Wildly Appropriate

dan klyn's blog on information architecture and such

Tracking Clicks On PDF Links with GA

Feb 22, 12:44 PM

Today I added an onClick event to one of the imagemapped links on one of my pages that points to a PDF. The goal? Get user clicks on PDFs into Google Analytics. The article whose advice I'm following is here. I'll let you know tomorrow if this tactic was successful.

Also.. here's my code:

<area shape="rect" coords="550,338,725,362" href="NOOMA®news001.pdf" onClick="javascript:urchinTracker('NOOMA®news001.pdf');" onmouseover="MM_swapImage('Image1','','images/001.png',1)" onmouseout="MM_swapImgRestore()" alt="NOOMA® Newsletter 001" />

Update: It works brilliantly, this tactic of using JavaScript to get clicks on PDFs into GA. check it out!

 

end of this article

What's New

View Latest Article

Perspectives on:

Contact Me


dan.klyn@gmail.com

danklyn on AIM

Colophon:

My name is Dan Klyn, and I'm an information architect.

I work with amazing people at a nonprofit company called Flannel in Grand Rapids, Michigan.

I also teach IA in the library science programs at the University of Michigan and at Wayne State University.