function ga_push_analyticsjs_measurement_protocol_map in GA Push 8
Same name and namespace in other branches
- 7 ga_push.module \ga_push_analyticsjs_measurement_protocol_map()
 
Key relationship map between analyticsjs & measurement_protocol.
See also
https://developers.google.com/analytics/devguides/collection/protocol/v1...
1 call to ga_push_analyticsjs_measurement_protocol_map()
- ga_push_analyticsjs_measurement_protocol_mapping in ./
ga_push.module  - Translates Analytics.js keys to UTMP keys.
 
File
- ./
ga_push.module, line 765  - Drupal Module: GA Push.
 
Code
function ga_push_analyticsjs_measurement_protocol_map() {
  return [
    // Application:
    'appName' => 'an',
    'appId' => 'aid',
    'appVersion' => 'av',
    'appInstallerId' => 'aiid',
    // Ecommerce:
    'id' => 'ti',
    'affiliation' => 'ta',
    'revenue' => 'tr',
    'tax' => 'tt',
    'shipping' => 'ts',
    'currency' => 'cu',
    'name' => 'in',
    'price' => 'ip',
    'quantity' => 'iq',
    'sku' => 'ic',
    'category' => 'iv',
    // Event:
    'eventCategory' => 'ec',
    'eventAction' => 'ea',
    'eventLabel' => 'el',
    'eventValue' => 'ev',
    'nonInteraction' => 'ni',
    // Exception:
    'exDescription' => 'exd',
    'exFatal' => 'exf',
    // Pageview:
    'location' => 'dh',
    'page' => 'dp',
    'title' => 'dt',
    // Social:
    'socialNetwork' => 'sn',
    'socialAction' => 'sa',
    'socialTarget' => 'st',
  ];
}