Skip to content

Commit

Permalink
fix(ga): set analytics for mat and ng separately. (angular#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephperrott authored and andrewseguin committed Mar 23, 2018
1 parent 3d2a5de commit bb63436
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/shared/ga/ga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export class GaService {
return;
}
this.previousUrl = url;
this.ga('set', 'page', '/' + url);
this.ga('mat.set', 'page', '/' + url);
this.ga('ng.set', 'page', '/' + url);
this.ga('mat.send', 'pageview');
this.ga('ng.send', 'pageview');
}
Expand Down

0 comments on commit bb63436

Please sign in to comment.