Perfect Audience Destination

On this page

Perfect audience is a retargeting platform that lets marketers bring back lost web visitors through Facebook ads and banner ads in the web.

This document was last updated on October 24th, 2018. If you notice any gaps, out-dated information or simply want to leave some feedback to help us improve our documentation, let us know!

Getting Started

Before you start, make sure Perfect Audience supports the source type and connection mode you’ve chosen to implement. You can learn more about connection modes here.

Web Mobile Server
📱 Device-mode
☁️ Cloud-mode
  1. From your Segment UI’s Destinations page click on “Add Destination”.
  2. Search for “Perfect Audience” within the Destinations Catalog and confirm the Source you’d like to connect to.
  3. Add your Advertiser ID (located in the User tracking session in Perfect Audience) and enable the destination in Segment.
  4. We’ll automatically start recording data.

When Perfect Audience in enabled in Segment, our CDN will update within 45 minutes, and Perfect Audience’s javascript is asynchronously loaded onto your page. Remember to remove Perfect Audience’s snippet from your page.

Perfect Audience is only supported on the client-side.


If you’re not familiar with the Segment Specs, take a look to understand what the Track method does. An example call would look like:

analytics.track("My Custom Event", {
  checkinDate: new Date(),
  myCoolProperty: "foobar",

When you call track on analytics.js, we call Perfect Audience’s track with the exact same parameters.

Perfect Audience requires that you define your goals ahead of time in their interface. If that hasn’t happened, then they don’t track the events.

Here’s their video of how to set that up - you’ll need to match event names between Perfect Audience and your Segment track calls.

Order Completed

If you’re using our ecommerce spec and passing the Order Completed event the orderId and total will be passsed along to Perfect Audience.


Script unverified or undetected by third-party tool

Many times this is a limitation on the tool’s detection process, where the detector is looking for a specific HTML element on your page. Our client side analytics.js library asynchronously loads the tool’s library or pixel onto the page. As such, the detection fails.

In order to confirm that the tool’s library or pixel is actually loaded onto the page, you can open up the javascript console and go to the network tab when the page is loading.

Checking network tab to see if script loads

If the script isn’t loading, check that any form of ad blocker is disabled.


Segment lets you change these destination settings from the Segment app without having to touch any code.

Advertiser ID

You can find your Advertiser ID by going to Manage > User Tracking and looking in the top-right corner for ‘Advertiser ID’. It should be 24 characters long, and look something like this: 43c4b9f66d5f88435700003c.

This page was last modified: 09 Jun 2020

Get started with Segment

Segment is the easiest way to integrate your websites & mobile apps data to over 300 analytics and growth tools.
Create free account