Skip to content

Fixes #1449 Changed GA to alternative async tracking snippet#1467

Merged
miketaylr merged 1 commit intowebcompat:masterfrom
nj4710:issue/1449
Apr 4, 2017
Merged

Fixes #1449 Changed GA to alternative async tracking snippet#1467
miketaylr merged 1 commit intowebcompat:masterfrom
nj4710:issue/1449

Conversation

@nj4710
Copy link
Copy Markdown
Contributor

@nj4710 nj4710 commented Mar 31, 2017

I have changed the value of property-id ( taken from the old snippet). Are there anymore variables that needs to be changed? r? @miketaylr

@nj4710 nj4710 changed the title Changed GA to alternative async tracking snippet Fixes #1449 Changed GA to alternative async tracking snippet Mar 31, 2017
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-49507820-1', 'webcompat.com');
ga('send', 'pageview');
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;

This comment was marked as abuse.

@miketaylr
Copy link
Copy Markdown
Member

(This is related to scarier part of #1450)

@nj4710
Copy link
Copy Markdown
Contributor Author

nj4710 commented Apr 4, 2017

I have moved the file to a new script but the purpose of having this script is unclear to me. Why exactly are we using this script ? @miketaylr

@miketaylr
Copy link
Copy Markdown
Member

I have moved the file to a new script but the purpose of having this script is unclear to me. Why exactly are we using this script ? @miketaylr

Eventually we want to remove all inline script instances, for security purposes. See #763 and related issues to learn a bit more.

window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-49507820-1', 'webcompat.com');
ga('send', 'pageview');
console.log("executed"); No newline at end of file

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@miketaylr
Copy link
Copy Markdown
Member

Thank you @nj4710!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants