analyticsResponse

analyticsResponse

Contains constants and functions for a Analytics Response.

The structure for a Analytics Response is as follows:

{
  payload: {
    ACPExtensionEventData: {
      requestEventIdentifier: <string>,
      hitUrl: <string>,
      headers: {
        ETag: <string>,
      },
      hitHost: <string>,
    },
    ACPExtensionEventSource: 'com.adobe.eventsource.responsecontent'
    ACPExtensionEventType: 'com.adobe.eventtype.analytics'
    ACPExtensionEventName: <string>,
    ACPExtensionEventNumber: <integer>,
    ACPExtensionEventUniqueIdentifier: <string>,
  },
  type: 'generic'
  vendor: <string>,
  annotations: <array>,
  clientId: <string>,
  timestamp: <number>,
  uuid: <string>,
}
Source:

Members

(static, constant) EVENT_SOURCE

The value for eventSource for a Analytics Response.

Path is payload,ACPExtensionEventSource.

Source:

(static, constant) EVENT_TYPE

The value for eventType for a Analytics Response.

Path is payload,ACPExtensionEventType.

Source:

(static, constant) group

A grouping for this object

Source:

(static, constant) label

A label that can be used when describing this object

Source:

(static, constant) matcher

Matcher can be used to find matching Analytics Response objects.

Source:
See:
  • kit.match

(static, constant) parentDepth

Describes the number of parents this object has based off schema references. When checking for matches for example, we want to use a schema that is more specific over a more generic schema

Source:

(static, constant) path :string

Paths for the keys on a Analytics Response

Properties:
Name Type Description
payload string

An object with custom data describing the event.
Path is payload.

eventData string

An object with the custom data describing the event.
Path is payload.ACPExtensionEventData.

requestEventId string

The ID of the event that this is a response to.
Path is payload.ACPExtensionEventData.requestEventIdentifier.

hitUrl string

Query parameter of the data that was passed to Analytics.
Path is payload.ACPExtensionEventData.hitUrl.

hitHeaders string

The headers returned from the request.
Path is payload.ACPExtensionEventData.headers.

ETag string

The value used to pull the processing information from the Hit Debugger Service.
Path is payload.ACPExtensionEventData.headers.ETag.

hitHost string

The host url of the service that was hit to pass the data to Analytics.
Path is payload.ACPExtensionEventData.hitHost.

eventSource string

The event source.
Path is payload.ACPExtensionEventSource.

eventType string

The event type.
Path is payload.ACPExtensionEventType.

eventName string

The name of the event.
Path is payload.ACPExtensionEventName.

sdkEventNumber string

The event number generated by the SDK.
Path is payload.ACPExtensionEventNumber.

eventId string

The unique event id.
Path is payload.ACPExtensionEventUniqueIdentifier.

rootType string

The type of event.
Path is type.

vendor string

The vendor of the plugin that sent the event.
Path is vendor.

annotations string

Array of Annotation objects.
Path is annotations.

clientId string

A unique id that differentiates clients from one another.
Path is clientId.

timestamp string

When the event occurred.
Path is timestamp.

rootId string

Uniquely identifies each event.
Path is uuid.

Source:

(static, constant) ROOT_TYPE

The value for rootType for a Analytics Response.

Path is type.

Source:

Methods

(static) get(alias, data) → {*}

Retrieves a value from the object. You can provide either a path or an alias.

Parameters:
Name Type Description
alias string

Path or alias

data *

Data to search

Source:

(static) getETag(source) → {string}

Returns the ETag from the Analytics Response. This is the the value used to pull the processing information from the Hit Debugger Service.

Path is payload,ACPExtensionEventData,headers,ETag.

Parameters:
Name Type Description
source object

The Analytics Response instance

Source:

(static) getHitHeaders(source) → {object}

Returns the hitHeaders from the Analytics Response. This is the the headers returned from the request.

Path is payload,ACPExtensionEventData,headers.

Parameters:
Name Type Description
source object

The Analytics Response instance

Source:

(static) getHitHeadersKey(…path, source) → {*}

Returns the data using the specified path from the hitHeaders of the Analytics Response.

Parameters:
Name Type Attributes Description
path string <repeatable>

key in object

source object

The Analytics Response instance

Source:

(static) getHitHost(source) → {string}

Returns the hitHost from the Analytics Response. This is the the host url of the service that was hit to pass the data to Analytics.

Path is payload,ACPExtensionEventData,hitHost.

Parameters:
Name Type Description
source object

The Analytics Response instance

Source:

(static) getHitUrl(source) → {string}

Returns the hitUrl from the Analytics Response. This is the query parameter of the data that was passed to Analytics.

Path is payload,ACPExtensionEventData,hitUrl.

Parameters:
Name Type Description
source object

The Analytics Response instance

Source:

(static) getRequestEventId(source) → {string}

Returns the requestEventId from the Analytics Response. This is the the ID of the event that this is a response to.

Path is payload,ACPExtensionEventData,requestEventIdentifier.

Parameters:
Name Type Description
source object

The Analytics Response instance

Source:

(static) isMatch(source) → {boolean}

Tests the provided source against the matcher to see if it's Analytics Response event.

Parameters:
Name Type Description
source object

The Analytics Response instance

Source:
See:
  • kit.isMatch

(static) make(…input) → {object}

Generates a Analytics Response with the const values set. Can be useful in testing. Can provide additional data by providing a flat object of paths and values.

Parameters:
Name Type Attributes Description
input function <repeatable>

Overrides

Source:

(static) mock(…input) → {object}

Generates a Analytics Response with some default values set. Can be useful in testing. Can override defaults and provide additional data by providing a flat object of paths and values.

Parameters:
Name Type Attributes Description
input function <repeatable>

Overrides

Source: