Posted by .

Director of Customer Success Scott here! I’ve been in charge of Perfect Audience’s training videos, documentation & knowledge base since my first day five years ago. As a customer of many online platforms, I often find myself searching support documentation and just can’t locate what I’m looking for. It’s crucial to me that Perfect Audience’s documentation is concise, informative, and easy to find. On that note, we’ve got some great changes to our Support materials I’d like to share with you.

Upgraded Knowledge Base

We recently completely rebooted our support section to a new platform and we feel the information is much easier to browse and search for what you need quickly. We’d love to hear your feedback about this revamped section!

More Extensive Documentation

We design our documentation to assist the first time marketer working from home to the large corporation with an elaborate tech team and everyone in between, but sometimes articles can still be confusing, especially ones of the technical nature. It can be difficult to explain processes and techniques without paragraphs of text, so many times customers still have questions despite thoroughly reading through our support docs. I’d like to help address some of the common questions we receive regarding support topics in a series of blog posts, starting with this one!

Advanced Integration – Event Audiences

One of the most visited articles in our support section is in regards to Event Audiences. This is a method where you can use our API to add a user to an audience however and whenever you’d like; a button click, after a certain amount of time on the page, landing on a particular subdomain, and more! Anything you can control with Javascript can be used here. (A few more examples can be found in our API Cookbook.)

You will be required to code the Javascript on your end for specific API calls. We can provide the code that needs to run when you want to add the user to your audience, but we cannot code custom events for your site. Confused? Don’t be! I’m here to walk you through it.

Determine how/when you want your API call to happen. One of the most common questions I receive is how to add a user who lands on a specific subdomain, so that’s what I’ll be explaining here.

By default, we start your account with an “All Visitors” audience that tracks any user that lands on a page with our tracking tag installed. If you have and, the “All Visitors” audience will track users to both. But let’s say you need an audience only for the sale subdomain. Event Audiences are perfect for that!

Let’s first create the audience in your Perfect Audience account. This will let our system know to look for the Event you’re about to set up.

To create an Event Audience, click Manage-> Create Audience. Give the Audience a name, set a duration, and select the Event method. In the box, enter a unique tracking name for this Audience. In this example, we’ve used ‘audience’ but this can be whatever you’d like. Just make sure to use something unique for each audience.

Save the Audience when you’re done.

Next, you’ll need to add some code to your website. This is code In addition to our normal tracking tag you’ve already installed on your site. In my case, I want the user to be added to the audience when the page loads, so I’ll install it to load at that point. You’ll want this code to run when you want to add the user to the audience (on page load, button click, etc.).

<script type="text/javascript">
window._pq = window._pq || [];
_pq.push(['track', 'audience'])

Note that ‘audience’ needs to match whichever tracking name you gave the Audience in your Dashboard and it is case sensitive!
You’re all set! If you’ve setup your audience and code correctly you should see your audience count update in 6-8 hours in your account.

More Coming Soon!

I hope you found this blog helpful and easy to follow. Look for more posts from our support team regarding other more advanced or technical tools soon! If you have any questions about your Event audiences or have a suggestion for another blog post of this nature, please let us know at

Scott Danielson

Scott is the Customer Success Manager at Perfect Audience. He holds a degree from Illinois State University and has over 13 years experience working in the customer service/tech support field.

Meet our team Join our team

Comments are closed.