We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e466db commit 8da727fCopy full SHA for 8da727f
.env.example
@@ -1,4 +1,4 @@
1
SENTRY_DSN='https://XXXX.ingest.sentry.io/00000000'
2
-GA_UACODE=UA-XXXXXXXXXX
+GA_UACODE=UA-XXXXXXXXX-X
3
# DEBUG=universal-analytics
4
# NODE_DEBUG=request # debug requests in analytics
src/services/gaService/GaService.ts
@@ -17,10 +17,10 @@ const executeOnCondition = (fn: () => void) => {
17
18
const GaService = {
19
pageView(path: string) {
20
- executeOnCondition(analytics?.pageview(path).send());
+ executeOnCondition(() => analytics?.pageview(path).send());
21
},
22
event(category: string, action: string) {
23
- executeOnCondition(analytics?.event(category, action).send());
+ executeOnCondition(() => analytics?.event(category, action).send());
24
25
};
26
0 commit comments