Enabling and Verifying GA4 Analytics Tracking

Enabling and Verifying GA4 Analytics Tracking

 

In Synapse,

  1. Opt-in to analytics tracking
    Navigate to: Account SettingsPrivacy PreferencesAnalytics Cookie

  2. 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:

datalayer.png

 

In GA4 Analytics,

  1. 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.

  2. In Synapse staging, perform a search using a test query term, for example:

covid test [yourname]
  1. Navigate to: ReportsRealtime overview

    1. Realtime overview is recommended for this sanity check purpose, since many of engagement views and reports can take 24–48 hours to process data.

  2. Find the section: Event count by Event name

  3. You should see some of the following events:

    1. search_query_submitted

    2. search_result_page_returned

    3. search_result_returned

    4. search_result_clicked

  4. To inspect a specific event
    Click on search_query_submitted (for example), then navigate to query_term to confirm the test query from the earlier step appears correctly.

 

Developer Tools:

 

Chrome

🍎 Safari

🦊 Firefox

 

Chrome

🍎 Safari

🦊 Firefox

Via Menu

  1. Click the three-dot menu in the top-right corner.

  2. Navigate to More toolsDeveloper tools.

Enable Developer Tools First (One-time setup):

  1. Go to SafariSettings (or Preferences) → Advanced.

  2. At the bottom, check "Show Develop menu in menu bar".

  1. Click the hamburger menu (☰) in the top-right.

  2. Select More ToolsWeb Developer Tools.

Shortcut (Windows/Linux)

Ctrl + Shift + I or F12

N/A

Ctrl + Shift + I or F12

Shortcut (Mac)

Cmd + Option + I

Cmd + Option + I

Cmd + Option + I

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"