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
By setting up StackAdapt as a Segment destination, your Segment events will be forwarded to [StackAdapt](https://www.stackadapt.com/){:target="\_blank"}. This allows you to generate retargeting and lookalike audiences, track conversions, and measure return on ad spend using your Segment events - bypassing the need to install the StackAdapt pixel on your website and write code to send events to StackAdapt.
13
+
Setting up [StackAdapt](https://www.stackadapt.com/){:target="\_blank"} as a Segment destination forwards your Segment events to StackAdapt. This allows you to generate retargeting and lookalike audiences, track conversions, and measure return on ad spend using your Segment events - bypassing the need to install the StackAdapt pixel on your website and write code to send events to StackAdapt.
12
14
13
15
This destination is maintained by StackAdapt. For any issues with the destination, please [submit a ticket to StackAdapt's support team](https://support.stackadapt.com/hc/en-us/requests/new?ticket_form_id=360006572593){:target="\_blank"}.
14
16
@@ -17,11 +19,11 @@ This destination is maintained by StackAdapt. For any issues with the destinatio
17
19
### Getting your StackAdapt Universal Pixel ID
18
20
19
21
1. Log in to your StackAdapt account and navigate to the Pixels page.
20
-
2.Above the list of pixels, click**Install StackAdapt Pixel**.
22
+
2.Click**Install StackAdapt Pixel**.
21
23
22
24

23
25
24
-
3. In the instructions that appear, copy the universal pixel ID from the code snippet. Below is an example of a code snippet where the universal pixel ID is `sqQHa3Ob1hFi__2EcYYVZg1`.
26
+
3. In the instructions that appear, copy the Universal Pixel ID from the code snippet. For example, the universal pixel ID in this code snippet is `sqQHa3Ob1hFi__2EcYYVZg1`.
25
27
26
28

27
29
@@ -32,13 +34,13 @@ This destination is maintained by StackAdapt. For any issues with the destinatio
32
34
3. Click **Add Destination**.
33
35
4. Select an existing source to connect to the StackAdapt destination.
34
36
5. Give the destination a name.
35
-
6. On the Settings screen, provide your StackAdapt Universal Pixel ID. This can be found on the Pixels page in StackAdapt as described above.
37
+
6. On the Settings screen, provide your StackAdapt Universal Pixel ID. This can be [found on the Pixels page in StackAdapt](#getting-your-stackadapt-universal-pixel-id).
36
38
7. Toggle on the destination using the **Enable Destination** toggle.
37
39
8. Click **Save Change**.
38
40
39
41
### StackAdapt Pixel setup
40
42
41
-
Segment events that are forwarded to StackAdapt can be used to track ad conversions, and to generate retargeting and lookalike audiences. Please review the StackAdapt documentation for the general setup of these if you are not already familiar:
43
+
Segment events that are forwarded to StackAdapt can be used to track ad conversions, and to generate retargeting and lookalike audiences. Review the StackAdapt documentation for the general setup of these if you are not already familiar:
@@ -47,8 +49,8 @@ Segment events that are forwarded to StackAdapt can be used to track ad conversi
47
49
Setup of conversion events, retargeting audiences, and lookalike audiences that fire on Segment events is largely the same as the setup in the StackAdapt documentation, with a few caveats:
48
50
49
51
1. You **must** select "Universal Pixel" as the pixel type. This is because the StackAdapt destination in Segment uses your Universal Pixel ID to send events to StackAdapt.
50
-
2. There is no need to install the StackAdapt pixel on your website as instructed in the "Installation" step, since Segment will forward events to StackAdapt that would normally be tracked by the StackAdapt pixel.
51
-
3. If you choose to set up event rules, you will need to ensure that you use the event keys supported by the the StackAdapt destination as described below.
52
+
2. There is no need to install the StackAdapt pixel on your website as instructed in the "Installation" step. Segment will forward events to StackAdapt that would normally be tracked by the StackAdapt pixel.
53
+
3. If you choose to set up event rules, ensure that you use the event keys supported by the StackAdapt destination.
52
54
53
55
### Event rules
54
56
@@ -60,7 +62,7 @@ A Segment event fired with the code `analytics.track("User Registered")` can be
60
62
61
63
#### Ecommerce events
62
64
63
-
The StackAdapt destination also supports forwarding ecommerce fields for the purpose of creating event rules that match ecommerce events, with default mappings to properties specified in the [Segment V2 Ecommerce Event Spec](/docs/connections/spec/ecommerce/v2/) as described in the below table:
65
+
The StackAdapt destination also supports forwarding ecommerce fields for the purpose of creating event rules that match ecommerce events, with default mappings to properties specified in the [Segment v2 Ecommerce Event Spec](/docs/connections/spec/ecommerce/v2/) as described in the table:
@@ -82,7 +84,7 @@ For events that can involve multiple products, such as checkout events, StackAda
82
84
|`products.$.price`|`product_price`|
83
85
|`products.$.quantity`|`product_quantity`|
84
86
85
-
For example, to create a conversion event when an order is completed with a revenue value greater than 10, you could set up an event rule matching an `action` value of `Order Completed` and a `revenue` value greater than 10 as shown below:
87
+
For example, to create a conversion event when an order is completed with a revenue value greater than 10, you could set up an event rule matching an `action` value of `Order Completed` and a `revenue` value greater than 10:
86
88
87
89

If you are using URL rules, these will be matched whenever Segment sends an event to StackAdapt with a `url` matching the URL rule. This should be accomplished by the page event Segment automatically fires when a page is viewed, so setup of URL rules should be identical to setting up URL rules with the StackAdapt pixel.
139
141
140
-
### Conversion Tracking with Backend Events
142
+
### Conversion tracking with backend events
141
143
142
-
When you send events to Segment from your backend, which are forwarded to StackAdapt using Segment's backend SDKs, the user agent and IP address of the user who originated the event must be included in the event context for conversions to be tracked. StackAdapt uses the user agent and IP address to attribute the conversion to the correct event to a user who has interacted with your ads. Examples of how to do this can be found in the documentation for Segment's SDKs. For example, for the [Python SDK](/docs/connections/sources/catalog/libraries/server/python/#override-context-value) this can be done as follows:
144
+
When you send events to Segment from your backend, which are forwarded to StackAdapt using Segment's backend SDKs, the user agent and IP address of the user who originated the event must be included in the event context for conversions to be tracked. StackAdapt uses the user agent and IP address to attribute the conversion to the correct event to a user who has interacted with your ads. Examples of how to do this can be found in the documentation for [Segment's SDKs](/docs/connections/sources/catalog/#server). For example, for the [Python SDK](/docs/connections/sources/catalog/libraries/server/python/#override-context-value) this can be done as follows:
This is necessary when using backend SDKs but not for events sent from the frontend with `analytics.js`, because `analytics.js` automatically includes the user-agent and IP address in the event context.
153
+
This is necessary when using backend SDKs but not for events sent from the frontend with `analytics.js`, because `analytics.js` automatically includes the useragent and IP address in the event context.
152
154
153
-
### Conversion Tracking with Reverse ETL
155
+
### Conversion tracking with Reverse ETL
154
156
155
-
When sending past events to StackAdapt using a Reverse ETL tool, the user agent, IP address, event type, and either the page URL (for conversion trackers with URL rules), or the fields the event rules match on, must be included in your mappings. For example, the below mapping for a Snowflake source can be used to match a conversion tracker with an event rule that matches an `action` of `User Registered`:
157
+
When sending past events to StackAdapt using a [Reverse ETL tool](/docs/connections/reverse-etl/reverse-etl-catalog/), the user agent, IP address, event type, and either the page URL (for conversion trackers with URL rules), or the fields the event rules match on, must be included in your mappings. For example, the mapping for a Snowflake source can be used to match a conversion tracker with an event rule that matches an `action` of `User Registered`:
156
158
157
159

158
160
159
161
Rows forwarded to StackAdapt with this mapping will be matched by the `User Registered` event rule shown below:
160
162
161
163

162
164
163
-
When forwarding past events using Reverse ETL, only users who have interacted with an ad from an associated campaign within the conversion tracker's configured view-through expiry window (for impressions) or click-through expiry window (for clicks) will count as conversions. These windows can be set to up to 180 days in the conversion tracker configuration.
165
+
When forwarding past events using [Reverse ETL](/docs/connections/reverse-etl/), only users who have interacted with an ad from an associated campaign within the conversion tracker's configured view-through expiry window (for impressions) or click-through expiry window (for clicks) will count as conversions. These windows can be set to up to 180 days in the conversion tracker configuration.
0 commit comments