Google Analytics Integration (GA4)

GA4 Google Tag Analyitics Integration viag Global Site Tag (gtag.js) and Google Tag Manager (GTM)

Enable Google Analytics integration

Simply go to the Analytics Integration plugin submenu to turn on the Analytics integration.

  • Events Tracking - Allows you tracking all sorts of events, such as input focus, live search, facet changes etc.. with customizable parameters

Tracking ID

While the plugin tries to get your tracking code automatically, it is recommended to enter your tracking code anyways. If you use Google Tag Manager, then this is not required.

Events Tracking

In this mode, analytics event triggers can be enabled for specific search events. To enable a an event trigger, click on the "On/Off" button on the desired section.

For each event, you can set up the Event Action, Label, Category and Event value. Please check the About Events documentation to understand what they are.

Usable variables

Each event has a list of variables, that can be used within that event fields.

The variables are replaced with the corresponding values:

  • {search_id} - The search instance ID

  • {search_name} - The search instance name

  • {phrase} - The search phrase entered

  • {results_count} - The number of results ("unknown", when not available)

  • {option_name} - The facet option legend name, when the user clicks on a facet

  • {option_value} - The facet option value or label name, when the user clicks on a facet

  • {result_title} - The result title, when the user clicks on a live result

  • {result_url} - The reulst URL, when the user clicks on a live result

After a successful integration, the events will start showing up on the Google Analitycs real time Events panel, as well as in the events section under the Engagement panel after a few days.

Matomo analytics integration

While Matomo is not integrated to the core of the plugin, it is still possible to enable events and site search tracking with Matomo. For details please check the Matomo Analytics Integration knowledge base.

Last updated

Copyright Ernest Marcinko