Update google analytics code to submit full URL not just path

This commit is contained in:
Roland Dunn 2018-11-15 20:12:48 +00:00
parent cbd4125e69
commit 242ceb6d95

View File

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