Audience Type: Event Based

Event-based audiences are based on click events rather than on pages. To create this audience type, you have to add a piece of code to the onClick attribute of your JavaScript button. This audience type is also useful for tracking events such as form submissions.  

When to Use an Event-Based Audience

  • JavaScript buttons
  • Tracking conversions that need to be completed on a separate website (common with event promotion) 

Create an Event-Based Audience

  1. Log in to your RollWorks account.
  2. Navigate to your Audience tab.
  3. Click New Audience.
  4. Under Audience Type, select URL Visited.
  5. 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.
  6. In URL pattern field, type a plus (+) and then paste the copied ID.
  7. Specify if this is a conversion audience.
  8. Enter your desired Duration: the number of days that someone remains an active part of the audience.
  9. Save.

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 the example ID in quotes ("25c14f39") with the unique ID we generated for you.

Raw Script: 

    __adroll.record_user({"adroll_segments": "25c14f39"})    
} catch(err) {}


Activate the Event Pixel

The event pixel should be triggered through the onClick function of the button on the page(s) where the event occurs. As an option, many of our advertisers place the script in an external JavaScript file that gets called during the click event.

The best practice here will depend on the existing website structure. Consult your technical team.

Counting All Clicks

Event-based audiences are triggered when a visitor clicks the button, regardless of whether the action successfully goes through. For example, when a user attempts to submit an incomplete form with required fields, they will count as a click even if the form returns an error.

How to 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:

  1. Go to your Audience tab.
  2. Click on the audience that you want to exclude.
  3. Under Campaigns with Audience, switch the Target toggle from Target to Exclude.
Was this article helpful?
0 out of 0 found this helpful