PDA

View Full Version : Pop-it Menu



dpr2025
08-26-2011, 04:22 PM
I am trying to set up this pop-it menu on my website but I want to be able to track the pdfs with Google Analytics.

I have added the Google script as required as well as the script for the pop-it menu.

http://www.sirc.ca/csprenewal-2011.cfm

Example:

without tracking code (pop-it menu works on website)
[CODE]linkset[0]='<a href="http://www.sirc.ca/csprenewal/documents/reports/Esurvey_Final_Report.pdf" target="_blank">Final Report</a>' [CODE]

with tracking code (pop-it menu doesn not show up on website)
[CODE]linkset[0]='<a href="http://www.sirc.ca/csprenewal/documents/reports/Esurvey_Final_Report.pdf" target="_blank" onClick="javascript: _gaq.push(['_trackPageview','/CSPR/2011/EN/SIRCFinal']);">Final Report</a>'[CODE]

Is this possible or is there another way I should be doing this?

Thanks

Minos
08-26-2011, 10:17 PM
Try:


linkset[0]='<a href="http://www.sirc.ca/csprenewal/documents/reports/Esurvey_Final_Report.pdf" target="_blank" onClick="javascript: _gaq.push([\'_trackPageview\',\'/CSPR/2011/EN/SIRCFinal\']);">Final Report</a>'

dpr2025
08-29-2011, 12:49 PM
I tried your suggestion and still that line does not show up in the pop-up menu.

Could it be that it does not like javascript inside a linkset? If so, do you know of another way to track (for Google analytics) PDF documents from a pop-up menu?

Thanks for your help.