我有问题跟踪Jwplayer vids在一个网站上使用谷歌分析。我目前使用的是异步标签。提前感谢大家的帮助。
GA:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-7585298-9']);
_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);})();
jw播放器:
jwplayer("container").setup({
'flashplayer': '@Url.Content("~/jwplayer/jwplayer.flash.swf")',
'playlist': [{
'file': '@Url.Content("~/Content/videos/td100/3_STEPbySTEP_1920x1080_uncompressed_1200Kbps_480p.mp4")',
'image': '@Url.Content("~/Content/videos/optineb/started.png")',
'title': 'Getting Started',
'description': 'Getting Started With Your Tyvaso Inhalation System',
ga:{
idstring: "title",
trackingObject: "_trackPageview"
}
},发布于 2013-11-18 00:57:44
我不太熟悉jw player,但根据他们的文档,看起来trackingObject实际上应该是trackingobject(全部小写)。
https://stackoverflow.com/questions/20023287
复制相似问题