Facebook and Instagram Integration
THIS ARTICLE IS NOT UPDATED. WE ARE ON THE INTERCOM NOW!
http://help-center.peerclick.com/en
JOIN US THERE AND WATCH ALL UPDATED PEERCLICK GUIDES!

So you decided to go for the big one. Get visitors from the world's biggest social media platforms and track them with Peerclick? Is it doable? Yes, it is. Is it easy? With this guide - very much so!
The following article will go through all the steps necessary to use Facebook or Instagram as a traffic source in Peerclick. Both Facebook and Instagram share the same ad managing interface, called Facebook Ad Manager, so this article describes one flow for both platforms. It is assumed that you have some knowledge about running a campaign on Facebook or Instagram, so campaign creation, traffic targeting options, and ad creation will not be discussed. What will be discussed is how to set up tracking in a way that a visitor's journey from your ad to an offer (with a short stop through a tracker) will be complete, and all information regarding visit characteristics and conversions will be sent from and back to Facebook.
To get started you need to follow these steps:
PART ONE: TRACKING
1. CREATE A CAMPAIGN IN PEERCLICK
2. PASTE THE DIRECT TRACKING URL TO FACEBOOK AD MANAGER
3. IMPLEMENT DIRECT TRACKING PIXEL ON A LANDING PAGE
PART TWO: REPORTING CONVERSIONS
4. CREATING THE FACEBOOK PIXEL
5. CONFIGURING CONVERSION REPOTING ON PEERCLICK SIDE.
You will find a detailed instruction for each of the steps below.
If you have everything ready, we can get started.
1. CREATE A CAMPAIGN IN PEERCLICK
In the first step, we will create a campaign in PeerClick. This will generate a special link, called the direct tracking link. You will send traffic to this link.
The first part of this guide describes the tracking setup, i.e. the process of recording information about the user's path from an advertisement to an offer or landing.
The second part describes sending information about conversions back to Facebook Ad Manager.
In the first step, we will create a campaign in PeerClick. As a result, we’ll generate a campaign link to which we will send traffic. It is this campaign link that we will post on the Facebook manager.
PeerClick Info
The detailed process of creating a campaign is described in the article at the link below
Let's get started on creating a campaign in PeerClick.
- Add an offer element to PeerClick. Read the Creating an Offer Element article to learn more.

- (Optional) Add a lander element to PeerClick. Read the Create a Lander Element article to learn more.
- Add a traffic source element.
(1) Go to Sources .
(2) Click Create .
(3) Select Facebook or Instagram Template
(4) Add the selected source.

(5) Select Direct tracking
Then Review and change any option according to your needs.
If everything is set correctly, click the New traffic source button.

- Create a campaign.
(1) Click Create button and start filling out the campaign settings form.
(2) Give the name of the campaign.
(3) Select the recently added Facebook from the drop down menu of traffic sources.
(4) Choose anding if it’s necessary.
(5) If you work without landing, check the box Direct link .
PeerClick Info
In our case we use prelanding page and we will send traffic directly to the URL of the prelanding. Therefore click:
(5.1) Edit prelanding.
(5.2) Save URL Prelanding in a third-party document.

(6) Select the desired offer
(7) Click Create .
(8) Copy Direct Tracking pixel and save to a third-party document.
Campaign is created.
2. PASTE THE DIRECT TRACKING URL TO FACEBOOK AD MANAGER
https://my_lander.com?ad_id={{ad.id}}&ad_name={{ad.name}}&adset_id={{adset.id}}&adset_name={{adset.name}}&campaign_id={{campaign.id}}&campaign_name={{campaign.name}}&placement={{placement}}&source={{site_source_name}}
Now you need to go to Facebook's Ad Manager, to submit this direct tracking URL. In order to do so, perform the following steps:
(1) In Facebook Ad Manager, create a campaign. Provide all traffic targeting options, budget details, creatives and other.
(2) Go to the Ad level.
(3) Select placement for your ad.

