Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

chore: send analytics data on all navigation ends #401

Merged
merged 1 commit into from
Feb 22, 2018

Conversation

josephperrott
Copy link
Member

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;
~i.name.indexOf('NG_DEFER_BOOTSTRAP')|| // only load library if not running e2e tests

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e2e tests run on local host or other non-prod host, this causes all the GA pings to be ignored/filtered out automatically. In other words, it's typically not necessary to treat e2e tests differently.

@IgorMinar
Copy link

has this change been deployed? I don't see any pings from material.angular.io yet. thanks for making this change @josephperrott

@josephperrott
Copy link
Member Author

@IgorMinar This is now pushed, our first release of material.angular.io with this change was on Feb 27 around 10am PST, you should see data collected beginning then.

@josephperrott josephperrott deleted the ga branch March 6, 2018 18:12
@IgorMinar
Copy link

IgorMinar commented Mar 6, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants