Enabling and Verifying GA4 Analytics Tracking
In Synapse,
Opt-in to analytics tracking
Navigate to:Account Settings
→Privacy Preferences
→Analytics Cookie
Verify that tracking is properly set up
Open your browser’s Developer Tools (ref. table below), and in the Console tab, enter:window.dataLayer
The console will show something like:
In GA4 Analytics,
Go to https://analytics.google.com.
After clicking the link, you should see the account name. If not, contact Jay to have your account added.In Synapse staging, perform a search using a test query term, for example:
covid test [yourname]
Navigate to:
Reports
→Realtime overview
Realtime overview is recommended for this sanity check purpose, since many of engagement views and reports can take 24–48 hours to process data.
Find the section:
Event count by Event name
You should see some of the following events:
search_query_submitted
search_result_page_returned
search_result_returned
search_result_clicked
To inspect a specific event
Click onsearch_query_submitted
(for example), then navigate toquery_term
to confirm the test query from the earlier step appears correctly.
Developer Tools:
| Chrome | 🍎 Safari | 🦊 Firefox |
---|---|---|---|
Via Menu |
| Enable Developer Tools First (One-time setup):
|
|
Shortcut (Windows/Linux) |
| N/A |
|
Shortcut (Mac) |
| | |
Extra Tip | Right-click on any page element and select "Inspect" to jump directly into the Elements panel. | You can also right-click on elements and choose "Inspect Element" | Right-click on a page and select "Inspect" |