|
| 1 | +--- |
| 2 | +title: Podscribe (Actions) Destination |
| 3 | +id: 643fdecd5675b7a6780d0d67 |
| 4 | +beta: true |
| 5 | +--- |
| 6 | + |
| 7 | +[Podscribe](https://podscribe.com/){:target="\_blank”} measures the effectiveness of podcast advertising. Through integrations with podcast hosting providers, matches downloads with on-site actions, providing advertisers household-level attribution. |
| 8 | + |
| 9 | +{% include content/beta-note.md %} |
| 10 | + |
| 11 | +## Getting started |
| 12 | + |
| 13 | +1. From the Segment web app, navigate to **Connections > Catalog**. |
| 14 | +2. Search for "Podscribe", select it, and choose which of your sources to connect the destination to. |
| 15 | + |
| 16 | +Once you start sending data to the Podscribe's Destination it will take up to 20 minutes to appear in the Podscribe postbacks page. |
| 17 | + |
| 18 | +{% include components/actions-fields.html %} |
| 19 | + |
| 20 | +## Page |
| 21 | + |
| 22 | +If you're not familiar with the Segment Specs, take a look to understand what the [Page method](/docs/connections/spec/page/) does. An example call would look like: |
| 23 | + |
| 24 | +```js |
| 25 | +analytics.page(); |
| 26 | +``` |
| 27 | + |
| 28 | +Page calls will be sent to Podscribe as a View event. |
| 29 | + |
| 30 | +Podscribe is an attribution platform, and as such, Podscribe needs more context about the visitor than just a User ID. Analytics.js [automatically collects context fields](/docs/connections/spec/common/#context-fields-automatically-collected). Podscribe requires certain context fields and properties for Page calls. Below is an example of a raw JSON payload that contains the minimum requirements. |
| 31 | + |
| 32 | +```js |
| 33 | +{ |
| 34 | + "type": "page", |
| 35 | + "context": { |
| 36 | + "ip": "111.111.111.111", |
| 37 | + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko Chrome/118.0.0.0 Safari/537.36" |
| 38 | + }, |
| 39 | + "properties": { |
| 40 | + "referrer": "", |
| 41 | + "url": "https://url.com" |
| 42 | + }, |
| 43 | + "timestamp": "2023-11-05T01:00:00.000Z", |
| 44 | + "userId": "3212" |
| 45 | +} |
| 46 | +``` |
| 47 | + |
| 48 | +For Page events Podscribe requires: |
| 49 | +- A `context` object that contains a `userAgent` and an `ip` field |
| 50 | +- A `properties` object that contains a `referrer` and a `url` field |
| 51 | + |
| 52 | +You'll see these in the Page event's raw JSON payload above. |
| 53 | + |
| 54 | +The `context` and `properties` objects are required, along with the fields in them. If you're using Segment server-side you must send these attributes. |
| 55 | + |
| 56 | +## Track |
| 57 | + |
| 58 | +If you're not familiar with the Segment Specs, take a look to understand what the [Track method](/docs/connections/spec/track/) does. An example call would look like: |
| 59 | + |
| 60 | +```js |
| 61 | +analytics.track("Order Completed", { |
| 62 | + order_id: "50314b8e9bcf000000000000", |
| 63 | + total: 27.5, |
| 64 | + coupon: "hasbros", |
| 65 | + currency: "USD", |
| 66 | +}); |
| 67 | +``` |
| 68 | + |
| 69 | +Track calls will be mapped to Podscribe events. Podscribe supports the following from the Segment Spec: |
| 70 | + |
| 71 | +- [Signed Up](/docs/connections/spec/b2b-saas/#signed-up) as `signup` |
| 72 | +- [Order Completed](/docs/connections/spec/ecommerce/v2/#order-completed) as `purchase` |
| 73 | + |
| 74 | +For Track events, Podscribe requires: |
| 75 | +- A `context` object that contains a `userAgent` |
| 76 | +- An `ip` Podscribe also requires a `page` object that contains a `referrer` and a `url` field |
| 77 | + |
| 78 | +Analytics.js [automatically collects context fields](/docs/connections/spec/common/#context-fields-automatically-collected). Podscribe requires certain context fields for Track calls. Below is an example of a raw JSON payload that contains the minimum requirements. |
| 79 | + |
| 80 | +```js |
| 81 | +{ |
| 82 | + "type": "track", |
| 83 | + "context": { |
| 84 | + "ip": "1.2.3.4", |
| 85 | + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko Chrome/118.0.0.0 Safari/537.36" |
| 86 | + "page": { |
| 87 | + "url": "https://url.com", |
| 88 | + "referrer": "" |
| 89 | + } |
| 90 | + }, |
| 91 | + "event": "Test Event Name", |
| 92 | + "userId": "test-user-xip99", |
| 93 | + "timestamp": "2023-11-05T01:00:00.000Z", |
| 94 | + "properties": {} |
| 95 | +} |
| 96 | +``` |
0 commit comments