Activate GA in your Store

Doofinder can be integrated with Google Analytics 4, allowing you to track and measure your users' traffic and Doofinder usage on your website, enabling you to make more informed decisions and improve your business.

How to configure GA4

Under "Store Settings" you'll find two fields:

enter ga information
  • Google Analytics Account / Measurement ID: This is the Measurement ID of the GA account. The code format is "G-XXX," unlike the Universal Google Analytics format "UA-XXXX-Y" as indicated in the helper.

  • Measurement Protocol API secret: This key can be obtained from the "Data Streams" section of Google Analytics Settings.

Measurement Protocol API secret

We recommend creating a specific "Measurement protocol API key" for Doofinder.

🗒 Note: Universal Google Analytics will become obsolete as of July 31, 2023. Previously, only 1 field was required to be completed. However, since Universal Google Analytics is still working, the field "Google Analytics account ID / measurement" is equivalent to the previously available field, so Universal GA will continue to work until the deadline of July 31, 2023.

Doofinder Events

We send three custom events:

  • doofinder_search (do a search): Data => hash-id (Search Engine) and term

  • doofinder_view_item (visit a product): Data => hash-id and url

  • doofinder_checkout (product added to the shopping cart. But it is not specified which product is the one added to the cart): Data => hash-id and url of the checkout page

Doofinder events

The rest of the events, like click or page_view, belong to GA. You can have a look at GA events in this link.

🗒 Note: How and where to view the collected data will depend on the configuration of your GA dashboard, dimensions, reports, etc.

How does Doofinder send search events to Google Analytics?

The Live layer triggers a "doofinder_search" event to Google Analytics for every query, as long as there's no subsequent query within a one-second debounce period. For clarity, suppose we search for "shoes"; if we type "shoe" and wait a second before adding "s," two "doofinder_search" events will be dispatched to GA4 with the value 'shoe' and another with 'shoes.'

Why the differences between Doofinder statistics and doofinder_search events?

There's a difference in how searches are counted between GA4 and the admin stats. This difference stems from variations in how searches are recorded in Doofinder due to data processing before storage. For a query to qualify as a search, it must meet specific conditions, primarily:

  • Time lapse between queries
  • Similarity between queries

Just to clarify, if we search for "shoes," but type "shoe" and wait a second before adding "s," only one search will be saved in Doofinder stats due to the similarity between the two queries, "shoe" and "shoes." However, if there's a significant delay between the two queries, two searches would be saved in Doofinder Stats. For instance, searching "shoe," waiting 10 seconds, and then typing "s" would result in recording two searches: "shoe" and "shoes."