personalizer.io Documentation

Help Page Home

POST v1/ActivityLogs

Log user's activity.

Request Information

URI Parameters

None.

Body Parameters

Activity info.

Activity
NameTypeDescriptionComments
Source ActivitySource

SourcePage HostPage

SourceReference string

Event UserEvent

Required

ReferenceIdentifier string

IntData integer

Set proper data when applicable. (e.g. When loggin an ItemTimeSpend/CollectionTimeSpend event, total time spent on item/collections page (in seconds) goes here.)

UserAgent string

ScreenResolution string

Request Formats

application/json, text/json

Sample:
{
  "Source": "StandardNavigation",
  "Event": "CollectionView",
  "ReferenceIdentifier": "Reference identifier",
  "MoneyData": 1.0,
  "IntData": 30607,
  "UserAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0",
  "ScreenResolution": "1280 x 1024"
}

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true