Skip to content

Commit

Permalink
Merge pull request #179 from appwrite/feat-add-env-var
Browse files Browse the repository at this point in the history
feat: add new env var for GA project
  • Loading branch information
TorstenDittmann committed Nov 22, 2022
2 parents b68d085 + 56792b1 commit 7f15be2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VITE_APPWRITE_ENDPOINT=
VITE_GOOGLE_ANALYTICS=
VITE_GA_PROJECT=
VITE_SENTRY_DSN=
2 changes: 1 addition & 1 deletion src/lib/actions/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const analytics = Analytics({
app: 'appwrite',
plugins: [
googleAnalytics({
measurementIds: ['G-R4YJ9JN8L4']
measurementIds: [import.meta.env.VITE_GA_PROJECT?.toString() ?? 'G-R4YJ9JN8L4']
})
]
});
Expand Down

1 comment on commit 7f15be2

@vercel
Copy link

@vercel vercel bot commented on 7f15be2 Nov 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.