Retargeting / Segment Targeting
Overview
Segment targeting is a form of user-level targeting that involves adding a user to a specific segment and then setting up campaigns that target just users from that segment. One of the major use cases of this is retargeting, where you target someone who has already visited another web property / webpage.
It can be done in one of two ways:
Type | Situation | How It Works |
---|---|---|
Ados.js Method | Advertiser wants to target someone who has visited their site when that person is on YOUR site | Advertiser drops a retargeting pixel on their site that updates the user's UserDB record if hit. Then you can target this segment |
API Method | You want to target users who have visited another of your web properties, a specific page, or some other reason for building different segments | You create a segment, then ping UserDB's API Endpoint to add a user to it when they undergo the action. Then you can target this segment |
Users stay in their retargeting segment for approximately 90 days
Ados.js Instructions
With retargeting, advertisers place a pixel on THEIR site and then can target those users when they appear on YOUR website or app.
- First create the pixel (see below)
- Have the Advertiser put the pixel somewhere on their site. It could be on every page, just the homepage, a specific product page, checkout, etc. When a person lands on a page with the pixel, their UserDB record gets updated that they are in that segment
- Create a Flight/Ad targeting this segment
This method requires you to have a JavaScript Ados.js integration. If you use the Decision API, this form of retargeting will not be doable.
Manually Creating the Retargeting Pixel (Ados.js Method)
You'll want to give each advertiser their own pixel. Most will need only one, but you could provide multiple if needed.
The pixel template is: https://e-{networkId}.adzerk.net/udb/{networkId}/rt/{advertiserID}/{segment}/i.gif
.
This URL is composed of three sections you will need to fill-out.
Property | Description |
---|---|
NetworkID (integer) | This is your Network ID |
AdvertiserID (integer) | This is the Advertiser's specific Advertiser ID |
Segment (integer) | This is an integer you choose to denote the Retargeting segment. You could have multiple if you wanted to track multiple pages. That said, this is rare and most advertisers will just want a single pixel. In this case, you can just set segment to 1 |
Example pixel would be: https://e-123.adzerk.net/udb/123/rt/6700/1/i.gif
.
You'd then ask the advertiser to place this wherever they want. When a user visits that page, the pixel fires and updates their UserDB record.
API Instructions
You can also add a user directly to a segment using the Retargeting API Endpoint, which updates the user's UserDB record. This requires the user of a persistent userkey
attached to that user.
Since this is tied to an Advertiser ID, you'll want to make sure you are set up as an advertiser in the system.
An alternative method is to use Interest Targeting. For instance, if you want to target people who have visited your shopping cart, you could:
- Create a retargeting segment of
1
, and ping the Retargeting API Endpoint when they visit it - Create an
interest
ofcart
, and ping the Interest API Endpoint when they visit it
Both can then be targeted using Custom Targeting and Reserved Keys.
One reason you may prefer (or not prefer) the retargeting segment is that users stay there approximately 90 days. So, if you like the idea of users eventually dropping out of the segment automatically, that may be a preferred path.
Targeting These Segments
When you create a Flight/Ad in the UI or Create Flight/Create Ads endpoints, you'll want to use Reserved Keys to build a segment around $user.retargetingSegments
.
In the query, the string should look like this: $user.retargetingSegments.b42 = 1
.
Here, b42
refers to the Advertiser ID. If the Advertiser's ID is "676", it would be $user.retargetingSegments.b676
. "1" is the code of the retargeting segment.
For instance:
{
"CampaignId":1234,
"PriorityId":1325,
"Name":"Retargeting - Homepage",
"StartDateISO":"2017-05-01T00:00:00.00.0000000",
"GoalType": 1,
"CustomTargeting":"$user.retargetingSegments.b42 = 1"
}
Viewing Retargeting Segments
If you use the UserDB Read User Endpoint, you can pull and filter the resulting data by the retargetingSegments
field to see all the Retargeting Segments you have created.
The system does not contain a friendly name for the segments, so you'll have to keep track that, say,
Segment 1
refers to the shopping cart.
Updated 5 months ago