Integrating with Affise

Introduction

The Affise integration allows all click and goal data to be sent to TrafficGuard for analysis. Invalid conversions will automatically be set to rejected in the Affise portal.

 

Prerequisites

You need to be an Affise customer
You need to be a TrafficGuard customer.
You need to have a website property in TrafficGuard

 

TrafficGuard Portal

 

Account Credentials

  1. Organisation ID & Token - From your Account > Settings page, copy your identifier and secure token. These will be required when creating your Click Measurement URL and your Cross-Postback URL.
  1. Property ID - Once you have created your Website Property, copy the property ID. This will be required when creating your Click Measurement URL
 

Property settings

  1. Navigate to your Website property
  2. Select Affise as your property's input and enter your base URL for the Affise postback

Tip

After you save, make sure you copy your property ID. You will need this in your click measurement URL & Postback URL.

 
Click Measurement URL

Adding the click measurement URL will redirect all clicks from Affise to TrafficGuard where they will be analysed and sent to the Offer Destination URL if they are deemed to be valid.

Update the Tracking URL on each offer to the below URL after making the following changes:

  1. Update the Organisation ID and Property ID with your TrafficGuard Identifier & property ID.
  2. Destination URL - Update the destination URL to a URL encoded version of your offer destination URL.

HTTP

https://click.trafficguard.ai?organisation_id={your_TrafficGuard_identifier}&property_id={property_id}&campaign_id={offer_id}_{offer_name}&source_id={pid}&sub_partner_id={sub2}&site_id={sub4}&session_id={clickid}&destination_url={url_encoded_destination_url}

 

Once updated you can add this URL to Tracking URL on the Offer Creation Page.

 

Affise Offer Settings

Please make sure you update the Tracking URL and Postback on every offer that you want to run TrafficGuard on.

 

Cross-Postback URL

Adding the postback URL will send postbacks for all conversions and goals to TrafficGuard for analysis. These will have their status updated in near real-time via the Affise API if they are deemed to be invalid.

Update the Postback URL on each offer to the below URL after making the following changes:

  1. Update the Organisation ID and Property ID with your TrafficGuard Identifier & property ID.
  2. Destination URL - Update the destination URL to an encoded version of your offer destination URL
  3. Event Names - Based on your goal names, you can map the event names in TrafficGuard & add the same hardcoded to the URL below (all lowercase, no spaces). Alternatively, you can also leave it as goal.
    Eg: If your Affise Goal Name is 'Register', you can add the corresponding TrafficGuard event name in your postback URL (eg: &event_name=registration)

    • open
    • registration
    • purchase
    • level
    • tutorial
    • addtocart
    • checkout
    • invite
    • achievement
    • search
    • share
    • login
    • viewcontent
    • Pageview

HTTP

https://post.trafficguard.ai/?organisation_id={your_organisation_id}&property_id={property_id}&token={your_secure_token}&session_id={clickid}&source_id={pid}&event_name=goal&event_param={goal}&is_conversion=1&event_time={date_only}T{time}+06:00&user_agent={device_ua}&user_ip={ip}&client_transaction_id={transactionid}&affise_approval_status={status}

 

Once updated you can add this URL to Cross-postback URL under the Tracking Tab on the Offer settings.

Once the Tracking URL and Postback URL are implemented on every offer, TrafficGuard will start detecting and mitigating invalid clicks & will pass only valid traffic to the destination.
On the conversion side, TrafficGuard will reject invalid conversions dynamically within your Affise Portal.

For any further questions, please contact support@trafficguard.ai