Skip to content

Instantly share code, notes, and snippets.

@zsy715
Last active April 18, 2019 14:40
Show Gist options
  • Save zsy715/f91c02d01974c098dd1e1e37429fcee7 to your computer and use it in GitHub Desktop.
Save zsy715/f91c02d01974c098dd1e1e37429fcee7 to your computer and use it in GitHub Desktop.
Beauty/Grooming profile update event

Braze user track event in USER_API

Event post helper class

braze.rb contains basic functionalities to interact with Braze endpoint.
Currently, we only include UserTracker module/class.

Beuty/Grooming update event: code

On beauty/grooming profile page, everytime user selects different option will trigger a request to update her/his profile. Right after new profile is updated, a post request to Braze user track endpoint will also be sent.

payload:
{
  "api_key": "",
  "events": [{
    "external_id: "", 
    "properties": {}, 
    "name": "BEAUTY_PROFILE_UPDATE_EVENT", // for grooming profile, should be "GROOMING_PROFILE_UPDATE_EVENT"
    "time": "" //ISO-8601
  }]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment