Skip to content

Instantly share code, notes, and snippets.

@chrisdamba
Last active June 20, 2016 14:18
Show Gist options
  • Save chrisdamba/0f63e8d182faeaa7dfe996652d135c89 to your computer and use it in GitHub Desktop.
Save chrisdamba/0f63e8d182faeaa7dfe996652d135c89 to your computer and use it in GitHub Desktop.
{
"_id" : ObjectId("5756e3e0f32d0541149c6d6d"),
"host" : "www.mywebsite.com",
"ip" : "0.0.0.0",
"user_agents" : [
{
"sha1": "dcc0ed6139b2c38f189c9e3c978c675bf4d5ad09", // sha1 of the user agent
"user_agent" : "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0",
"created_at" : ISODate("2016-06-07T15:10:26.000Z"),
"updated_at" : ISODate("2016-06-20T12:38:53.000Z")
}
],
"created_at" : ISODate("2016-06-07T15:10:26.000Z"),
"number_visits" : 162,
"updated_at" : ISODate("2016-06-20T12:38:53.000Z"),
"referer" : [
{
"sha1": "84063d912731824c07241f459d95b77cf6be85de", // sha1 of the referer
"updated_at" : ISODate("2016-06-20T12:38:53.000Z"),
"referer" : "http://subdomain.website.net/",
"created_at" : ISODate("2016-06-20T12:38:53.000Z")
},
{
"sha1": "8a85c599e53662be5b4888b1879168b042e52adc", // sha1 of the referer
"updated_at" : ISODate("2016-06-20T12:29:32.000Z"),
"created_at" : ISODate("2016-06-20T12:29:32.000Z"),
"referer" : "https://www.google.com"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment