Skip to main content

Tracking management API

Last updated 10/03/2026

For how to call the API, see the calling method described in the Open API document.

1. Tracking plan​

We recommend first reading the TE user manual to learn about tracking features: Tracking plan and Data validation

1. Query the tracking plan​

Endpoint URL

/open/track-query?token=xxx&projectId=30

Request method

GET

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId30IntegerYesProject ID

Success response example

{
"data": {
"commonEventProps": [{
"name": "#device_id",
"displayName": "Device ID",
"type": "string",
"desc": ""
}],
"createTime": "2021-10-12 11:47:31",
"eventProps": [
{
"createTime": "2021-10-12 11:47:30",
"creator": "TG-38045d57-403c-424c-a6a6-b12f6a8943bd",
"desc": "",
"displayName": "Reason",
"lastUpdateAuth": "TG-38045d57-403c-424c-a6a6-b12f6a8943bd",
"lastUpdateTime": "2021-10-12 11:47:30",
"name": "reason",
"type": "string"
}
],
"events": [
{
"createTime": "2021-10-12 11:47:30",
"creator": "TG-38045d57-403c-424c-a6a6-b12f6a8943bd",
"displayName": "",
"eventDesc": "Attend activity 3",
"eventName": "activity_attend",
"eventTag": "111,aaa",
"lastUpdateAuth": "TG-38045d57-403c-424c-a6a6-b12f6a8943bd",
"lastUpdateTime": "2021-10-12 13:01:10",
"props": [
"#city"
]
}
],
"projectId": 377,
"userProps": [
{
"createTime": "2021-10-12 11:47:30",
"creator": "TG-38045d57-403c-424c-a6a6-b12f6a8943bd",
"desc": "",
"displayName": "Balance",
"lastUpdateAuth": "TG-38045d57-403c-424c-a6a6-b12f6a8943bd",
"lastUpdateTime": "2021-10-12 11:47:30",
"name": "accountbalance",
"type": "number",
"updateTypeName": ""
}
]
},
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
data-ObjectReturned data
data.commonEventProps-ListSuper property information
data.commonEventProps.name#device_idStringProperty name
data.commonEventProps.displayNameDevice IDStringProperty display name
data.commonEventProps.typestringStringType
data.commonEventProps.descStringDescription
data.eventProps-ListEvent property list
data.eventProps.createTime2021-10-12 11:47:30DateCreated at
data.eventProps.creatorTG-38045d57-403c-424c-a6a6-b12f6a8943bdStringCreator
data.eventProps.desc-StringDescription
data.eventProps.displayNameReasonStringDisplay name
data.eventProps.lastUpdateAuthTG-38045d57-403c-424c-a6a6-b12f6a8943bdStringLast updated by
data.eventProps.lastUpdateTime2021-10-12 11:47:30DateLast updated
data.eventProps.namereasonStringName
data.eventProps.typestringStringType
data.events-ListEvent list
data.events.createTime2021-10-12 11:47:30DateCreated at
data.events.creatorTG-38045d57-403c-424c-a6a6-b12f6a8943bdStringCreator
data.events.displayName-StringDisplay name
data.events.eventDescAttend activity 3StringDescription
data.events.eventNameactivity_attendStringName
data.events.eventTag111,aaaStringTags
data.events.lastUpdateAuthTG-38045d57-403c-424c-a6a6-b12f6a8943bdStringLast updated by
data.events.lastUpdateTime2021-10-12 13:01:10DateLast updated
data.events.props["#city"]ListEvent property list
data.projectId377IntegerProject ID
data.userProps-StringUser property list
data.userProps.createTime2021-10-12 11:47:30DateCreated at
data.userProps.creatorTG-38045d57-403c-424c-a6a6-b12f6a8943bdStringCreator
data.userProps.desc-StringDescription
data.userProps.displayNameBalanceStringDisplay name
data.userProps.lastUpdateAuthTG-38045d57-403c-424c-a6a6-b12f6a8943bdStringLast updated by
data.userProps.lastUpdateTime2021-10-12 11:47:30DateLast updated
data.userProps.nameaccountbalanceStringName
data.userProps.typenumberStringType
data.userProps.updateTypeName-String
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -3004,
"return_message": "Invalid project"
}
Parameter nameExample valueParameter typeDescription
return_code-3004IntegerReturn code
return_messageInvalid projectStringReturn message

2. Export the tracking plan​

Note

Downloads the tracking plan as an Excel file. An error is returned if the project has no tracking plan

Endpoint URL

/open/track-export?token=xxx&projectId=2

Request method

GET

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId2IntegerYesProject ID

Success response example

The exported file is an xlsx file that contains sheets such as Integration Essentials, #User ID System, #Events, #Public Event Properties, # User Properties, Data Type Design Principles, Super Property Setup Methods, Multi-platform Integration Notes, and Tracking Recommendations for Multiple User ID Systems, as shown below:

Error response example

{
"return_code": -1023,
"return_message": "Target object no longer exists"
}
Parameter nameExample valueParameter typeDescription
return_code-1023IntegerReturn code
return_messageTarget object no longer existsStringReturn message

3. Export the tracking plan from metadata​

Endpoint URL

/open/meta-export-track?token=xxx&projectId=2

Request method

GET

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId2IntegerYesProject ID

Success response example

The exported file is an xlsx file that contains sheets such as Integration Essentials, #User ID System, #Events, #Public Event Properties, # User Properties, Data Type Design Principles, Super Property Setup Methods, Multi-platform Integration Notes, and Tracking Recommendations for Multiple User ID Systems, as shown below:

Error response example

{
"return_code": -3004,
"return_message": "Invalid project"
}
Parameter nameExample valueParameter typeDescription
return_code-3004IntegerReturn code
return_messageInvalid projectStringReturn message

4. Validate tracking data​

Endpoint URL

/open/track-check?token=xxx

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key

Request body parameters

