Skip to content

Commit 3f508c7

Browse files
josephperrottandrewseguin
authored andcommittedMar 23, 2018
fix(ga): set analytics for mat and ng separately. (#417)
1 parent 73989aa commit 3f508c7

File tree

1 file changed

+2
-1
lines changed
  • material.angular.io/src/app/shared/ga

1 file changed

+2
-1
lines changed
 

‎material.angular.io/src/app/shared/ga/ga.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export class GaService {
2727
return;
2828
}
2929
this.previousUrl = url;
30-
this.ga('set', 'page', '/' + url);
30+
this.ga('mat.set', 'page', '/' + url);
31+
this.ga('ng.set', 'page', '/' + url);
3132
this.ga('mat.send', 'pageview');
3233
this.ga('ng.send', 'pageview');
3334
}

0 commit comments

Comments
 (0)
Please sign in to comment.