This audience type is useful for tracking events such as form submissions and seamless for single-page applications.
When to use an User Event Audience
- JavaScript buttons
- Tracking conversions that need to be completed on a separate website (common with event promotion)
User Events Supported
- Homepage
- Product search
- Page view
- Cart
- Conversion
Pixel Requirements
The updated pixel should be used in order to use the User Event Audience. The track function in the updated pixel should be triggered by the desired event we support. The best practice here will depend on the existing website structure. Consult your technical team for any questions.
Create a User Event Audience
If you have the V2 pixel implemented and you are creating a User Event audience for the events we support - Homepage, Product search, Page view, Cart, or Conversion, you can simply follow the steps below to create the segment and our V2 pixel will automatically trigger the _track function on the page where the event is located.
- Go to the left navigation menu and click Website under Audiences.
- Under the Audience Type drop-down, select User Event.
- Choose the User Event Type.
- Type your Audience Name.
- In the URL pattern field, type in your page URL if you wish to specify. It is not a mandatory field, our system will locate the event button based on the User Event Type you have selected (in step 3).
- Mark the checkbox ‘This is a conversion audience’ if you wish to specify this as a Conversion Audience (track buyers for example).
- Specify if this is a conversion audience.
- Enter your desired Duration: the number of days that someone remains an active part of the audience.
- When you're finished, click Create Audience.
If you have the V2 pixel implemented and you are creating a User Event audience for events we do not support (any event apart from Homepage, Product search, Page view, Cart, or Conversion), then you will need to manually prepare the code and place it in the event button source code. Please follow the steps below:
- Go to the Website Audiences tab in the left navigation menu.
- Click New Audience.
- Under Audience Type, select URL Visited.
- Type your Audience Name, then click ‘Copy ID to clipboard’. This pulls a unique ID to be used as the URL rule placeholder for this audience.
- Mark the checkbox ‘This is a conversion audience’ if you wish to specify this as a Conversion Audience (track buyers for example).
- In URL pattern field, type a plus (+) and then paste the copied ID.
- Enter your desired duration: the number of days that someone remains an active part of the audience.
- Click Create Audience.
Prepare the Script
Below is the script, called an Event Pixel, that you will need to tie to your event audience.
Update the event pixel by replacing in quotes ("Enter Segment ID here") with the unique ID we generated for you (Step 4 from above). Once you have prepared the code by entering your unique segment ID, copy the code and place it in the source code of the event button.
<script type="text/javascript">
try{
__adroll.track("pageView", {"segment_name":"Enter Segment ID here"})
} catch(err) {}
</script>
Once you have prepared the code by entering your unique segment ID, copy the code and place it in the source code of the event button.
Exclude an Audience
Excluding an audience from a campaign means that we won't show ads to people in that audience. To exclude an existing audience. If you wish to exclude this audience segment from the campaigns so that the ads will not be shown to these users, check out Can I exclude an audience segment from my campaign?