Skip to content
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

Posthog tracker #1102

Merged
merged 2 commits into from
Jan 23, 2025
Merged

Posthog tracker #1102

merged 2 commits into from
Jan 23, 2025

Conversation

loicguillois
Copy link
Collaborator

No description provided.

@loicguillois loicguillois requested a review from Falinor January 21, 2025 16:07
data-testid="filtre-sous-statut-suivi"
onChange={(values) => {
onChangeFilters({ subStatus: values }, 'Sous-statut');
posthog.capture('filtre-sous-statut-suivi');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Pourquoi il faut le faire manuellement alors qu’on le faisait automatiquement avec des id ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ça ne fonctionnait pas, j'ai testé en activant posthog en local, les XHR sont bien envoyés vers posthog avec cette approche

data-testid="filtre-type-de-commune"
onChange={(values) => {
onChangeFilters({ localityKinds: values }, 'Type de commune');
posthog.capture('filtre-commune');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Pourquoi il y a deux filtre-commune ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

c'est corrigé, initialement je pensais que Lucas voulais regrouper les événements statistiques liés à ces deux filtres mais c'était une erreur

@loicguillois loicguillois merged commit 06ea36f into main Jan 23, 2025
8 checks passed
@loicguillois loicguillois deleted the posthog-tracker branch January 23, 2025 13:00
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

Successfully merging this pull request may close these issues.

2 participants