Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Jwplayer Version 6.12 integration with google Analytics is not working


Hi
I am doing Jwplayer Version 6.12 integration with google Analytics for my my videos hosted on my own video server. I have placed the code as mentioned in this article
https://support.jwplayer.com/customer/portal/articles/1417179-integration-with-google-analytics

but it is not capturing analytics when I checked on my google account.

Please review the implementation by seeing the view source of this link http://www.tcs.com/consulting/client-successes/pages/sample-video.aspx and help me to to resolve the issue. I have included the ga block as mentioned in above support link. Am I missing something ?


Sample Code

<script type="text/javascript" src="/Style Library/jsv2/jwplayer/jwplayer.js"></script>
<script type="text/javascript">
jwplayer.key = "LICENCE KEY IS PLACED HERE";
</script>



<div id="jwplayercontainer" style="display:none;">
</div>
<script type="text/javascript" charset="utf-8">
var docLink = '<a href="Video URL IS HERE" target="_blank">TCS-TIWBL.m4v</a>';
var docFormat = 'Video';
var fileSize = '';
var runTime = '';
var startPos = docLink.indexOf('href=\"') + 6;
var endPos = docLink.indexOf('.m4v') + 4;
var flvURL = docLink.substring(startPos, endPos);

jwplayer("jwplayercontainer").setup({
flashplayer: "/Style%20Library/jsv2/jwplayer/jwplayer.flash.swf", //code for jwplayer 6.12 version
file:("videoURL", flvURL),
image: "/Style%20Library/imagesv2/loadingvideo.jpg",
autoplay: false,
icons: true,
//'plugins': 'fbit-1,tweetit-1',
dock: true,
height: 345,
width: 600,
ga: {
idstring: "title",
label: "mediaid"
} });

7 Community Answers

Todd

JW Player Support Agent  
0 rated :

The key in use for that player is a JW 6 Free key. Unfortunately JW 6 Free does not allow for Google Analytics integration. Please use your JW 6 Premium key for that player to enable this functionality.

prashant.sinha.lko

User  
0 rated :

I already requested to upgrade my account in the morning.

After updating the JW 6 Premium key in the code, do I have to do any other changes in code to work with Google Analytics ?Or existing code wiil work
ga: {
idstring: "title",
label: "mediaid"
}

Todd

JW Player Support Agent  
0 rated :

No, once the player is using the Premium key, you should start to see pings sent to google-analytics.com. You will see that the JW watermark is removed by the Premium key, and you can also verify that the correct JW6 key is being using by right-clicking on the player to reveal the player version and license type.

prashant.sinha.lko

User  
0 rated :

License key is updated and now it is working fine after commenting this line 'plugins': 'fbit-1,tweetit-1'
which was already there is my code.

Can you please let know the use of 'plugins': 'fbit-1,tweetit-1' line . Is it not supported in Jwplayer 6.12 also ? or is it used in some other way. Please see the sample page http://www.tcs.com/consulting/client-successes/pages/sample-video.aspx

Todd

JW Player Support Agent  
0 rated :

I am glad to hear it is working. Yes, I see network pings being sent to google-analytics.com that include JW Player Video as the event category (ec).

I am not familiar with those plugins. Where did you get them? And that does not look like normal syntax for plugins. Normally a plugin entry points to the external .js file to load their script.

prashant.sinha.lko

User  
0 rated :

'plugins': 'fbit-1,tweetit-1' is passed as a parameter in jwplayer("jwplayercontainer").setup({ method and it was working fine in my old JwPlayer 5.9.2156 and it is showing FB and Tweeter icon for sharing.
But After upgrading the JwPlayer to JwPlayer 6.12 version If I keep that line then video is not loading in chrome. and in IE video is loading but sharing option is not coming.
Is the way to pass social sharing parameter changed in Jwplayer 6.12.
http://www.tcs.com/consulting/client-successes/pages/sample-video.aspx Please have a look on view source and go to jwplayer("jwplayercontainer").setup for more detail

Todd

JW Player Support Agent  
0 rated :

Sounds like those JW5 plugins were not updated for JW6.

We have recently updated our sharing overlay in JW 7.2 and higher. Please see https://support.jwplayer.com/customer/en/portal/articles/1409823-social-sharing-overlay for more details.

This question has received the maximum number of answers.