-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
What?
- We have a component on
contribute.logos.cothat initialize the umami tracker safely https://github.com/acid-info/contribute.logos.co/blob/master/components/umami-init.tsx - We should create a package for it here https://github.com/status-im/status-web/tree/main/packages that we can re-use in the websites from the mono repo where we use umami tracking (sn-hun, status.app, status.network). We should also allow this package to be published on npm so we can re-use it in all our Next.js websites like
contribute.logos.co
Why?
- This component fixes issues when the client blocks the umami script from being downloaded (see fix: send button not working on the proposal form acid-info/contribute.logos.co#37).
- The component should be configurable of course with custom
script url,website id,domains, and any extra field we want to pass to the component.
Links
We use umami here (not exhaustive, I can't think of every website. Also doesn't include docusaurus websites which umami script is managed via docusaurus-umami):
- In
status-web:- sn-hub – https://github.com/status-im/status-web/blob/06d63f44c7f6363d33bcc34d85b39915c851f7be/apps/hub/src/app/layout.tsx
- status.app – https://github.com/status-im/status-web/blob/06d63f44c7f6363d33bcc34d85b39915c851f7be/apps/status.app/src/app/layout.tsx
- status.network – https://github.com/status-im/status-web/blob/06d63f44c7f6363d33bcc34d85b39915c851f7be/apps/status.network/src/app/layout.tsx
- logos.co – https://github.com/acid-info/logos/blob/4734cb86d583a264093b57853fda5a8795188e2e/src/app/(web)/layout.js
- contribute.logos.co – https://github.com/acid-info/contribute.logos.co/blob/e41376b69b0d3f41a698e64ea8b790b146e8151c/components/umami-init.tsx
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Backlog