Skip to content

Statistiques : Migrer le NPS de Hotjar vers Tally [GEN-2357] - #5959

Merged
dejafait merged 2 commits into
masterfrom
dejafait/nps_tally
Apr 17, 2025
Merged

dejafait merged 2 commits into
masterfrom
dejafait/nps_tally

Conversation

@dejafait

@dejafait dejafait commented Apr 14, 2025

Copy link
Copy Markdown
Contributor

🤔 Pourquoi ?

On est en train de quitter Hotjar. 🔪

🍰 Comment ?

J'ai ajouté un script nps_popup.js statique qui prend quelques paramètres.

Je ne suis pas très à l'aise en js donc ne pas hésiter à me dire si j'aurai du faire autrement.

💻 Captures d'écran

page liste candidatures, employeur

image image

page dépôt de candidature, prescripteur

image

les hiddenFields arrivent bien à destination

image

image

@dejafait dejafait added the modifié Modifié dans le changelog. label Apr 14, 2025
@dejafait dejafait self-assigned this Apr 14, 2025
@notion-workspace

Copy link
Copy Markdown

@dejafait
dejafait marked this pull request as draft April 14, 2025 13:48
@dejafait
dejafait force-pushed the dejafait/nps_tally branch 3 times, most recently from b5551e1 to 02d3f11 Compare April 14, 2025 14:18
@dejafait
dejafait marked this pull request as ready for review April 14, 2025 14:34
@dejafait
dejafait requested a review from xavfernandez April 14, 2025 14:34
@dejafait
dejafait force-pushed the dejafait/nps_tally branch from 02d3f11 to 835bf0b Compare April 14, 2025 14:42

@xavfernandez xavfernandez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Je découvre currentScript.dataset pour passer des arguments à un script 👍
Ça m'a l'air ma foi de bien marcher mais je ne suis pas non plus un expert JS 😬

};
};

window.TallyConfig = tallyConfig;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Je me demande dans quelle mesure on ne devrait pas passer à Tally.openPopup() qui est documenté (contrairement à window.TallyConfig) mais bon tant que ça fonctionne 🤷‍♂️

Comment thread itou/static/js/nps_popup.js Outdated
dejafait and others added 2 commits April 17, 2025 15:50
Co-authored-by: Xavier Fernandez <xavier.fernandez@beta.gouv.fr>
@dejafait
dejafait force-pushed the dejafait/nps_tally branch from 4e3c44c to 7d70d78 Compare April 17, 2025 13:50
@dejafait
dejafait enabled auto-merge April 17, 2025 13:56
@dejafait
dejafait added this pull request to the merge queue Apr 17, 2025
Merged via the queue into master with commit efd314f Apr 17, 2025
@dejafait
dejafait deleted the dejafait/nps_tally branch April 17, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants