Compare commits

...

2 Commits
0.9.2 ... 0.9.3

Author SHA1 Message Date
Viktor Rådberg
fa95d171b7 bump 2024-03-30 14:23:26 +01:00
Viktor Rådberg
00a556be0e always include version in tracked events 2024-03-30 14:22:37 +01:00
2 changed files with 7 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{ {
"name": "life-trinket", "name": "life-trinket",
"private": true, "private": true,
"version": "0.9.2", "version": "0.9.3",
"type": "commonjs", "type": "commonjs",
"engines": { "engines": {
"node": ">=18", "node": ">=18",

View File

@@ -23,7 +23,12 @@ export const useAnalytics = () => {
return; return;
} }
logEvent(analytics, eventName, eventParams); const paramsWithVersion = {
...eventParams,
app_version: import.meta.env.VITE_APP_VERSION,
};
logEvent(analytics, eventName, paramsWithVersion);
}; };
return { trackEvent }; return { trackEvent };