The setup requires work in Permutive and AppNexus. It's important to ensure you have access to both before starting.

Each time you send a Permutive segment into AppNexus you need to set-up the segment within the AppNexus platform, and create the corresponding reaction in the Permutive platform.

We'll start assuming you've got your Permutive segments set up. If you haven't there's more info here.

Set up the Segment In AppNexus

Create the Segment in AppNexus

Within the AppNexus platform you need to create the segment that you want to send your Permutive segment into. This will be an empty segment.

Get the AppNexus Segment ID

Once you have clicked 'Save' to create the AppNexus segment make a note of it's segment ID. This is listed under 'Network' in the Segment Pixel List.

Create a JS Reaction from Within Permutive

Prepare Your Code Snippet

First, you need to update the AppNexus segment ID in this code snippet, replacing the '1234567'.

var s = document.createElement('script');
s.setAttribute('src','https://secure.adnxs.com/seg?add=1234567&t=1');
document.body.appendChild(s);
impression();

So, for example, if my AppNexus segment ID was '239873' my code snippet would be:

var s = document.createElement('script');
s.setAttribute('src','https://secure.adnxs.com/seg?add=239873&t=1');
document.body.appendChild(s);
impression();

Create the Reaction

Create a new 'On Entry' JS reaction in the Permutive dashboard.  The screenshot below shows how this would work to send my Permutive segment for 'Is Active User' to the AppNexus segment with ID '239873'.

Note: 

  • We recommend using an 'OnEntry' trigger for all pixel fire reactions.
  • The impression();  line in the code snippet tracks an impression event to Permutive every time a pixel is fired. This is very helpful to understand how many pixels Permutive have been fired - you can see the total count in the Permutive dashboard under 'Impressions' for the reaction.
Did this answer your question?