AddSearch detects Google Analytics (GA) on your website and pushes search events there. Google Analytics integration is available to Professional, Premium, and Enterprise plans. Depending on how you serve your analytics, you might need to configure it in the Google Analytics console only or in the Google Tag Manager as well.
Because AddSearch utilises search-as-you-type functionality, you need to disable the default Site search tracking in your Google analytics. Follow the instructions to do that:
See the screenshot for the correct settings:
If you serve your analytics through GA4 directly, you just need to enable GA integration in your AddSearch installation and you are done! Here is how the GA4 installation snippet looks like:
<!-- Google tag (gtag.js) --> .. .. .. </script>
If you are serving Google Analytics as a Google Tag Manager (GTM) tag, some additional steps are required for Google Analytics integration to work.
Create two more variables, search_term and num_results, following the same steps. You should have three new variables once this step is finished.
Publish your changes, and the search events should start showing in your Google Analytics account. Here is how the tag configuration should look like once the setup is complete:
If you use legacy ready-made views, the integration will be enabled in your AddSearch installation by default. For contemporary out-of-the-box views, after setting up Google integration in your Google Analytics dashboard you need to follow the steps below to enable Google Analytics integration in your installation using the AddSearch Search Designer. In case you are not sure which view is installed on your website or you have a custom implementation, contact our support and we will be happy to help.
To get the installation script with Google Analytics enabled, follow these steps:
We have integrated with the leading open-source analytics platform Piwik in addition to Google Analytics. We support both self-hosted and cloud-hosted Piwik installations. See Piwik.org for more information. Please note that Piwik has changed its name to Matomo.
The third supported analytics platform is Adobe Analytics.
We are also able to fire custom analytics events if needed.
We’re always happy to help with code or other questions you might have. Search our documentation, contact support, or connect with our sales team.