Perfect Audience Destination

Destination Info
Connection Modes
Device-mode Cloud-mode
Web Web
Mobile Mobile
Server Server

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

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 the Segment web app, click Catalog.
  2. Search for “Perfect Audience” in the Catalog, select it, and choose which of your sources to connect the destination to.
  3. Add your Advertiser ID (located in the User tracking session in Perfect Audience) and enable the destination in Segment.
  4. Segment automatically starts sending data from the source you selected

When you enable Perfect Audience from the Segment web app,Your changes appear in the Segment CDN in about 45 minutes, and then Analytics.js starts asynchronously loading Perfect Audience’s JavaScript 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.

Order Completed

If you’re using our ecommerce spec and passing the Order Completed event the orderId and total will be passed 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.

Setting Description
Advertiser ID
string. 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: 15 Jul 2022

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