Skip to content

[Content]: Category is missing in the "payload of a typical Page call" #6178

Open
@SebastianFranze

Description

@SebastianFranze

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

Metadata

Metadata

Assignees

Labels

contentWhen the bug is about content that needs to get fixedstaletriage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions