Merge pull request #14092 from cloudshapes/record-full-url-in-google-analytics

Update google analytics code to submit full URL not just path
This commit is contained in:
Torkel Ödegaard
2018-11-16 07:58:55 +01:00
committed by GitHub
+1 -1
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');