Open
Description
What article on segment.com/docs is affected?
https://segment.com/docs/connections/spec/page/
What part(s) of the article would you like to see updated?
Hello there 👋
First of all, thank you for your incredibly detailed and well-written API documentation. My issue is just a small improvement. In the article about the Page API you use an example for the following JavaScript event:
analytics.page("Retail Page","Home");
With the API
page(category, name, properties = {})
But in the example payload, the category is nowhere to find:
{
"type": "page",
"name": "Home",
"properties": {
"title": "Welcome | Initech",
"url": "http://www.example.com"
}
// category missing :(
}
It would be nice, if you could add the category
to the example payloads so people know if it's a top-level property or part of another structure
best regards
Sebatian
Additional information
No response