Connecting Google Analytics 4 to Search Magic for BigCommerce

BigCommerce Updated Also for: Shopify · Turbify
Quick info
Give Search Magic read access to your Google Analytics 4 property, create two search audiences, add your Property ID in Store Settings and turn on site search tracking.

What it does

Connecting Google Analytics 4 lets Search Magic report on how search affects your store, such as revenue from shoppers who search, in its Dashboard.

Before you start

  • A Google Analytics 4 property for your store, and admin access to it.
  • The Search Magic email address to give access to. Email us at help@yourstorewizards.com and we'll send it.

Step-by-step

1. Give Search Magic access

  1. Admin. In Google Analytics, click Admin.

    Google Analytics in 2023, with the Admin gear highlighted

  2. Property Access Management. Under your property, open Property Access Management.

    Google Analytics Admin in 2023, with Property Access Management highlighted

  3. Add a user. Add a new user with the Search Magic email address and the Viewer role, then click Add.

    Adding a user with the Viewer role in Google Analytics in 2023, the email address blurred

2. Create two audiences

  1. New Audience. In Admin, open Audiences, click New Audience, then Create a Custom Audience.

    Google Analytics Admin in 2023, with Audiences highlighted

    Create a custom audience in Google Analytics in 2023

  2. Site Search Users. Name the audience Site Search Users, include users with the event view_search_results, and click Save.

    The Site Search Users audience including the view_search_results event, in Google Analytics in 2023

  3. Non-Site Search Users. Create a second custom audience named Non-Site Search Users. Delete the Include condition it starts with, add Exclude users when the event is view_search_results, and click Save.

    The Non-Site Search Users audience excluding the view_search_results event, in Google Analytics in 2023

3. Add your Property ID to Search Magic

  1. Copy the Property ID. In Admin, open Property Settings and copy the Property ID.

    Property Settings in Google Analytics in 2023, with the copy button next to the Property ID

  2. Paste it into Search Magic. In Search Magic, open Store Settings, paste the ID into Google Analytics View ID and click Save.

    The Store Settings page, where the Google Analytics View ID field is in the Account Details box

4. Turn on site search tracking

  1. Data Streams. In Admin, open Data Streams and click your store's stream.

    Data Streams in Google Analytics in 2023, with a web stream highlighted

  2. Enhanced measurement. Click the settings icon under Enhanced measurement.

    Enhanced measurement in Google Analytics in 2023, with its settings icon highlighted

  3. Site search. Turn on Site search and set the Search Term Query Parameter to query. If it already has a value, add query after a comma, for example term,q,query. Click Save.

    Site search turned on with query as the Search Term Query Parameter, in Google Analytics in 2023

Google Analytics 4 is now set up for Search Magic.

Questions? Email us at help@yourstorewizards.com.