Using Audience Tags

Note: You must place the audience tag within the BODY section of your webpage. If you do not place the code between the opening and closing BODY tags, then the audience tag will not run.

To add users to an audience as they perform an action or view a page on your site, place an audience tag on your webpage. First, create an audience. Then, retrieve a tag for your audience and call it from the user's browser window when you want to add the user to the audience.

  1. Select a Brand and click My Audiences on the left rail.

  2. Click the Actions button for the audience you want and select Get Tags.


  3. Select the tag type that you want to use. There are four tag types:
    • Script (recommended): The script tag uses JavaScript to add the user to the audience as well as perform additional functions that ensure maximum scale for campaigns targeting the audience. Script tags also automatically use HTTP or HTTPS as required for the page they are placed on. See What do script tags do? for more information.
    • Redirect Link: If you want to add the user to an audience when they click a link, you can use the redirect link option. This option adds the user to the audience and then redirects the user to the specified URL.
    • Image Pixel: The Image Pixel option adds the user to an audience by firing an image pixel on the page it is placed on. This option should only be used if the script version cannot be used. This option might be applicable when using certain tag managers that only support image pixels, or if a client has concerns about additional user sync pixels being loaded.
    • Mapping URL: The mapping URL option is intended for building a mobile audience. It can be fired server-side or client-side. Use this option if you have access to mobile advertising IDs (e.g. Google Advertising ID, iOS IDFA) and want to add these to audiences. Typically, it is used in a mobile tracking platform, and the tracking platform will provide a macro that expands to the user's advertising ID. The string "[INSERT_DEVICE_ID_HERE]" should be replaced with this macro.
  4. In the Tag Code field, copy the tag code.


  5. Place the tag anywhere in the BODY section but before the closing BODY tag. For best results, place it in your site template's header section (not to be confused with the <HEAD> section of the HTML document).

Every time someone visits your page, they are now added to your audience list. Basis DSP adds all visitors to your audience, whether they came from search engines, links from other websites, or even media buys on other ad networks.

Audience Tags in Email:

Placing audience tags in email is not recommended. Desktop email clients generally do not support cookies, which prevents the tag from functioning. Even if the client does support cookies, they will not share the same cookie pool as the user’s web browser, making collecting the cookie ID useless (since no impressions can be bought against it). Webmail clients may support cookies, but Gmail specifically uses a proxy server to cache images and strip cookies. Accordingly, the vast majority of users will not receive the email in a client where audience tags can work.

If you wish to use audience tags in email regardless, you will need to use the HTML Image option and modify the tag. DSP audience tags use what is called a protocol-relative URL; browsers will automatically load it over HTTP or HTTPS as is appropriate for the context of the current page. In an email client, the HTML of the message is not downloaded from a web server, so there is no context available to determine whether to use HTTP or HTTPS. Older versions of Outlook specifically are known to contain a bug that causes Outlook to assume that the URL should be loaded using the “file://” protocol that refers to the local computer, which causes a popup dialog box to be shown and triggers a long delay while Outlook attempts to fetch a non-existent file. To avoid this, add “https:” before “//” in the image URL. For example, if the tag code supplied is

<img src="//" width="1" height="1" style="position: absolute; left: -150px;" />

it should be modified to:

<img src="" width="1" height="1" style="position: absolute; left: -150px;" />

Adding Mobile IDs to an Audience

You can manually add mobile IDs to an audience. See Mobile App Retargeting for more information.

Was this article helpful?
0 out of 0 found this helpful