# Perfect Audience Destination

## Destination Info

* Accepts [Track](/docs/segment/connections/spec/track) calls.
* Refer to it as **Perfect Audience** in the [Integrations object.](/docs/segment/guides/filtering-data/#filtering-with-the-integrations-object)

### Components

* [Browser](https://github.com/segment-integrations/analytics.js-integration-perfect-audience)

## Connection Modes

[Learn more about connection modes.](/docs/segment/connections/destinations/#connection-modes)

### Device-Mode

* web: yes
* mobile: no
* server: no

### Cloud-Mode

* web: no
* mobile: no
* server: no

[Perfect audience](http://www.perfectaudience.com/) 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 Segment know](https://segment.com/help/contact).

## Getting Started

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.

## Track

If you're not familiar with the Segment Specs, take a look to understand what the [Track method](/docs/segment/connections/spec/track/) does. An example call would look like:

```javascript
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](/docs/segment/connections/spec/ecommerce/v2/) and passing the `Order Completed` event the `orderId` and `total` will be passed along to Perfect Audience.

## Troubleshooting

### 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](/docs/segment/connections/sources/catalog/libraries/website/javascript#how-do-i-open-the-javascript-console-in-your-debugger) and go to the network tab when the page is loading.

![Checking network tab to see if script loads.](https://docs-resources.prod.twilio.com/8a2cd023e90dc07c18494061e6013d19469548d2b7a40f6f4dba91417b7d6b39.gif)

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

## Settings

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

| Field         | Description                                                                                                                                                                                                                              | Required | Type   |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------ |
| 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\`. | Yes      | string |
