Google Analytics Search API Autocomplete event tracking example.

This module integrates Search API Autocomplete widgets with Google Analytics module.

It will give you full insights about how your users use search autocomplete features on your search pages.
allowing you to choose which Jquery UI Autocomplete events to track,
you'll be able to transform all behaviors of your visitors into easy readable Google Analytics Reports.

Once it's configured, the module will perform following operations:
* Check if Google Analytics Tracking ID is provided and ga() function exists
* Create custom GA tracker which will handle search autocomplete events
* Listen to configured ui.atocomplete events

When passing event to Google Analytics, following attributes will be sent:
* eventCategory - ID of Search API search
* eventAction - name of ui.autocomplete event, or a custom label pulled from configuration ( since beta4 )
* eventLabel - here we pass the search value, depending on event this can be user’s input or selection
* eventValue - none - this can be only integer value

Check following page to get more explanations about GA Event Tracking system:
https://developers.google.com/analytics/devguides/collection/analyticsjs/events

For more details, see README.md

Roadmap to stable release

This is the list of work which is needed to make this module stable:

  • #2999504 As a developer I would like to configure event action labels which are being sent to GA
  • #2999499 As a developer I would like to add test coverage to this module
  • #2999502 As a developer / site builder I would like to see better documentation
Supporting organizations: 
Architecture and development

Project information

Releases