Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google analitics in vjs.zencdn.net/4.4.3/video.js #1065

Closed
pytkin opened this issue Mar 7, 2014 · 3 comments
Closed

Google analitics in vjs.zencdn.net/4.4.3/video.js #1065

pytkin opened this issue Mar 7, 2014 · 3 comments

Comments

@pytkin
Copy link

pytkin commented Mar 7, 2014

!function(t,a,e,n,m){m=a.location,t.src="//www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=UA-16505296-2&utmn=1&utmhn="+n(m.hostname)+"&utmsr="+a.screen.availWidth+"x"+a.screen.availHeight+"&utmul="+(e.language||e.userLanguage||"").toLowerCase()+"&utmr="+n(m.href)+"&utmp="+n(m.hostname+m.pathname)+"&utmcc=__utma%3D1."+Math.floor(1e10*Math.random())+".1.1.1.1%3B"+"&utme=8(vjsv)9(v4.4.3)"}(new Image,window,navigator,encodeURIComponent);

Why? and for what?

@mmcc
Copy link
Member

mmcc commented Mar 7, 2014

The most useful thing it provides is it allows us to track browser and device usage. This is only in the CDN version, so analytics are not included if you build it yourself. You can view the PR for more info: #568

@mmcc mmcc closed this as completed Mar 7, 2014
@gkatsev
Copy link
Member

gkatsev commented Mar 8, 2014

@mmcc Is this well documented on the site or the docs files?

Also, looking at the referenced issue, that line isn't loading up any scripts from google-analytics. It's just using the utm.gif to send a beacon out to GA once.

@mmcc
Copy link
Member

mmcc commented Mar 8, 2014

Not really. It's in a blog post and such, but we should add it to the quick setup docs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants