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");
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


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 for more details.

This question has received the maximum number of answers.