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

Google Analytics


can you please help

I am tyrying to implement ga in my jwplayer 7

when I try this the player does not load

<script type="text/javascript">
var playerInstance = jwplayer("myElement");
playerInstance.setup({
file:'/streams/HTVG_2.mp4',
image:'http://www.xxxxxxx.com/graphic/black.jpg',
ga('create', 'xxxxxxxxxxx', 'auto');
width: 620,
height: 380,
title: 'Basic Video Embed',
description: 'A video with a basic title and description!'

});

It loads when I remove it

what is the right way to implement this

many thanks

1 Community Answers

Todd

JW Player Support Agent  
0 rated :

The correct code inside of jwplayer().setup() would be ga: {},

The embed code from Google that contains ga(‘create’, ‘xxxxxxxxxxx’, ‘auto’); goes in the <head> of your page.

Please see http://support.jwplayer.com/customer/portal/articles/1417179-integration-with-google-analytics for more details.

This question has received the maximum number of answers.