Skip to content

Commit

Permalink
fix: try to fix gtag issue (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
romgere authored Oct 23, 2023
1 parent 4c55eae commit 9c1d6bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/routes/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ export default class AppRoute extends Route {
@service declare intl: IntlService;
@service declare router: Services['router'];
@service declare fontManager: FontManagerService;
@service declare gtag: GTagService;

constructor(props: object | undefined) {
super(props);
this.router.on('routeDidChange', (transition: Transition) => this.updateMeta(transition));
// Jut get the gtatg service to trigger Google script injection
this.gtag;
}

async model({ locale }: { locale: string }) {
Expand Down

0 comments on commit 9c1d6bb

Please sign in to comment.