File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -147,10 +147,9 @@ export function Document(props /* TODO: define a TS interface for this */) {
147
147
// I.e. not the initial load but the location has now changed.
148
148
// Note that in local development, where you use `localhost:3000`
149
149
// this will always be true because it's always client-side navigation.
150
- gtag ( "set" , "dimension19" , "Yes" ) ;
151
- gtag ( "send" , {
152
- hitType : "pageview" ,
153
- location,
150
+ gtag ( "event" , "pageview" , {
151
+ dimension19 : "Yes" ,
152
+ page_location : location ,
154
153
} ) ;
155
154
gleanClick ( `${ CLIENT_SIDE_NAVIGATION } : ${ location } ` ) ;
156
155
}
Original file line number Diff line number Diff line change @@ -41,10 +41,9 @@ export function SiteSearch() {
41
41
// I.e. not the initial load but the location has now changed.
42
42
// Note that in local development, where you use `localhost:3000`
43
43
// this will always be true because it's always client-side navigation.
44
- gtag ( "set" , "dimension19" , "Yes" ) ;
45
- gtag ( "send" , {
46
- hitType : "pageview" ,
47
- location,
44
+ gtag ( "event" , "pageview" , {
45
+ dimension19 : "Yes" ,
46
+ page_location : location ,
48
47
} ) ;
49
48
gleanClick ( `${ CLIENT_SIDE_NAVIGATION } : ${ location } ` ) ;
50
49
}
You can’t perform that action at this time.
0 commit comments