Setting up Facebook Ads camaigns in CPV Lab Pro

facebook traffic source catalog

A regular CPV Lab Pro campaign, where you redirect traffic to the Campaign URL, will work in most cases for Facebook Ads.

But for best performances and lower risk of ad rejection we recommend that you use a no-redirect technique in your Facebook Ads campaigns.


NOTE: the no-redirect tracking method for Facebook Ads and Google Ads only works in campaigns that have landing pages. This method doesn’t work in direct-link campaigns.

Basic Example

  • Let’s say that you have a campaign with one landing page and one offer (from an Affiliate Network or even your own product) that you promote.
  • You want to bring traffic from Facebook to your landing page and then to the offer page and you want to track ad clicks, landing page clicks and conversions from your offer.

Facebook traffic flow

Setup your campaign in CPV Lab Pro

Facebook Campaign Traffic Source

  • Step 2: you will have the Keyword Token and Ad Token already pre-filled with the corresponding macros (placeholders) from Facebook
  • Step 3: select as Extra Token any other metrics that you want to capture from Facebook such as Ad Name, Adset ID, Adset Name, Placement etc.
    • Only select the metrics that you want to see in reports, you don’t have to include all of them.

Facebook campaign macros

  • Step 4: define the landing page in the Landing Pages section;
    • make sure that you assign a unique ID to it (e.g. 1)

Facebook campaign landing page

  • Step 5: define the offer in the Offers section;
    • make sure that you assign a unique ID to it (e.g. 11);
    • if necessary, end the Offer URL with the parameter for subID accepted by the Affiliate Network and the {!subid!} macro that will be replaced by CPV Lab Pro by the actual subID for each visitor.

Facebook campaign offer

  • Step 6: Add the CPV Lab Pro tracking code in the your Landing Page HTML code, just before the </body> ending tag of the HTML code (or in the Footer section when using a page builder tool).

    • Take the 2 lines of code from 'Step 2: Add Code to Landing Pages' in the campaign setup page.
    • check the image below to see how the code snippet looks like.
  • Step 7: add the JavaScript version of the Direct Traffic code (provided at Step 2 in the campaign setup page, where it says ‘Optional: Direct Traffic Code’) in your page, just below the previously added 2 lines of code (from step 6);

    • make sure that you replace the ‘xxx’ part from the Direct Traffic code with the actual Landing Page ID defined at Step 4 above (in this case it is 1).
    • check the image below to see how the code snippet looks like.

The 2 parts of code that should be added in the page are provided like this in the CPV Lab Pro campaign setup page (in the Links & Pixels section):

Facebook campaign code

And these should be added like this in the landing page HTML code:

Facebook campaign landing page code

  • Step 8: change the offer redirect link or button from the page to the link provided at 'Step 1: Edit Landing Pages Offer Links' in the campaign setup page.

Facebook campaign offer url

Setup the ad in Facebook Ads

  • create a campaign in Facebook Ads and select the desired audience.
  • use as Website URL the actual Landing Page URL and not the Campaign URL as you would do with the regular CPV Lab Pro campaigns.

Facebook create ad

  • enter the URL Parameters in the Tracking section of the ad, which are:
    • the parameters and Facebook macros (placeholders) from the Campaign URL provided by CPV Lab Pro in the campaign setup page.
      • Take everything after the ‘key’ parameter in the Campaign URL, as shown below:

Facebook create ad parameters

  • save your ad and now Facebook will send visitors directly to the landing page, where tracking will be performed by the Direct Traffic code included in the page.
  • run a test by opening a brand new private or incognito browser (in order to make sure that you don’t have previous tracking cookies in the browser) and navigate directly to the Landing Page URL.
    • Check the CPV Lab Pro reports (Visitor Stats or Stats) and you should see a visitor in your campaign.

Setup the Tracking Pixel or Postback URL


