You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/spec/page.md
+49-49Lines changed: 49 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,55 @@ Here's the payload of a typical `page` call with most [common fields](/docs/conn
23
23
}
24
24
```
25
25
26
+
And here's the corresponding JavaScript event that would generate the above payload. If you're using Segment's JavaScript library, the page name and URL are automatically gathered and passed as properties into the event payload:
27
+
28
+
```js
29
+
analytics.page("Retail Page","Home");
30
+
```
31
+
{% include content/syntax-note.md %}
32
+
33
+
Beyond the common fields, the `page` call takes the following fields:
34
+
35
+
<table>
36
+
{% include content/spec-table-header.md %}
37
+
{% include content/spec-field-page-category.md %}
38
+
{% include content/spec-field-page-name.md %}
39
+
{% include content/spec-field-page-properties.md %}
40
+
</table>
41
+
42
+
43
+
## Example
44
+
45
+
Here's a complete example of a `page` call:
46
+
47
+
```json
48
+
{
49
+
"anonymousId": "507f191e810c19729de860ea",
50
+
"channel": "browser",
51
+
"context": {
52
+
"ip": "8.8.8.8",
53
+
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
@@ -91,55 +140,6 @@ Here's the payload of a typical `page` call with most [common fields](/docs/conn
91
140
</div>
92
141
</div>
93
142
94
-
And here's the corresponding JavaScript event that would generate the above payload. If you're using Segment's JavaScript library, the page name and URL are automatically gathered and passed as properties into the event payload:
95
-
96
-
```js
97
-
analytics.page("Retail Page","Home");
98
-
```
99
-
{% include content/syntax-note.md %}
100
-
101
-
Beyond the common fields, the `page` call takes the following fields:
102
-
103
-
<table>
104
-
{% include content/spec-table-header.md %}
105
-
{% include content/spec-field-page-category.md %}
106
-
{% include content/spec-field-page-name.md %}
107
-
{% include content/spec-field-page-properties.md %}
108
-
</table>
109
-
110
-
111
-
## Example
112
-
113
-
Here's a complete example of a `page` call:
114
-
115
-
```json
116
-
{
117
-
"anonymousId": "507f191e810c19729de860ea",
118
-
"channel": "browser",
119
-
"context": {
120
-
"ip": "8.8.8.8",
121
-
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
0 commit comments