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/destinations/catalog/podsights/index.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,9 @@ analytics.page()
27
27
28
28
Segment sends Page events to Podsights as `view` events.
29
29
30
-
Podsights is an attribution platform, and as such, we need more context about the visitor than just a User ID. Analytics.js [automatically collects context fields](/docs/connections/spec/common/#context-fields-automatically-collected). Podsights requires certain context fields and properties for page calls. Below is an example of a raw JSON payload that contains the minimum requirements.
30
+
Podsights needs additional context for attribution, including certain fields inside the `context` and `properties` objects. Analytics.js [automatically collects these fields](/docs/connections/spec/common/#context-fields-automatically-collected), but you must provide them manually when sending events server-side.
31
+
32
+
Here’s the minimum required structure for a Page call:
31
33
32
34
```js
33
35
{
@@ -46,9 +48,9 @@ Podsights is an attribution platform, and as such, we need more context about th
46
48
```
47
49
48
50
For page events, Podsights requires a `context` object that contains a `userAgent` and an `ip` field and a `properties` object that contains a `referrer` and a `url` field.
49
-
As you can see in the page event's raw JSON payload above.
51
+
As you can see in the page event's raw JSON payload.
50
52
51
-
The `context` and `properties` object are required, along with the fields in them. If you're using Segment server-side, you must send these attributes. Otherwise, Podsights will return a `400 HTTP Error`.
53
+
If any of these requiredfields are missing (especially if you're sending events server-side), Podsights may return a `400` HTTP error.
Track calls will be mapped to Podsights events. Podsights supports the following from the Segment Spec:
67
69
68
-
69
70
*[Signed Up](/docs/connections/spec/b2b-saas/#signed-up) as `lead`
70
71
*[Product Viewed](/docs/connections/spec/ecommerce/v2/#product-viewed) as `product`
71
72
*[Product Added](/docs/connections/spec/ecommerce/v2/#product-added) as `addtocart`
72
73
*[Checkout Started](/docs/connections/spec/ecommerce/v2/#checkout-started) as `checkout`
73
74
*[Order Completed](/docs/connections/spec/ecommerce/v2/#order-completed) as `purchase`
74
75
75
-
For track events Podsights requires a `context` object that contains a `userAgent` and an `ip` Podsights also requires a `page` object that contains a `referrer` and a `url` field.
76
-
Analytics.js [automatically collects context fields](/docs/connections/spec/common/#context-fields-automatically-collected). Podsights requires certain context fields for track calls. Below is an example of a raw JSON payload that contains the minimum requirements.
76
+
Track calls must include:
77
+
78
+
- a `context` object with `userAgent` and `ip`
79
+
- a `context.page` object with `referrer` and `url`
80
+
81
+
These fields are required whether they're sent through Analytics.js or server-side. Here’s a minimum working example:
0 commit comments