Events
Pageview
Tracking users navigating your application
The pageview
event category enables you to understand how a user is navigating your product, and what pages they are viewing more than others.
The user is required, but the customer is optional. A user undertakes pageview
events, but pageviews are not necessarily bound to a customer account.
Make sure to include the customer id whenever the page being viewed is associated with a customer account.
Event format
Identify pageview events with category=pageview
.
Sending a pageview
{
"category": "pageview",
"user": {
"id": "457"
},
"customer": {
"id": "124"
},
"attributes": {
"source": {
"url": "https://big.company.com/learn/to/waltz",
"referrer": "https://a.shared.link/wow",
"page_title": "10 easy steps to dancing the waltz!"
},
},
}