All HRAs generate Google Analytics 4 (GA4) events for specific events within the HRA. To set up GA4 for your HRA, go to the Analytics/Tagging section within your HRA’s customization (accessible via the dashboard).
Click +Add Analytics Service and select Google Analytics 4. You will need to add your GA4 Property Tracking ID information into the customization section, which can be found on your GA4 Manager Dashboard.
About Page Views
Because Google Analytics 4 does not support manually triggering page views, we represent page views as events. Each page view event has a page_url value that corresponds to a conceptual URL for the page in the HRA.
Supported Events
For reference:
- “applicationType” indicates the name of the HRA, in lowercase with spaces replaced by dashes (e.g., heartaware).
- {x} indicates the page on which validation failed
- {y} indicates text value that indicates the question on the page that failed validation (age question would be “age,” current medications is “medications,” etc.)
- {z} indicates the contact field on the page that failed validation
Event Name (event) | Page URL (page_url) | Description |
full-disclaimer-view | {applicationType}/splash | User views the full disclaimer |
start-page-viewed | {applicationType}/splash | User views the splash page (start screen) |
validation-failed-disclaimer | {applicationType}/splash | User fails validation on disclaimer |
validation-failed-{y} | {applicationType}/questions-{x} | User fails validation on any question (represented by {y}) on any page (represented by {x}). |
back-button-clicked | (current page) | User clicks the back button to return to previous page |
validation-failed-{z} | {applicationType}/contact | User fails validation on contact page |
results-page-viewed | {applicationType}/results | User views the results page |
cta-1-clicked | {applicationType}/results | User clicks on the first Call to Action on the results page |
cta-2-clicked | {applicationType}/results | User clicks on the second Call to Action on the results page |
cta-3-clicked | {applicationType}/results | User clicks on the third Call to Action on the results page |
report-viewed | {applicationType}/more-results | User clicks to open the full Results Report |
report-emailed | {applicationType}/results | User clicks to email a copy of the full Results Report |
primary-result-{primary_result} | {applicationType}/results | This is the primary result displayed to the user |
Other Event Fields
The following fields are also added to every event:
- hra_name – Name of the HRA (e.g., HeartAware)
- hra_location – Location of the HRA (if present)
- source – Where the user came from (?utm_source={source} in url)