homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: DixonJones & mademetop

Website Analytics - Tracking and Logging Forum

Goggle Analytics PDFs Tracking within Coldfusion Code
PDF tracking

5+ Year Member

Msg#: 3274248 posted 6:12 pm on Mar 7, 2007 (gmt 0)

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.

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



10+ Year Member

Msg#: 3274248 posted 11:55 am on Mar 9, 2007 (gmt 0)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved