Classes
Members
Methods
# convert(visitorId, goalId, goalRuleopt, goalData, segments) → {boolean}
Process conversion event
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
visitorId |
Id
|
||
goalId |
Id
|
||
goalRule |
Record.<string, any>
|
<optional> |
An object of key-value pairs that are used for goal matching |
goalData |
Array.<Record.<GoalDataKey, number>>
|
An array of object of key-value pairs | |
segments |
SegmentsData
|
boolean
# dataStoreManager() → {DataStoreManagerInterface}
dataStoreManager getter
DataStoreManagerInterface
# filterMatchedRecordsWithRule(items, visitorProperties) → {Array.<Record.<string, any>>}
Get audiences that meet the visitorProperties
Parameters:
| Name | Type | Description |
|---|---|---|
items |
Array.<Record.<any, any>>
|
|
visitorProperties |
Object
|
Array.<Record.<string, any>>
# getBucketing(visitorId, key, visitorProperties, locationProperties, environmentopt) → {BucketedVariation|null}
Retrieve variation for visitor
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
visitorId |
string
|
||
key |
string
|
||
visitorProperties |
Record.<string, any>
|
||
locationProperties |
string
|
||
environment |
string
|
<optional> |
BucketedVariation
|
null
# getBucketingById(visitorId, id, visitorProperties, locationProperties, environmentopt) → {BucketedVariation|null}
Retrieve variation for Visitor
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
visitorId |
string
|
||
id |
Id
|
||
visitorProperties |
Record.<string, any>
|
||
locationProperties |
string
|
||
environment |
string
|
<optional> |
BucketedVariation
|
null
# getEntities(keys, entityType) → {Array.<Entity>}
Find the entity in list by keys
Parameters:
| Name | Type | Description |
|---|---|---|
keys |
Array.<string>
|
|
entityType |
string
|
Array.<Entity>
# getEntitiesByIds(ids, entityType) → {Array.<Entity>}
Find the entity in list by ids
Parameters:
| Name | Type | Description |
|---|---|---|
ids |
Array.<Id>
|
|
entityType |
string
|
Array.<Entity>
# getEntitiesList(entityType) → {Array.<(Entity|Id)>}
Get list of data entities
Parameters:
| Name | Type | Description |
|---|---|---|
entityType |
string
|
Array.<(Entity|Id)>
# getEntitiesListObject(entityType, fieldopt) → {Record.<string, Entity>}
Get list of data entities grouped by field
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
entityType |
string
|
||
field |
IdentityField
|
<optional> |
Record.<string, Entity>
# getEntity(key, entityType) → {Entity|null}
Find the entity in list by id
Parameters:
| Name | Type | Description |
|---|---|---|
key |
string
|
|
entityType |
string
|
Entity
|
null
# getEntityById(id, entityType) → {Entity|null}
Find the entity in list by id
Parameters:
| Name | Type | Description |
|---|---|---|
id |
Id
|
|
entityType |
string
|
Entity
|
null
# getItemsByIds(ids, path) → {Array.<Record.<string, any>>}
Find the items in list by ids
Parameters:
| Name | Type | Description |
|---|---|---|
ids |
Array.<Id>
|
|
path |
String
|
Array.<Record.<string, any>>
# getItemsByKeys(keys, path) → {Array.<Record.<string, any>>}
Find the items in list by keys
Parameters:
| Name | Type | Description |
|---|---|---|
keys |
Array.<string>
|
|
path |
string
|
Array.<Record.<string, any>>
# getSubItem(entityType, entityIdentity, subEntityType, subEntityIdentity, identityField, subIdentityField) → {Record.<any, any>|null}
Find nested item
Parameters:
| Name | Type | Description |
|---|---|---|
entityType |
string
|
|
entityIdentity |
string
|
number
|
|
subEntityType |
string
|
|
subEntityIdentity |
string
|
number
|
|
identityField |
IdentityField
|
|
subIdentityField |
IdentityField
|
Record.<any, any>
|
null
# isValidConfigData(data) → {boolean}
Validates data object
Parameters:
| Name | Type | Description |
|---|---|---|
data |
boolean