Ok, so here's the deal:
For every video posted on my website I have three links: One that uses a script to pop it open in a new window, one to download it, and one to view it directly at Google Video. In each link I have included this code to track the usage of the videos:
My problem comes in on the link that pops the video into a new window. I'm not sure how to incorporate this code
into this code
.
My try at it was to do it like this:
The problem is that google analytics is tracking the download and direct links but as far as I can tell not the links that open a new window for the user to view the video in (which is the most important). Did I do the code right, or did I do something silly?
For every video posted on my website I have three links: One that uses a script to pop it open in a new window, one to download it, and one to view it directly at Google Video. In each link I have included this code to track the usage of the videos:
Code:
<a href="http://www.example.com/examplevideo" onClick="javascript: pageTracker._trackPageview('/video/02-23-08-download');">Download</a>
My problem comes in on the link that pops the video into a new window. I'm not sure how to incorporate this code
Code:
javascript: pageTracker._trackPageview('/video/02-23-08-download');
Code:
onClick="poptastic(this.href); return false;">
My try at it was to do it like this:
Code:
onClick="poptastic(this.href); return false; javascript: pageTracker._trackPageview('/video/02-23-08-view');">
The problem is that google analytics is tracking the download and direct links but as far as I can tell not the links that open a new window for the user to view the video in (which is the most important). Did I do the code right, or did I do something silly?