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

[HCA DX] Upgrade support request tag, trigger, and variables to GA4 conventions #4188

Open
1 of 3 tasks
MillenniumFalconMechanic opened this issue Oct 9, 2024 · 1 comment
Assignees
Labels
canary Done by the Clever Canary team

Comments

@MillenniumFalconMechanic
Copy link
Contributor

MillenniumFalconMechanic commented Oct 9, 2024

Need

The support request GTM configuration currently has some configuration objects that are in the deprecated UA-4. For example:

  • The tag - support_request_create tag contains a reference to Event Action and Event Label parameters.
image
  • The Support Request Create trigger name should follow GA4 naming conventions.
  • The Source and Catalog variable names should follow GA4 naming conventions.

Approach

Document the changes required to update the support request configuration objects to match GA4 conventions. Once changes are reviewed, proceed with updates and confirm support request events are tracked correctly in staging and prod. (Note that support requests are shared in the HCA community Slack channel; clearly mark any support requests as tests and use [email protected] as the submitter email.) Completed; see comment.

Add tracking to "Send" button on support request form by adding a button-support-request test ID to the button, and standard click event configuration in GTM.

Definition of Done

  • Document the changes required to update the support request configuration objects to match GA4 conventions.
  • Check support request events in query explorer for data.humancellatlas.org - GA4.
  • Check support request events in query explorer for data.humancellatlas.dev.clevercanary.com - GA4.
@github-actions github-actions bot added the canary Done by the Clever Canary team label Oct 9, 2024
@jpaten
Copy link
Contributor

jpaten commented Oct 11, 2024

Currently, this event is not implemented, as the HCA Portal uses the SupportRequest component in Findable, which does not have tracking implemented. Note that on GA4, there are no calls to Support Request in the past month (and very very few over the past year). To resolve this while keeping the tracking functionality, the following would need to be done:

  • Add an event model to findable-ui with the name support_request_create containing source and catalog as parameters
  • Add optional props to SupportRequestProps to pass the relevant data needed to fill the source and catalog parameters
  • Call the event in findable in SupportRequestForm (see the TODO in supportRequestForm.tsx)
  • Pass the relevant props in the Data Portal next site so the event can be called
  • Update the names of the GTM variables and triggers to match other GA4 events, and add consts where relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
canary Done by the Clever Canary team
Projects
None yet
Development

No branches or pull requests

2 participants