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

Forums

/

Changing Analytics Account Used

2 replies [Last post]
Reply

I have implemented the GA Pro 2 plugin to our JW player, and everything is working nicely. We are seeing data coming through in the Real-Time Beta, and Events are being properly tracked.

What I would like to do is separate the Video events from the other tracked events on our site - and I setup a second site account to do this. Now, I just need GA Pro 2 to pay attention to the setting that tells it what account to use ;)

I am using the async GA code on the page:

<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-3959460-1']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>

And the JW Player Setup (using dynamic variables from our site:

<script type="text/javascript">
jwplayer("container").setup({
'autostart': true,
'stretching': "uniform",
'controlbar': "bottom",
'flashplayer': "player.swf",
'file': "<?= $title ?>",
'title': '<?=$row["shorttitle"]?> - <?=$moviename?>',
'height': <?=$h?>,
'width': <?=$w?>,
'plugins': {
'gapro-2': { 'idstring': '<?=$row["shorttitle"]?> - <?=$moviename?>', 'accountid': 'UA-27229580-1' }
}
});
</script>

I am using Chrome and the GA Tracker plugin to see the data sent back and forth, and what I am seeing is that the events from the video are being sent to the account ID UA-3959460-1 rather than the one set in the config: UA-27229580-1

Did I do the setup wrong in here, or is accountid not a configurable variable here?

SECONDLY - I would like to add my voice in to vote for not only Event Label Overrides, But also Event Category Overrides. We have a set category/action/label hierarchy, and I would like to see these events fit into that hierarchy, so +1 here for more customization in the event actions ;)

Thanks for your help!

Reply
Reply

Unfortunately, accountid cannot be changed. If you can create another tracker, you should be able to pass that in as the "trackingobject".

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