Page

Explaining the capabilities of page tracking that supports knowing your users actions better while interacting with your website.

The page call lets you record when a user views a page of your website, along with any optional properties about the page.

Below is a complete sample of the page API event:

lmSMTObj.page(”home”, {
	"path": "/academy/",
	"title": "Analytics Academy",
	"url": "https://lemnisk.co"
}, {
	"trackerId": "6791c47a-0178-47bc-8711-86a2c67b2255"	
}, function() {})

Sample page event payload:

{
  "id": "viz_6139c51ee9662",
  "userId": "6791c47a-0178-47bc-8711-86a2c67b2255",
  "otherIds": {
    "_fbp": 1631176031249,
    "_fbc": "6791c47a-0178-47bc-8711-86a2c67b2255",
    "_ga": "1631176031249",
    "trackerId" : "6791c47a-0178-47bc-8711-86a2c67b2255"
  },
  "context": {
    "library": {
      "name": "javascript",
      "version": "0.01"
    },
    "userAgent": {
      "deviceType": "DESKTOP",
      "osType": "Linux",
      "osVersion": "Linux",
      "browser": "Chrome",
      "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36"
    },
    "ip": "108.0.78.21",
    "utm": {
      "campaign": "TPS Innovation Newsletter",
      "source": "Newsletter",
      "medium": "email",
      "term": "tps reports",
      "content": "image link"
    }
  },
  "name": "home",
  "messageId": "ajs-f8ca1e4de5024d9430b3928bd8ac6b96",
  "properties": {
    "path": "/academy/",
    "referrer": "",
    "title": "Analytics",
    "search": " ",
    "url": "https://lemnisk.co"
  },
  "receivedAt": "2015-12-12T19:11:01.266Z",
  "sentAt": "2015-12-12T19:11:01.169Z",
  "timestamp": "2015-12-12T19:11:01.249Z",
  "type": "page",
  "originalTimestamp": "2015-12-12T19:11:01.152Z",
  "writeKey": "aUL2rZghe5jHvjWh"
}

Last updated