Logging Standard Events

Prev Next
Post
/event/standard

This endpoint is used to log standard events i.e. Commerce, Content, User Lifecycle.

Body parameters
Collapse all
object
branch_key
string Required

The Branch Key of the originating app obtained in your Account Settings

Examplekey_live_xxxx
name
string Required

The name of the event to log. Can be one of the following depending on which type of report you are running. Here are the list of possible combinations:

  • Commerce:
    • ADD_TO_CART
    • ADD_TO_WISHLIST
    • VIEW_CART
    • INITIATE_PURCHASE
    • ADD_PAYMENT_INFO
    • CLICK_AD
    • PURCHASE
    • SPEND_CREDITS
    • VIEW_AD
  • Content:
    • SEARCH
    • VIEW_ITEM
    • VIEW_ITEMS
    • RATE
    • SHARE
    • INITIATE_STREAM
    • COMPLETE_STREAM
  • User Lifecycle:
    • COMPLETE_REGISTRATION
    • COMPLETE_TUTORIAL
    • ACHIEVE_LEVEL
    • UNLOCK_ACHIEVEMENT
    • INVITE
    • LOGIN
    • START_TRIAL
    • SUBSCRIBE
Valid values[ "ADD_TO_CART", "ADD_TO_WISHLIST", "CLICK_AD", "VIEW_CART", "INITIATE_PURCHASE", "ADD_PAYMENT_INFO", "PURCHASE", "SPEND_CREDITS", "SEARCH", "VIEW_ITEM", "VIEW_ITEMS", "RATE", "SHARE" ]
ExamplePURCHASE
customer_event_alias
string

The event alias as defined by you; used in addition to the event name defined above.

Examplemy custom alias
user_data
object (user_data_standard) Required
os
string

One of the following operating system e.g. Android, iOS,MAC_OS,LINUX,WINDOWS etc.

ExampleAndroid
os_version
string

The version of the operating system.

Example12.4.0
environment
string

usually FULL_APP

ExampleFULL_APP
aaid
string

The Android/Google advertising ID.

Exampleabcdabcd-0123-0123-00f0-000000000000
android_id
string

Android hardware ID

Examplea12300000000
idfa
string

iOS advertising ID

idfv
string

iOS vendor ID

limit_ad_tracking
boolean

true if the partner has opted to not be tracked by advertisers

ExampleFalse
user_agent
string

The user agent of the browser or app where the event occurred. Usually associated with a webview.

ExampleMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)
browser_fingerprint_id
string

Branch internal-only field for tracking browsers.

Example00000000
http_origin
string

The current page url where Web SDK logged web session start.

Examplehttp_origin
http_referrer
string

The referral url that led to the current page where Web SDK logged web session start.

developer_identity
string

The developer-specified identity for a user.

Exampleuser123
country
string

The country code of the user, usually based on device settings or user agent string.

ExampleUS
language
string

The language code of the user, usually based on device settings or user agent string.

Exampleen
ip
string

The ip address for the device where the event occurred

Example000.000.0.0
local_ip
string

Android only - local ip of the device

Example000.000.0.0
brand
string

The brand of the device

ExampleLGE
randomized_device_token
string

Branch internal-only field for tracking devices.

Example00000000
app_version
string

The app version downloaded by the user.

Example1.0.0
model
string

The model of the device.

ExampleNexus 5X
screen_dpi
integer

The screen's DPI.

Example420
screen_height
integer

The screen's height.

Example1794
screen_width
integer

The screen's width.

Example1080
dma_eea
boolean

Whether European regulations, including the DMA, apply to this user and conversion. Required if EU regulations apply to this user.

ExampleTrue
dma_ad_personalization
boolean

Whether end user has granted or denied ads personalization consent. Required if dma_eea is set to true (i.e., EU regulations apply to this user).

ExampleTrue
dma_ad_user_data
boolean

Whether end user has granted or denied consent for 3P transmission of user level data for ads. Required if dma_eea is set to true (i.e., EU regulations apply to this user).

ExampleTrue
custom_data
object
event_data
object (event_data_standard)
content_items
Array of object (content_items_standard)
object
Responses
200
400
429

Ok