(4) Provide your direct tracking URL in the Website URL text field.

Every click on your ad on Facebook or Instagram will guide a visitor to a landing page. Now, for the final step in this part, you need to implement Direct Tracking script that you have copied from PeerClick to your landing page.
3. IMPLEMENT DIRECT TRACKING PIXEL ON A LANDING PAGE.
Direct Tracking script is necessary for reporting a visit to PeerClick and information which is sent by macroses. To implement this script, follow the procedure:
(1) Edit your landing page's HTML code.
(2) Paste Direct Tracking script (that you store in a text editing tool) in the section of your landing page. Your landing page's HTML code should look like this:
<HEAD>
<TITLE>Sample “landing” Page</TITLE>
direct tracking script
</HEAD>
That is it. The setup is completed. If you wish to track conversions, continue to part two of this guide.
PART TWO: REPORTING CONVERSIONS
At this point, you have set up tracking visits and clicks. When a visitor takes your offer and converts, this information can be passed back to PeerClick from an affiliate network platform. If you want to send information about conversion back to Facebook Ad Manager from PeerClick, you have to use the Conversion Tracking Pixel to get information about a conversion from an affiliate network platform.
Facebook Ad Manager supports only one method of tracking conversions, and that is Facebook Pixel. It is a small script that Facebook provides. In this script, there is a target URL link where information about conversion is sent. PeerClick can simply send this information to this target URL with its Redirect Pixel feature.
PeerClick info
There is a workaround to report conversions back to Facebook, even if you use S2S postback method to get information from an affiliate network platform. You still need to get the target URL form the Facebook Pixel. This workaround is described below. However, bear in mind that this workaround will limit your reporting options.
To pass information about conversions back to Facebook, you have to create Facebook Pixel.
4. CREATING THE FACEBOOK PIXEL
To create a Facebook Pixel, perform the following steps:
(1) In the Facebook Ad Manager, in the Ad section, scroll down and click the Show advanced settings option.
(2) Scroll down to the Conversion Tracking section and click the Set up button next to the Facebook pixel.

(3) Provide the name of the pixel in the Pixel name text field and click the Next button.

(4) Click the Set up Pixel now option.

(5) Select the Manually install the code yourself option.

(6) Scroll down to the 2. Copy the entire pixel code and paste it into the website header section and copy the code by clicking it.

(7) Paste the copied code to any text editing tool and click the Continue button.
(8) Provide any additional options on the next screen and click the Done button.
Thats all! Have fun and enjoy your future money.
5. CONFIGURING CONVERSION REPORTING ON PEERCLICK SIDE
In your Facebook Pixel script, there is a target URL. Look into this script and locate a URL link that is preceded by src=. Copy the URL only to the clipboard. This URL should look like this:
https://www.facebook.com/tr?id=23527235235235&ev=Purchase&noscript=1
Setting up Redirect Pixel in Peerclick
Right now for the final step, you need to configure conversion reporting in Peerclick. To do that, perform the following steps:
(1) In Peerclick, go to the Traffic Sources tab..
(2) Select the Facebook or Instagram traffic source element that you have created and click the Edit button
(3) In the Pixel Redirect URL text field paste the target link that you have obtained from Facebook Pixel.
(4) Click the Save button.

That is it.
The whole information flow circle is complete. Visitors are redirected through Peerclick to the selected destination, and information about conversion is reported back to Facebook Ad Manager, where you can see it in the Ads Manager.
Workaround: Setting up traffic source postback URL
If you still want or have to report conversions to Peerclick using the S2S postback URL method and then send information about conversion to Facebook, you can use the following workaround: Get the target URL from Facebook Pixel in the same way as it was described, go to Peerclick and edit the Facebook traffic source element that you have created. And then provide this target URL in the Traffic source postback URL section. This will allow conversions to be reported but will limit details visible in the Facebook Event Manager.
Updated over 2 years ago