Install

Works with Drupal: 8.x

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 13.19 KB
MD5: 0c1ea2a9d4ec5da9de8dcdd99d8fbef9
SHA-1: 460c3f84710b0c507dfe551b6124a38bc2cb80fe
SHA-256: 8ab32aafa642b09939ddb5e3a0831d63bc8cd3ddab2ca88f42c76e70e70d534f
Download zip 19.52 KB
MD5: 68ccefc0e6413d7a9e37f4651a7ac5f9
SHA-1: 341503900e65d2462cd5910a71c5c21c45aa5bf7
SHA-256: e351413b773b1b4a6691f08fe7088a7a951c005a8ec0dfbeb30df100422d05a6

Release notes

This release resolves issue #2999504 - As a developer I would like to configure event action labels which are being sent to GA

It provides improvements in admin UI and in handling of GA Events, new administration form allows to customize a label, which is being sent as a eventAction property of GA Event, this can be configured for every type of ui.autocomplete event:
Google Analytics Search Autocomplete configuration form
( see full image)

There's an update hook, which will take care of configuration update from beta3 and lower, to beta4:
http://cgit.drupalcode.org/google_analytics_search_api_autocomplete/tree...

During update, the configuration will change as in example below:

# 8.x-1.0-beta3 and below:
$ drush cget google_analytics_search_api_autocomplete.admin_settings
autocomplete_events:
  autocompletechange: 1
  autocompletefocus: 1
  autocompleteresponse: 1
  autocompleteselect: 1
  autocompleteclose: 0
  autocompleteopen: 0
  autocompletesearch: 0
debug_mode: 0

# 8.x-1.0-beta4: 

$ drush cget google_analytics_search_api_autocomplete.admin_settings
autocomplete_events:
  autocompletechange:
    enabled: 1
    label: false
  autocompletefocus:
    enabled: 1
    label: false
  autocompleteresponse:
    enabled: 1
    label: false
  autocompleteselect:
    enabled: 1
    label: false
  autocompleteclose:
    enabled: 0
    label: false
  autocompleteopen:
    enabled: 0
    label: false
  autocompletesearch:
    enabled: 0
    label: false
debug_mode: 0

Initially it is not required to change the labels, this configuration is optional, so everything will work without touching configuration. It is also possible to customize just a part of the labels:
Google Analytics Search API Autocomplete - example of Google Analytics report
( see full image)

Created by: sandboxpl
Created on: 7 Nov 2018 at 22:08 UTC
Last updated: 7 Nov 2018 at 22:10 UTC
New features

Other releases