Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

GAPro-2 crashing player, JW5.8, using pageTracker

6 replies [Last post]
Reply

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

Reply

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

Reply

Thanks Luke but I don't see a difference between my GA code and the example.

This is in every footer and works perfect:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
pageTracker._trackPageview();
} catch(err) {}
</script>

Of course I use my UA- account number. I'm not a wiz on JavaScript but I think this var is typed as global. I'm getting into JavaScript more in a couple of months.

- jim

Reply

Would love to have some help on this issue! Still not fixed. Google Analytics is on every page of my large site but for some reason this isn't working.

Reply

I think it might be related to the timing of when you load your Google Analytics JavaScript. Is it loaded before or after the player?

Also, we recommend using the asynchronous Google Analytics tracker if possible, as this tends to resolve most issues.

Reply

It is loaded in the footer as highly recommended for increasing page load speed and quality score so after. Should I load only the player's GA code in the header?

I'm very concerned about losing years worth of analytics by changing to asynchronous. I can't do that now. I'll start marketing the site for sale in a few weeks.

Thoughts?

- Jim

Reply

You might be better off switching to gapro-1.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options