{
"projectId": 0,
"checkScope": {
"startTime": "2021-01-01 10:00",
"endTime": "2021-02-01 10:00",
"checkDataTypes": ["event_data", "user_data"],
"checkEvents": ["event1", "event2"],
"eventFilter": {
},
"userFilter": {
"tableType":"user",
"columnName": "#os",
"comparator": "equal",
"ftv": [
"ios"
]
}
},
"resultScope": {
"eventResults": ["unreported_event", "unplanned_event"],
"userResults": ["unreported_user_prop", "unplanned_user_prop"]
}
}
Parameter nameExample valueParameter typeRequiredDescription
checkScope-ObjectYesValidation scope
checkScope.checkDataTypesevent_dataListNoData types to validate: event_data for event data and user_data for user data. Both are validated by default
checkScope.checkEventsstringListNoEvents to validate. null means all events are validated
checkScope.endTimestringDateNoEnd time of the validation period. Defaults to the current server time
checkScope.eventFilter-ListNoEvent filter conditions. Only metadata event properties can be used for filtering (virtual properties and user tags can't be used)
checkScope.eventFilter.filterTypeSIMPLEStringNo

Filter:

  • COMPOUND: compound type
  • SIMPLE: simple type
checkScope.eventFilter.filts-ListNoList of filter values
checkScope.eventFilter.filts.filterTypeSIMPLEStringNo

Filter:

  • COMPOUND: compound type
  • SIMPLE: simple type
checkScope.eventFilter.relationandStringNoLogical relationship of the filter
checkScope.hasEmptyCheckfalseBooleanNoWhether to treat empty strings as null values
checkScope.propNullValueThreshold0IntegerNoProperty null rate threshold
checkScope.startTimestringDateNoStart time of the validation period. Defaults to the time the tracking plan was uploaded
checkScope.userFilter-ListNoUser filter conditions. Only metadata user properties can be used for filtering (virtual properties and user tags can't be used)

checkScope.userFilter.filterType

SIMPLEStringNo

Filter:

  • COMPOUND: compound type
  • SIMPLE: simple type
checkScope.userFilter.filts-ListNoList of filter values

checkScope.userFilter.filts.filterType

SIMPLEStringNo

Filter:

  • COMPOUND: compound type
  • SIMPLE: simple type
checkScope.userFilter.relationandStringNoLogical relationship of the filter
projectId0IntegerYesProject ID
resultScope-ObjectNoResult scope (if null, all results are selected by default)

resultScope.eventResults

["unreported_event"]

List

No

Event result scope. Valid values:

  • unreported_event: events that are in the tracking plan but have not actually been reported
  • unplanned_event: events that are not in the tracking plan but have actually been reported
  • unplanned_event_prop: event properties that are not in the tracking plan although their event is (preset properties are not validated)
  • missing_event_prop: properties that are in the tracking plan but missing from the actually reported data
  • type_error_event_prop: event properties whose type differs from the type actually reported

resultScope.userResults

["missing_user_prop"]ListNo

User result scope. Valid values:

  • unreported_user_prop: user properties that are in the tracking plan but have not actually been reported
  • unplanned_user_prop: user properties that are not in the tracking plan but have actually been reported
  • type_error_user_prop: user properties whose type differs from the type actually reported

Success response example

{
"data": "d611d456-e74d-47e3-b078-370b79a134af",
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
datad611d456-e74d-47e3-b078-370b79a134afObjectKey for querying the validation result
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -1008,
"return_message": "projectId cannot be null"
}
Parameter nameExample valueParameter typeDescription
return_code-1008IntegerReturn code
return_messageprojectId cannot be nullStringReturn message

5. Query tracking validation results​

Endpoint URL

/open/track-check-result-query?token=xxx&key=d611d456-e74d-47e3-b078-370b79a134af

Request method

GET

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
keyd611d456-e74d-47e3-b078-370b79a134afStringYesValidation result key

Success response example

{
"return_code": 0,
"return_message": "success",
"data": {
"projectId": 100,
"checkTime": "2021-04-23 14:00:00",
"checkScope": {},
"checkResultType": "result_fail",
"eventResults": [
{
"name": "event1",
"resultType": "success",
"details": [
{
"sample": [
""
]
}
],
"propNullRates": [
{
"propName": "property1",
"displayName": "displayName1",
"hasRequired": true,
"propNullRate": 60
}
]
},
{
"name": "event2",
"displayName": "Event 2",
"resultType": "fail",
"details": [
{
"propName": "property1",
"errorType": "type_error_prop",
"reportType": "string",
"planType": "number",
"sample": [
""
]
},
{
"propName": "property2",
"errorType": "unreported"
}
],
"propNullRates": [
{
"propName": "property1",
"displayName": "displayName1",
"hasRequired": true,
"propNullRate": 60
}
]
}
],
"userResult": {
"userSamples": [
{}
],
"userPropDetails": [
{
"name": "property1",
"displayName": "User property 1",
"resultType": "success",
"propNullRate": 10
}
]
}
}
}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message
data-ObjectKey for querying the validation result
data.projectId100IntegerProject ID
data.checkTime2021-04-23 14:00:00DateValidation time
data.checkScope{}ObjectValidation condition scope, that is, the request body of the /track-check API
data.checkResultTyperesult_failString

checkResultType: validation result type. There are 4 values:

  • result_success: validation succeeded (the reported data fully matches the tracking plan). You can view data details in the eventResults and userResult fields
  • result_fail: validation failed (the reported data deviates from the tracking plan). You can view data details in the eventResults and userResult fields
  • checking: validation in progress. Wait a moment and query again later
  • check_fail: calculation failed. You can view the reason in the checkError field
data.eventResults-ListEvent data validation results
data.eventResults.nameevent1StringEvent name
data.eventResults.resultTypesuccessString

Event validation result type. There are 4 types:

  • success: validation succeeded
  • fail: validation failed
  • unreported: not reported
  • unplanned: unplanned tracking
data.eventResults.details-ListCollection of detailed data
data.eventResults.details.sample{}ObjectSample examples. There are no samples when the event validation result type is unreported
data.eventResults.propNullRates-ListProperty null rates
data.eventResults.propNullRates.propNameproperty1StringEvent property name
data.eventResults.propNullRates.displayNamedisplayName1StringEvent property display name
data.eventResults.propNullRates.hasRequiredtrueBooleanWhether required
data.eventResults.propNullRates.propNullRate60IntegerNull rate
data.userResult-ObjectUser data validation results
data.userResult.userSamples{}List10 sample users
data.userResult.userPropDetails-ListUser property details
data.userResult.userPropDetails.nameproperty1StringUser property name
data.userResult.userPropDetails.displayNameUser property 1StringUser property display name
data.userResult.userPropDetails.resultTypesuccessString

User property validation result type. There are 4 types:

  • success: validation succeeded
  • fail: validation failed
  • unreported: not reported
  • unplanned_user_prop: unplanned user property
data.userResult.userPropDetails.propNullRate10IntegerProperty null rates

Error response example

{
"return_code": -1008,
"return_message": "key not exist"
}
Parameter nameExample valueParameter typeDescription
return_code-1008IntegerReturn code
return_messagekey not existStringReturn message

6. Save tracking items from Excel​

Note

Upload the Excel template with the file parameter

Endpoint URL

/open/track-excel-save?token=xxx&projectId=0

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId0IntegerYesProject ID

Success response example

{
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": 0,
"return_message": "success",
"data": ""
}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message
dataObjectReturned data

7. Add tracking items​

Note

If the requested event name or property name already exists in the tracking plan, an error is returned

Example: add an event property to an existing event (add the register_name event property and bind it to the existing event register)

Endpoint URL

/open/track-insert?token=xxx

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key

Request body parameters

{
"projectId": 100,
"events": [
{
"eventName": "register",
"displayName": "Registration event",
"hasAutoCollect": false,
"dataOrigin": "ios",
"eventDesc": "The registration event is triggered when a user registers for the game",
"eventTag": "",
"props": [
"register_name"
]
}
],
"eventProps": [
{
"name": "register_name",
"displayName": "Registration name",
"type": "string",
"hasRequired": true,
"desc": ""
}
],
"userProps": [
{
"name": "user_name",
"displayName": "User name",
"type": "string",
"updateType": "user_set",
"desc": "",
"propTag": ""
}
],
"commonEventProps": [
{
"name": "#device_id",
"displayName": "Device ID",
"type": "string",
"hasRequired": true,
"desc": ""
}
]
}
Parameter nameExample valueParameter typeRequiredDescription
projectId100IntegerYesProject ID
events-ListNoEvent information
events.eventNameregisterStringYesEvent name
events.displayNameRegistration eventStringYesEvent display name
events.hasAutoCollectfalseBooleanNoWhether the event is auto-collected. Defaults to no
events.dataOriginiosStringNoData source. The data source is the value of the #lib field in the raw data. If there is no #lib, the source is Other
events.eventDescThe registration event is triggered when a user registers for the gameStringNoEvent description
events.eventTagStringNoEvent tag
events.propsregister_nameListNoEvent property list, a collection of event property names
eventProps-ListNoEvent property information
eventProps.nameregister_nameStringYesEvent property name. Required
eventProps.displayNameRegistration nameStringYesEvent property display name
eventProps.typestringStringYesEvent property type. There are five types: string, number, datetime, bool, and array
eventProps.hasRequiredtrueBooleanNoDefaults to true
eventProps.descStringNoEvent property description
userProps-ListNoUser property information
userProps.nameuser_nameStringYesUser property name
userProps.displayNameUser nameStringYesUser property display name
userProps.typestringStringYesUser property type. There are five types: string, number, datetime, bool, and array
userProps.updateTypeuser_setStringNoUser property update method. There are three types: user_setOnce, user_set, and user_add
userProps.descStringNoUser property description
userProps.propTagStringNoUser property tag
commonEventProps-ListNoSuper property information
commonEventProps.name#device_idStringYesEvent property name
commonEventProps.displayNameDevice IDStringYesEvent property display name
commonEventProps.typestringStringYesEvent property type. There are five types: string, number, datetime, bool, and array
commonEventProps.hasRequiredtrueBooleanNoDefaults to true
commonEventProps.descStringNoEvent property description

Success response example

{
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -3004,
"return_message": "Invalid project"
}
Parameter nameExample valueParameter typeDescription
return_code-3004IntegerReturn code
return_messageInvalid projectStringReturn message

8. Save tracking items​

Note

Unlike the add API, this API also supports updating existing tracking properties

Endpoint URL

/open/track-save?token=xxx

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key

Request body parameters

{
"projectId": 100,
"events": [
{
"eventName": "register",
"displayName": "Registration event",
"hasAutoCollect": false,
"dataOrigin": "ios",
"eventDesc": "The registration event is triggered when a user registers for the game",
"eventTag": "",
"props": [
"register_name"
]
}
],
"eventProps": [
{
"name": "register_name",
"displayName": "Registration name",
"type": "string",
"hasRequired": true,
"desc": ""
}
],
"userProps": [
{
"name": "user_name",
"displayName": "User name",
"type": "string",
"updateType": "user_set",
"desc": "",
"propTag": ""
}
],
"commonEventProps": [
{
"name": "#device_id",
"displayName": "Device ID",
"type": "string",
"hasRequired": true,
"desc": ""
}
]
}
Parameter nameExample valueParameter typeRequiredDescription
projectId100IntegerYesProject ID
events-ListNoEvent information
events.eventNameregisterStringYesEvent name
events.displayNameRegistration eventStringYesEvent display name
events.hasAutoCollectfalseBooleanNoWhether the event is auto-collected. Defaults to no
events.dataOriginiosStringNoData source. The data source is the value of the #lib field in the raw data. If there is no #lib, the source is Other
events.eventDescThe registration event is triggered when a user registers for the gameStringNoEvent description
events.eventTagStringNoEvent tag
events.propsregister_nameListNoEvent property list, a collection of event property names
eventProps-ListNoEvent property information
eventProps.nameregister_nameStringYesEvent property name. Required
eventProps.displayNameRegistration nameStringYesEvent property display name
eventProps.typestringStringYesEvent property type. There are five types: string, number, datetime, bool, and array
eventProps.hasRequiredtrueBooleanNoDefaults to true
eventProps.descStringNoEvent property description
userProps-ListNoUser property information
userProps.nameuser_nameStringYesUser property name
userProps.displayNameUser nameStringYesUser property display name
userProps.typestringStringYesUser property type. There are five types: string, number, datetime, bool, and array
userProps.updateTypeuser_setStringNoUser property update method. There are three types: user_setOnce, user_set, and user_add
userProps.descStringNoUser property description
userProps.propTagStringNoUser property tag
commonEventProps-ListNoSuper property information
commonEventProps.name#device_idStringYesEvent property name
commonEventProps.displayNameDevice IDStringYesEvent property display name
commonEventProps.typestringStringYesEvent property type. There are five types: string, number, datetime, bool, and array
commonEventProps.hasRequiredtrueBooleanNoDefaults to true
commonEventProps.descStringNoEvent property description

Success response example

{
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -3004,
"return_message": "Invalid project"
}
Parameter nameExample valueParameter typeDescription
return_code-3004IntegerReturn code
return_messageInvalid projectStringReturn message

9. Edit tracking items​

Note

Provide the exact values of the other fields that you are not updating, because the data is updated as a whole

Endpoint URL

/open/track-update?token=xxx

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key

Request body parameters

{
"projectId": 2,
"targetName": "buy_shopitem",
"event": {
"eventName": "buy_shopitem",
"displayName": "testName",
"eventTag": "testTag",
"eventDesc": "12",
"props": [
"#app_version"
]
},
"deleteProps": [
{
"displayName": "Carrier",
"hasReported": true,
"name": "#carrier",
"type": "string"
}
],
"eventProps": [
{
"displayName": "App version",
"hasReported": true,
"name": "#app_version",
"type": "string"
}
],
"userProps": [
{
"displayName": "Coin quantity card",
"desc": "",
"name": "coin_num",
"type": "string",
"updateType": "user_set",
"propTag": "testPropTag"
}
]
}
Parameter nameExample valueParameter typeRequiredDescription
projectId2IntegerYesProject ID
targetNamebuy_shopitemStringYesTarget name
events-List-Event information
events.eventNamebuy_shopitemStringYesEvent name
events.displayNametestNameStringYesEvent display name
events.hasAutoCollectfalseBooleanNoWhether the event is auto-collected. Defaults to no
events.dataOriginiosStringNoData source. The data source is the value of the #lib field in the raw data. If there is no #lib, the source is Other
events.eventDesc12StringNoEvent description
events.eventTagtestTagStringNoEvent tag
events.props["#app_version"]ListNoEvent property list, a collection of event property names
eventProps-List-Event property information
eventProps.name#app_versionStringYesEvent property name. Required
eventProps.displayNameApp versionStringYesEvent property display name
eventProps.typestringStringYesEvent property type. There are five types: string, number, datetime, bool, and array
eventProps.hasReportedtrueBooleanNoDefaults to true
eventProps.descStringNoEvent property description
userProps-List-User property information
userProps.namecoin_numStringYesUser property name
userProps.displayNameCoin quantity cardStringYesUser property display name
userProps.typestringStringYesUser property type. There are five types: string, number, datetime, bool, and array
userProps.updateTypeuser_setStringNoUser property update method. There are three types: user_setOnce, user_set, and user_add
userProps.descStringNoUser property description
userProps.propTagtestPropTagStringNoUser property tag
commonEventProps-List-Super property information
commonEventProps.name#device_idStringYesEvent property name
commonEventProps.displayNameDevice IDStringYesEvent property display name
commonEventProps.typestringStringYesEvent property type. There are five types: string, number, datetime, bool, and array
commonEventProps.hasReportedtrueBooleanNoDefaults to true
commonEventProps.descStringNoEvent property description
deleteProps-ListNoEvent properties to delete completely
deleteProps.name#carrierStringYesEvent property name
deleteProps.displayNameCarrierStringYesEvent property display name
deleteProps.typestringStringYesEvent property type. There are five types: string, number, datetime, bool, and array
deleteProps.hasReportedtrueBooleanNoDefaults to true
deleteProps.descStringNoEvent property description

Success response example

{
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -3004,
"return_message": "Invalid project"
}
Parameter nameExample valueParameter typeDescription
return_code-3004IntegerReturn code
return_messageInvalid projectStringReturn message

10. Upload a tracking plan​

Note

If the project already has a plan, the existing plan is deleted and a new one is created

Endpoint URL

/open/track-upload?token=xxx

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key

Request body parameters

{
"projectId": 0,
"events": [
{
"eventName": "register",
"displayName": "Registration event",
"hasAutoCollect": false,
"dataOrigin": "ios",
"eventDesc": "The registration event is triggered when a user registers for the game",
"eventTag": "General",
"props": ["register_name"]
}
],
"eventProps": [
{
"name": "register_name",
"displayName": "Registration name",
"type": "string",
"hasRequired": true,
"desc": ""
}
],
"userProps": [
{
"name": "user_name",
"displayName": "User name",
"type": "string",
"updateType": "user_set",
"desc": "",
"propTag": ""
}
],
"commonEventProps": [
{
"name": "#device_id",
"displayName": "Device ID",
"type": "string",
"hasRequired": true,
"desc": ""
}
]
}
Parameter nameExample valueParameter typeRequiredDescription
projectId100IntegerYesProject ID
events-ListNoEvent information
events.eventNameregisterStringYesEvent name
events.displayNameRegistration eventStringYesEvent display name
events.hasAutoCollectfalseBooleanNoWhether the event is auto-collected. Defaults to no
events.dataOriginiosStringNoData source. The data source is the value of the #lib field in the raw data. If there is no #lib, the source is Other
events.eventDescThe registration event is triggered when a user registers for the gameStringNoEvent description
events.eventTagGeneralStringNoEvent tag
events.propsregister_nameStringNoEvent property list, a collection of event property names
eventProps-ListNoEvent property information
eventProps.nameregister_nameStringYesEvent property name. Required
eventProps.displayNameRegistration nameStringYesEvent property display name
eventProps.typestringStringYesEvent property type. There are five types: string, number, datetime, bool, and array
eventProps.hasRequiredtrueBooleanNoWhether required. Defaults to true
eventProps.descStringNoEvent property description
userProps-ListNoUser property information
userProps.nameuser_nameStringYesUser property name
userProps.displayNameUser nameStringYesUser property display name
userProps.typestringStringYesUser property type. There are five types: string, number, datetime, bool, and array
userProps.updateTypeuser_setStringNoUser property update method. There are three types: user_setOnce, user_set, and user_add
userProps.descStringNoUser property description
userProps.propTagStringNoUser property tag
commonEventProps-ListNoSuper property information
commonEventProps.name#device_idStringYesEvent property name
commonEventProps.displayNameDevice IDStringYesEvent property display name
commonEventProps.typestringStringYesEvent property type. There are five types: string, number, datetime, bool, and array
commonEventProps.hasRequiredtrueBooleanNoWhether required. Defaults to true
commonEventProps.descStringNoEvent property description

Success response example

{
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -3004,
"return_message": "Invalid project"
}

11. Delete the tracking plan​

Endpoint URL

/open/track-delete?token=xxx&projectId=100

Request method

GET

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId100IntegerYesProject ID

Success response example

{
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -3004,
"return_message": "Invalid project"
}
Parameter nameExample valueParameter typeDescription
return_code-3004IntegerReturn code
return_messageInvalid projectStringReturn message

12. Delete tracking items​

Note
  1. When you delete an event, the entire event and its bindings to event properties are deleted
  2. When you delete an event property, its bindings to all events are deleted

Endpoint URL

/open/track-delete-item?token=xxx

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key

Request body parameters

{
"projectId": 0,
"events": [
"login_in"
],
"eventPropNames": [
"register_name"
],
"userPropNames": [
"user_name"
],
"commonEventPropNames": [
"#device_id"
]
}
Parameter nameExample valueParameter typeRequiredDescription
projectId100IntegerYesProject ID
events["login_in"]ListNoEvent name list
eventPropNames["register_name"]ListNoEvent property name list
userPropNames["user_name"]ListNoUser property name list
commonEventPropNames["#device_id"]ListNoSuper property name list

Success response example

{
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -3004,
"return_message": "Invalid project"
}
Parameter nameExample valueParameter typeDescription
return_code-3004IntegerReturn code
return_messageInvalid projectStringReturn message

Was this page helpful?