Created
May 27, 2015 21:08
-
-
Save peterzawistowicz/1d159ab27e38ece7bc88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ _id: ObjectId(), | |
geoCode: 1, // used to localize write operations | |
sessionId: “2373BB…", // tracks activities across sessions | |
device: { id: “1234", // tracks activities across different user devices | |
type: "mobile/iphone", | |
userAgent: "Chrome/34.0.1847.131" | |
} | |
type: "VIEW|CART_ADD|CART_REMOVE|ORDER|…", // type of activity | |
itemId: “301671", // item that was viewed, added to cart, etc. | |
sku: “730223104376", //item sku | |
order: { id: “12520185", // info about orders associated with the activity | |
… }, | |
location: [ -86.95444, 33.40178 ], //user’s location when the activity was performed | |
tags: [ "smartphone", "iphone", … ], // associated tags | |
timeStamp: Date("2014/04/01 …”) // time the activity was performed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment