Revert "Update google analytics code to submit full URL not just path"

This commit is contained in:
Roland Dunn 2018-11-19 18:21:37 +00:00 committed by GitHub
parent 9af5e9a448
commit fa2c46edb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ export class Analytics {
init() {
this.$rootScope.$on('$viewContentLoaded', () => {
const track = { location: this.$location.url() };
const track = { page: this.$location.url() };
const ga = (window as any).ga || this.gaInit();
ga('set', track);
ga('send', 'pageview');