Using the Same Landing Page for Google and Bing Ads

This article outlines the process of setting up a single landing page for two different campaigns in CPV Lab or CPV One (by using Google Ads and Microsoft Ads as traffic sources) and passing the appropriate campaign ID in the landing page URL.


We will use CPV Lab (opens new window) (self-hosted ad tracker) as the tracker used in this article, but it works exactly the same for CPV One (opens new window) (cloud hosted ad tracker).

Step 1: Add a Landing Page

  • Go to "LPs & Offers" menu -> LPs Management
  • Add your landing page
  • You will select this landing page when you create your campaigns in campaign setup

Step 2: Set up your campaigns in CPV Lab

  • Click on "New Campaign" button from the top

Add new campaign

  • You will encounter a menu providing options for creating a campaign based on your preferences.

Add new campaign



  • If you want to update (edit) an existing campaign:
    • Click the "Campaigns" tab withing the left menu - go to Campaigns List
    • Click on the Edit button for the campaign you want to update
  • Once you fill all the mandatory fields for "General settings" and "Tracking settings", you need to choose the traffic source for your campaign.
    • Scroll down to the section labeled "Macros & Tokens".
    • Choose "Google Ads" or "Bing Ads" as the designated Traffic Source for this campaign.

Choose Traffic Source

  • Then go to the "Landing Pages" section

    • select the landing page added previously at Step 1
    • let's assume the Landing Page ID is 1.
    • ensure that you have the same Landing Page ID defined for the landing page you want to use for both campaigns.

    Choose Traffic Source


You need to create a campaign for each source; One campaign for Google Ads and one campaign for |Microsoft Ads

Step 3: Create the second campaign

  • Repeat the steps 2 and 3 above to create the second campaign.

  • At the end, you need to have 2 campaigns: one using Google Ads and one using Microsft (Bing) Ads.

Step 4: Obtain Campaign IDs

  • Identify the Campaign IDs in CPV Lab for your Google and Bing Ads campaigns.

    • For example, let's assume the Google campaign ID is 5, and the Bing campaign ID is 6.
  • Campaign ID in CPV Lab can be found in the general settings section of the campaign setup page.

Campaign Id from the tracker

Step 5: Add the Direct Traffic Code to the Landing Page

  • Copy the Direct traffic code assigned to your landing page.

landing page direct traffic code

  • Paste it in your landing page
  • In your landing page HTML, locate the "checkdirect" line, which is responsible for assigning traffic to the correct campaign.
  • Replace the "checkdirect" line with the code below.
    • This new code reads the "c" parameter from the URL and includes it in the Direct Traffic code.

Direct traffic code from the tracker

<script type="text/javascript">

var campaignID=getQueryParameter("c");
if (campaignID == null)
	campaignID = 5;


function getQueryParameter(ji) {
	hu =;
	gy = hu.split("&");
	for (i=0;i<gy.length;i++) {
		ft = gy[i].split("=");
		if (ft[0] == ji)
			return unescape(ft[1]);
	return null;

Step 5: Update Landing Page URLs

Now you need to update the Google Ads and Microsoft Ads campaigns to use the same landing page.

Last Updated: 11/16/2023, 3:19:01 PM