File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed
Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11SENTRY_DSN = ' https://XXXX.ingest.sentry.io/00000000'
2+ GA_GCODE = ' G-XXXXXXXXXXX'
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ require('dotenv').config();
44
55import App from './App' ;
66import { initSentry } from './shared/initSentry' ;
7+ import './services/GaService' ;
78
89initSentry ( ) ;
910
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const Main = () => {
1515 const location = useLocation ( ) ;
1616
1717 useEffect ( ( ) => {
18- analytics ?. pageview ( location . pathname ) ;
18+ analytics ?. pageview ( location . pathname ) . event ( 'Event' , 'test' ) . send ( ) ;
1919 } , [ location . pathname ] ) ;
2020
2121 return (
Original file line number Diff line number Diff line change @@ -10460,6 +10460,15 @@ universal-analytics@^0.4.23:
1046010460 request "^2.88.2"
1046110461 uuid "^3.0.0"
1046210462
10463+ universal-analytics@0.4.23 :
10464+ version "0.4.23"
10465+ resolved "https://registry.yarnpkg.com/universal-analytics/-/universal-analytics-0.4.23.tgz#d915e676850c25c4156762471bdd7cf2eaaca8ac"
10466+ integrity sha512-lgMIH7XBI6OgYn1woDEmxhGdj8yDefMKg7GkWdeATAlQZFrMrNyxSkpDzY57iY0/6fdlzTbBV03OawvvzG+q7A==
10467+ dependencies :
10468+ debug "^4.1.1"
10469+ request "^2.88.2"
10470+ uuid "^3.0.0"
10471+
1046310472universalify@^0.1.0 :
1046410473 version "0.1.2"
1046510474 resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
You can’t perform that action at this time.
0 commit comments