Skip to content

Commit 74833de

Browse files
committed
fix(ga): set analytics for mat and ng separately. (#417)
1 parent 8ae9a0c commit 74833de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/shared/ga/ga.ts

Lines changed: 2 additions & 1 deletion
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)