I just purchased JW Player and GA Pro-2, upgraded my existing player to 5.8, and tried the following setup:
<div id="container">Loading the player ...</div>
</div>
<script type="text/javascript">
jwplayer("container").setup({
flashplayer: "/JWPlayer/player.swf",
image: "/videos/ca/playlist-images/Discover-Alexander-Valley.jpg",
file: "http://youtu.be/1owNFWccbTs",
controlbar: "bottom",
skin: "/JWPlayer/skins/beelden/beelden.zip",
stretching: 'none',
plugins: {
"gapro-2": {
/*"idstring": "Discover Alexander Valley Wine Region",
"trackstarts": true, */
"trackingobject": pageTracker
}
}
height: 460,
width: 760
});
</script>This is the page with the video:
winequesters.com/wineries/ca/Alexander_Valley_wineries.php
I have had Google Analytics setup on my site for years and it works well. It is using pageTracker. My understanding is that there is no need to touch the GA script.
Two questions:
1) Why is gapro-2 crashing the video player? I've searched the forums, reviewed the supporting documentation of JW5 and the plugin, and tried a variety of all very similar setups. Mostly I've played around with the quotes, singles and doubles.
2) Can I use idstring with just a string?
Appreciate the help of course!
- jim
it seems like pageTracker might not be defined when you are calling it. it needs to be a global variable and needs to be defined when when you call on it in jwplayer's setup. have a look at this.
http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=0b81cc218d9af6c1&hl=en