Skip to content

Trackers for baseapp Prod only #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
phwizard opened this issue Mar 17, 2025 · 4 comments
Open

Trackers for baseapp Prod only #31

phwizard opened this issue Mar 17, 2025 · 4 comments
Assignees

Comments

@phwizard
Copy link
Contributor

phwizard commented Mar 17, 2025

Please implement a switch in .env or elsewhere.

Alternatively check for app being baseapp and on prod.

If switch is enabled, enable Google Analytics, Hubspot, MS Clarity and Firebase tracking. If not, do not include trackers code.

We could check if address == beta.ethora.com or ethora.ethora.com then enable tracking.
If not, tracking is disabled.

@phwizard
Copy link
Contributor Author

Clarification:

  • Hubspot we need only for baseapp and on Prod only
  • All other trackers we need on Prod only, but can be all apps as we are interested to collect analytics and understand pain points across the whole server

@phwizard
Copy link
Contributor Author

  1. аналітика - трекери нам корисні будуть на весь Prod сервер - тут головне щоб не збиралося з інших серверів. App можна не перевіряти тому що всі проєкти на прод сервері включно з end users нас цікавлять

  2. hubspot login/signup нас цікавить тільки для Baseapp тільки на Prod сервері. Тому що тут ми збираємо інфу про "customers" / "App Owners" що потенційно можуть стати активними або платними клієнтами. Нам треба щоб вони потрапляли до Hubspot щоб ми могли їх відстежувати і допомагати їм якщо вони застрягли, відправляти їм follow-ups тощо. А end users інших Apps навіть на прод сервері нам не потрібні в hubspot

Тобто:

  1. для всіх трекерів та аналітики треба розрізняти що ми на прод сервері.
  2. А для hubspot форми додатково треба перевіряти ще що ми в основному (baseapp) апп на прод сервері.

@RomanLeshc
Copy link
Collaborator

@phwizard Dmytro made all analytivs work only on these 2 particular urls, but we just need add url to .env and then it will work on needed site.
Also, we discussed the logic, and it should be reusable between all needed apps. So in the future if client needs this feature, we can spend much less time to add this.

@phwizard
Copy link
Contributor Author

thanks guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants