Migration Guide
Use this document if you intend to migrate from the old webhooks format to the new data format (version 2).
Webhooks will continue to send along both sets of keys until April 6th, 2015. For any strings which have become objects, the old format will be sent until April 6th, 2015.
The following changes affect all API calls which contain these fields:
- added
receivedAttimestamp field - added
sentAttimestamp field actionfield is now lowercased and calledtypesessionIdfields are now calledanonymousId
The following changes affect only the options or context object. The standard naming going forward will be context.
optionsis nowcontextoptions.providersis now top-levelintegrationslibraryis now anObjectlibrarynow containsnameandversionscreenWidthis nowscreen.widthscreenHeightis nowscreen.heightappReleaseVersionis nowapp.versionappVersionis nowapp.buildlibrary-versionis nowlibrary.versiondeviceModelis nowdevice.modeldeviceManufactureris nowdevice.manufactureridForAdvertiseris nowdevice.idfaosVersionis nowos.versionoptions.osis now anObject
The following changes only affect the Alias method.
fromis nowpreviousIdtois nowuserId
If you're using node, you can use our segmentio/transform-legacy library to convert your messages into the version 1 format. This is the same library that will be integrated into our webhooks until April 6th, 2015.