Welcome to WebmasterWorld Guest from 54.224.17.208

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

Goggle Analytics PDFs Tracking within Coldfusion Code

PDF tracking

     
6:12 pm on Mar 7, 2007 (gmt 0)

5+ Year Member



I'm having problems tracking pdfs that are being called from the server database. I just can't put one filename in like Google Analytics provided. I'm using coldfusion. The website is www.csudh.edu/roadmaps

I'm using the following code to track pdfs

<a href="#rs_roadmaps.ftf4y_pdf#" onClick="javascript:urchinTracker ('/pdf_ftf4y/.pdf'); ">4-Year</a>

I've also used
<a href="#rs_roadmaps.ftf4y_pdf#" onClick="javascript:urchinTracker ('/pdf_ftf4y/*'); ">4-Year</a>

It is tracking pdf_ftf4y subdirector, but what I need is what follows which is the pdf file name tracked.

Does anyone know what expression I need to track the file names that are being called from the database? We need to track the individual PDFs that are being downloaded.

Thanks for your help.
Donna

[edited by: Receptional at 10:07 am (utc) on Mar. 8, 2007]
[edit reason] URL in signature removed [/edit]

11:55 am on Mar 9, 2007 (gmt 0)

10+ Year Member



I'm not totally sure I follow you, but as this part is the variable name "#rs_roadmaps.ftf4y_pdf#" that contains your pdf file, I'd think you'd do something like this.

<a href="#rs_roadmaps.ftf4y_pdf#" onClick="javascript:urchinTracker ('#rs_roadmaps.ftf4y_pdf#'); ">4-Year</a>

There is no problem outputting a ColdFusion variable into the JavaScript source as this is resolved on the server side.

To debug this, look at the "view source" for the page to see what ColdFusion generated and compare it with the spec for Analytics.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month