Follow

Affise Common Pixel Integration

Time to read: 7 min

topic.pngThe article covers the following topics:

How to set up pixel integration with your Advertiser?

As for setting up your pixel integration with your advertiser, you should choose a desired pixel type in your offer settings - > Postbacks - > Integration pixels:

Annotation_on_2019-4-0.png

and provide your advertiser with it to let him implement it on the success page ('success page', a page which a user will observe after completing the target action on an advertiser’s website).

It could be possible that you would like to implement some additional param to your pixel so your advertiser will pass extra data to you when the pixel is going to be fired.

Below you can find a list of available parameters for Advertiser's pixel:

  • afid - unique request ID on advertiser's side
  • afprice - payout for conversion
  • afgoal - goal ID
  • afua - user-agent
  • afcomment - comment
  • afstatus - status of the conversion
  • afsecure - hash password generated on offer, advertiser level
  • custom_field1 - custom_field7  - custom field 1 - custom field 7

 Example of using an additional param for JS pixel:

<script language="JavaScript" type="text/javascript">var afoffer_id =802;
var afid={afid};
var afprice={afprice};
var afgoal={goal};
var afua={useragent};
var afcomment={comment};
var afstatus="1";
var afsecure="ff87d311f555f103683dc49b6ff393a2";
var custom_field1={extra_data};
var custom_field2={extra_data};
</script>
<script language="javaScript" type="text/javascript" src="https://tracking.go2affise.com/track.js"></script>

 Example of using an additional param for Image pixel:

<img 
src="https://tracking.go2affise.com/success.jpg?offer_id=802&afid={afid}&afprice={afprice}&afgoal={goal}&afua={useragent}&afcomment={comment}&afstatus=1&afsecure=ff87d311f555f103683dc49b6ff393a2&custom_field1={extra_data}&custom_field2={extra_data}" height="1" width="1" alt=""/>

 Example of using an additional param for Iframe pixel:

<!--Offer Conversion: Offer -->
<iframe src="https://tracking.go2affise.com/success..php?offer_id=131&afid={afid}&afprice={afprice}&afgoal={goal}&afua={useragent}&afcomment={comment}&afstatus=1&afsecure=ff87d311f555f103683dc49b6ff393a2&custom_field1={extra_data}&custom_field2={extra_data}" height="1" width="1" />
<!-- End Offer Conversion -->

 Example of using an additional param for Adwords pixel:

<!--Offer Conversion: offer_name -->
<script language="JavaScript" type="text/javascript">
var afid={afid};
var afprice={afprice};
var afgoal={goal};
var afua={useragent};
var afcomment={comment};
var afstatus="1";
var afsecure="ff87d311f555f103683dc49b6ff393a2";
var custom_field1={extra_data};
var custom_field2={extra_data};
</script>
<script language="JavaScript" type="text/javascript" src="https://tracking.go2affise.com/gclid.js"></script>
<!-- End Offer Conversion -->

Note: Advertiser's pixel is fired in status 'pending' ('2') by default. If you'd like to receive conversions in a certain status, use additional parameter 'afstatus=status' where 'status' should be replaced with a certain conversion status value. Ex. 'afstatus=1' for approved conversions. Conversions statuses and their values:

  • 1 – action is «approved» (paid by advertiser);
  • 2 – action is «pending» (decision in process, request status later);
  • 3 – action is «declined» (not paid by advertiser);
  • 4 – requested action «does not exist» (requested ID is not registered on advertiser's site);
  • 5 - action is «approved» and put on Hold (will be paid by advertiser at a certain amount of time - the period of hold is taken from the offer settings).

How can you check Advertiser's pixel set up?

1. First of all, you should check if an Affise tracking link leads to the advertiser’s link directly. For such a thing you should add &format=json to your tracking link and put it into your browser address bar:

Ex:

https://rocketcompany.g2afse.com/click?pid=2&offer_id=912&format=json

Screenshot_22.png 

2. Proceed with all the steps to reach the success page where the pixel should be located. Meaning you should click at the Affise tracking link and then complete all the actions on the advertiser’s page, which should be done to reach the final page, where the pixel should be located.

3. When you are going to reach the success page, you should check the source code (crtl+U) to find out the pixel itself.

4. Also, in case of success, you should observe a call-out record in your browser’s developer tools, as well as the cookie record with afclick value. If everything is going to be ok - > you should see a postback with status '1' response by navigating to ‘Statistics’ -> ‘Server postbacks' in your admin panel:

test.png

 

Sometimes it can happen that the pixel should be fired, but you don’t see it in your server postbacks tab. In such a case, you should check your ‘network’ tab in the developer tools and try to find out a call-out attempt. You can find out that it’s going to be red. There you can see the exact reason for that call-out block. Like “blocked: mixed-content”, which should be related to the usage of http instead of https. For more information on Developer's Tool work, refer to the related article.

If you can’t find an exact call-out attempt, an issue should be at the advertiser’s end.

article.pngYou may also find the following articles helpful:

If you have more questions on the Pixel Integration, feel free to contact the Affise Support Team via support@affise.com or your dedicated Account Manager.

Written by Anastasia Deryugina 

Was this article helpful?
3 out of 4 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.