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

Capture Audio Google Analytics


Hi
Can Jwplayer be used for Capturing Audio Google Analytics on Version 6.12. Please share the link in which implementation steps are provided.

Regards
Prashant

7 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, Prashant.

Can you please elaborate what you mean by capturing audio analytics? We do provide built-in integration with Google Analytics for reporting player loads, views, plays, etc., but that is the limit of what that integration offers.

You can find out more about our integration with Google Analytics on this support article.

Please let me know if you need any more help or have any other questions.

Thank you!

prashant.sinha.lko

User  
0 rated :

Hi Alex
We want to capture analytic for the audios downloaded or played etc. Currently we are using SWFObject mentioned in below code for playing audio.Do we need to rewrite below audio playing code to capture audio analytic? or Below code with minor modification will work ?

if (docFormat.indexOf('Audio') >= 0) {
var startPos = docLink.indexOf('href=\"') + 6;
var endPos = docLink.indexOf('.mp3') + 4;
var mp3URL = "../../../.." + docLink.substring(startPos, endPos);

var so = new SWFObject("/audioPlayer.swf", "audioPlayer", "220", "80", 8, "#FFFFFF");
so.addParam("quality", "high");
so.addParam("play", "true");
so.addParam("loop", "false");
so.addParam("wmode", "window");
so.addParam("menu", "false");
so.addParam("allowScriptAccess", "sameDomain");
so.addParam("allowFullScreen", "false");
so.addVariable("myAudio", mp3URL);
so.write('audio_player');

var linkString = "<a href=\"" + mp3URL + "\" class=\"right_triangle\" style=\"padding-right: 10px;\">Download " + fileSize + " MP3</a><div style=\"margin-top:5px;margin-right:10px;\">(Running time: " + runTime + ")</div>";

document.getElementById('audio_download_link').innerHTML = linkString;
document.getElementById('audio_container').style.display = 'block';

document.getElementById('resource_abstract').className = 'withRSS';
document.getElementById('podcast_feed').style.display = 'block';
}

Alex

JW Player Support Agent  
0 rated :

Hi, Prashant.

Can you supply me with a link to a reproduction page where you have this player embedded?

Thank you.

prashant.sinha.lko

User  
0 rated :

Hi Alex
Please find Test link http://180.87.41.34/Jwplayer/AudioGAAnalytics.html where we want to capture audio analytics for audio play and download

Alex

JW Player Support Agent  
0 rated :

Hi, Prashant.

While it looks like your audioPlayer.swf is stored within your “jwplayer” folder on your site, it is not a part of our player. We do not produce anything called audioPlayer.swf and the appearance of your player is unlike anything I’ve seen before. Our “audio” player is essentially the control bar of our video player. You can see an example of this on our AAC or MP3 Audio Embed support article.

Please let me know if you need any more help or have any other questions.

Thank you!

p...

User  
0 rated :

Hi Alex
Based on above article I have changed the code http://180.87.41.34/Jwplayer/AudioGAAnalytics.html please see the view source.

Will it start capturing the Google Analytics for reporting audio player loads, views, plays, etc with Jwplayer 6.12 . ? or do I have to write some more code.

Please have a look on the view source and confirm

Alex

JW Player Support Agent  
0 rated :

Hi, Prashant.

There are two things I notice with the code on your page:

1) I’m not quite sure if it will work with your Google Analytics script is not the <head> of your document. Our support article suggests it should be in the <head> but I’m not 100% sure it matters.
2) It looks like you are setting idstring: “title” and label: “mediaid” just like the example on the support article. However, you don’t have a title or media ID supplied in your player configuration. In order to just make sure everything is working, I would suggest just taking those two lines out (they’re optional) so that you’re left with just ga: {} in your setup.

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.