Invocation Codes – Conversion Trackers, Retargeting, & Audience Exclusion Pixel Targeting

Featured image: Invocation codes allow for precise data collection from TrafficJunky's Conversion trackers, Audience Exclusion Pixel, and Retargeting tools.

What are invocation codes?

Invocation codes enable advertisers to conduct precise, targeted advertising. More specifically, it allows advertisers to track and collect data from TrafficJunky’s conversion trackers, audience exclusion pixels, and retargeting tools. These codes assist you in identifying your campaigns’ conversions and their sources, excluding audiences that no longer provide value, and efficiently retargeting your customers.  

How to implement invocation codes for:

Conversion Tracker

Audience Exclusion Pixel Targeting

Retargeting

Why should you update your invocation codes?

TrafficJunky is constantly pursuing ways to improve the advertiser experience and refine our tools to help you be successful. By updating the invocation codes, TrafficJunky will be able to enhance the precision of your data insights. We highly encourage you to update the codes to take advantage of these refinements.

CONVERSION TRACKER

From ad impression to final purchase, conversion trackers help determine the effectiveness of your sales funnel. They collect information about your campaigns and ads that led to success and show you how to repeat them.

There are three ways you can set up your conversion tracker:

Pixel (HTML)

  1. Under the Manage Trackers subtab, scroll down to find the conversion tracker list at the bottom of the page
  2. Click on View Code for the conversion tracker you want to use



  3. The Invocation Code pop-up will appear. Copy the code from the HTML Version tab

    Conversion tracker invocation codes on TrafficJunky campaign manager

  4. Paste the HTML code on the conversion confirmation page (i.e. signup/purchase completed).

    Add the ‘head’ code in between the <head> tags of the page
    Add the ‘body’ code between the <body> code in between the <body> tags of the page

Postback (S2S)

  1. Under the Manage Trackers subtab, scroll down to find the conversion tracker list at the bottom of the page



  2. Click on View Code for the conversion tracker you want to use.
  3. The Invocation Code pop-up will appear. Copy the code from the Postback URL tab.

    Conversion tracker invocation code on TrafficJunky campaign manager

  4. Paste the code into a third-party tracker or the offer section dedicated to S2S tracking.

Google Tag Manager (GTM)

  1. From the Conversion Trackers list, click on View Code for the conversion tracker you want to implement



  2. Select the GTM Version tab



  3. Copy the script exactly as it appears in the Invocation Code window.



  4. Open the Tag Configuration section in GTM.
  5. Paste the script into the GTM script section.




    Example of the completed script on GTM:


Note: The ch parameter has been appended to the tracker URL above.

Not all browsers support Client Hints. If the browser doesn’t support them, the ch parameter will not be appended but the call to the actual tracker image will still go through.

AUDIENCE EXCLUSION PIXEL TARGETING (AEP)

In general, someone who has already converted for your offer is less likely to do so again (at least in the near future). AEPs help optimize your traffic by temporarily preventing those who have converted from seeing your offer again. By promoting your offers to people who are open to buying, you avoid ad fatigue and work towards efficient ad spending.

You have three code options to embed in your site:

Set Up AEP

  1. Under Advanced Targeting in Step 2 of campaign creation, turn the Audience Exclusion Pixel Targeting feature ON.
  2. Fill out the mandatory fields to create your cookie and click Add.

    Audience Exclusion Pixel Targeting on TrafficJunky's campaign manager


    Notes:
    The first three fields allow alphanumeric numbers but not spaces and underscores. Restrictions also apply to some special characters (ex: ?, !, &)
    Site Name: Inserting your full domain here emulates a better cookie
    Site Name & Cookie Name have a 100-character limit
    Cookie Value character limit: 255
    Cookie Age limit: 8 numbers only, measured in days
  3. Once your cookie is generated, it will appear at the bottom of the AEP Targeting feature page. The Cookie Name is a combination of what you provided for Site Name and Cookie Name Click View Code to see your Invocation Code.

    View your AEP invocation code on TrafficJunky

  4. The Invocation Code has to be embedded on your page to receive information about successfully completed transactions. There are two versions: JavaScript Version and Image Version

    For the AEP cookie, there is a JavaScript and Image version of the invocation code

  5. Complete the campaign creation process.

Google Tag Manager (GTM) Integration

  1. In the list of cookies, click on View Code for the AEP cookie you want to implement.

    View your audience exclusion pixel targeting feature on TrafficJunky

  2. Select the GTM Version tab.



  3. Copy the script exactly as it appears in the Invocation Code window.



  4. Open the Tag Configuration section in the GTM.
  5. Paste the script into the GTM script section.

    Copy your invocation code into the Google Tag manager

    Example of the complete script on GTM.



    The user will see the following call in the network tab if the tag and scripts have been implemented correctly



Note: The ch parameter has been appended to the tracker URL above.

Not all browsers support Client Hints. Therefore, if the browser doesn’t support them, the ch parameter will not be appended, but the call to the actual tracker image will still go through.

Retargeting

Someone might be interested in your offer but not ready to make a final purchase. For example, they might have reached your landing page but exited before reaching a product description page. Whatever the reasons for someone’s hesitation, you can coax your curious and interested leads out of your sales funnel and onto your conversion page by serving them more engaging and tempting ads.

To setup your retargeting cookie, decide between one of three codes to insert into your web page

Set Up Retargeting

  1. Under Advanced Targeting in Step 2 of the campaign creation flow, turn the Retargeting feature ON.
  2. You can select an existing cookie from the dropdown menu or click on Create a New Cookie to create a new one.

    Create retargeting cookie on TrafficJunky campaign manager.

  3. If you are creating a new cookie, fill out all the mandatory fields and click Add.

    The first three fields allow alphanumeric characters but don’t allow spaces or underscores. Restrictions also apply to some special characters (e.g.,?, !, &). Inserting your full domain into the Site Name emulates better cookies. Site Name and Cookie Name have a 100-character limit. The cookie value has a 255-character limit. Cookie age limit: 8 numbers only, measured in minutes.

    Fill out the required fields for your retargeting cookie.

  4. Once the cookie is generated, it will appear at the bottom of the Retargeting feature, where the advertisers can then view the Invocation Code.

    The cookie name is a combination of, in step 3, what you provided for Site Name and Cookie Name

    View your retargeting invocation code

  5. The invocation code must then be embedded into your web page so it can collect information about potential leads. There are two versions: JavaScript and Image Version.

    There is a JavaScript and Image version of retargeting invocation code

  6. Complete the campaign as normal.

Google Tag Manager (GTM) Integration

  1. In the cookies list, click View Code for the retargeting cookie you want to implement.



  2. Select the GTM Version tab.

    GTM implementation of retargeting invocation code

  3. Copy the script exactly as it appears in the Invocation Code window.

    Copy the GTM version of the retargeting invocation code

  4. Open the Tag Configuration section in Google Tag Manager (GTM).
  5. Paste the script into the GTM script section.

    Past the script into the GTM section when setting up your retargeting invocation codes


    Here’s an example of the complete script on GTM. If the tag and scripts have been properly implemented, the user will see the following call in the network tab.

    You will see this call in the network tab if the tag and scripts have been implemented correctly


    Note: The ch parameter has been appended to the tracker URL above.
    Not all browsers support Client Hints. Therefore, if the browser doesn’t support them, the ch parameter will not be appended, but the call to the actual tracker image will still go through.