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