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.
WARNING
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
- You will encounter a menu providing options for creating a campaign based on your preferences.
- In this article, we will be using a Direct Link & Landing Page campaign type.
TIP
NOTE:
- 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.
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.
TIP
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.
Step 5: Add the Direct Traffic Code to the Landing Page
- Copy the Direct traffic code assigned to your landing page.
- 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.
- This new code reads the
<script type="text/javascript">
var campaignID=getQueryParameter("c");
if (campaignID == null)
campaignID = 5;
checkdirect(campaignID,1);
function getQueryParameter(ji) {
hu = window.location.search.substring(1);
gy = hu.split("&");
for (i=0;i<gy.length;i++) {
ft = gy[i].split("=");
if (ft[0] == ji)
return unescape(ft[1]);
}
return null;
}
</script>
Step 5: Update Landing Page URLs
Now you need to update the Google Ads and Microsoft Ads campaigns to use the same landing page.
In your Google Ads account:
- navigate to the ad where you want to use the shared landing page.
- update the Final URL by appending the campaign ID (like
?c=5
) to the ad
Example:
- Final URL: https://landing-page-domain.com/lp.html?c=5
In your Microsoft Ads account:
- update the final URL by appending the campaign ID (
?c=6
) to the Ad.
Example:
- Final URL: https://landing-page-domain.com/lp.html?c=6
- update the final URL by appending the campaign ID (