File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 7
7
< title > E-Bikes Portal</ title >
8
8
9
9
<!-- Google Analytics -->
10
- < script async src ="https://www.googletagmanager.com/gtag/js?id=%VITE_GA_MEASUREMENT_ID% "> </ script >
10
+ < script async src ="https://www.googletagmanager.com/gtag/js?id=G-J9Z61G9FJ6 "> </ script >
11
11
< script >
12
12
window . dataLayer = window . dataLayer || [ ] ;
13
13
function gtag ( ) { dataLayer . push ( arguments ) ; }
14
14
gtag ( 'js' , new Date ( ) ) ;
15
- gtag ( 'config' , '%VITE_GA_MEASUREMENT_ID% ' ) ;
15
+ gtag ( 'config' , 'G-J9Z61G9FJ6 ' ) ;
16
16
</ script >
17
17
</ head >
18
18
< body >
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ export const useGA = () => {
12
12
13
13
useEffect ( ( ) => {
14
14
// Track page view when location changes
15
- if ( window . gtag && import . meta . env . VITE_GA_MEASUREMENT_ID ) {
16
- window . gtag ( 'config' , import . meta . env . VITE_GA_MEASUREMENT_ID , {
15
+ if ( window . gtag ) {
16
+ window . gtag ( 'config' , 'G-J9Z61G9FJ6' , {
17
17
page_path : location . pathname + location . search ,
18
18
} ) ;
19
19
}
20
20
} , [ location ] ) ;
21
- } ;
21
+ } ;
You can’t perform that action at this time.
0 commit comments