1. What if I want to rotate traffic between 2 or more landing pages?

  • Since you are direct linking to the landing page instead of using the Campaign URL in your Facebook campaign, you cannot have the landing pages rotated directly and you need an alternative approach.
  • One solution is to create different ads in Facebook for different landing pages.
  • Another solution that will actually allow you to split-test the same ad is to use the MV Lab tool which offers a Landing Page Rotator option.
  • MV Lab will generate the code to create a redirect page that will be uploaded in the same server location as the landing pages.
    • Then in your ad defined in Facebook you will use the URL of the redirect page instead of the URL of the landing page.
    • Visitors come from Facebook to the redirect page first, then they are sent to one of the landing pages based on the share% defined in your campaign setup page.

LP Rotator

  • MV Lab is a multivariate testing tool which integrates with CPV Lab Pro and can also act as a Landing Page Rotator for your CPV Lab Pro campaigns.

2. How to test my Facebook campaign?

  • Since you are using the Direct Traffic code in your landing pages and a no-redirect technique, you cannot test your campaign by loading the Campaign URL in a browser.
  • Instead you need to open a brand new private or incognito browser window which simulates your visitors since it won’t have existing tracking cookies.
    • Then you need to load the landing page URL directly in this browser window and you should see your test click appearing in the CPV Lab Pro reports (Stats, Visitor Stats etc).

3. What to do if my test click doesn’t appear in CPV Lab Pro?

  • If you performed the test using a brand new private or incognito browser window as described above but you don’t see the click in CPV Lab Pro (Visitor Stats, Stats etc), then make sure that you entered the Direct Traffic code correctly in your Landing Page.
  • The Direct Traffic code should appear at the end of the body section of the HTML (footer section for landing page builders)
    • and it should come after the 2 lines of code provided at Step 2 in the campaign setup page
    • and you need to replace the ‘xxx’ part with the actual landing page ID that you defined for this page.
    • It should look like this:

Facebook direct traffic code

4. What tokens (macros) to capture from Facebook?

  • With CPV Lab Pro you can capture a Keyword Token, an Ad Token and up to 10 Extra Tokens from the Traffic Source.
  • With Facebook selected as Traffic Source, you already have the Keyword and Ad Tokens set to their corresponding Facebook macros (placeholders).
    • You can also capture other data from Facebook in the 10 Extra Token fields available.
    • The most common macros (placeholders) that you can capture are AdSet ID (or AdSet Name) and Placement.

5. Can I see the exact cost for each click on my Ad?

  • Unfortunately, Facebook doesn’t pass the cost of each click in its tokens (macros), so it is not possible to capture this cost directly.


  • You can use an Average CPC that you will define in the campaign setup page and periodically adjust it to match the actual average cost of your clicks.
  • Additionally, you can download a CSV report with the costs per each ad from Facebook and use this report to Upload the Exact CPC per ad in the Exact Bids page from CPV Lab Pro for more exact cost figures.

6. I get extra traffic registered in CPV Lab Pro for my Facebook Ads campaign

  • The extra traffic registered in your campaign is usually just bot traffic sent by Facebook to check your Landing Page.
  • Each time you make changes to your ad in Facebook Ads, they send between 3 and 10 requests to your page to check it.
  • You can easily identify bot traffic from Facebook by looking at the ISP/Carrier reported by CPV Lab Pro for those clicks (enabled the ISP/Carrier data option in your campaign first).
    • The ISP/Carrier will appear as 'Facebook' for those clicks, something like this:

Facebook bot traffic

7. Does Facebook tracking work with pages created in landing page builders (like Clickfunnels)?

  • Sure!
  • Facebook tracking works with any kind of landing pages as long as you are able to include the Direct Traffic code in the HTML code of the landing page.
  • With Clickfunnels and other landing page builders you need to include the code in the Footer section of the landing page.
    • This code should go only in the first landing page from your funnel (in case you have more pages).
Last Updated: 10/11/2023, 10:35:00 AM