Posting conversion details to Google Ads

  • Unlike most traffic sources that use a Postback URL (Server-2-Server pixel) to receive conversion details, Google Ads uses a JavaScript tracking pixel which cannot be fired unless placed directly in the Confirmation or Thank You page.

    • This will work if you run your own offers and have access to the page HTML code, but it won’t work if you run offers from Affiliate Networks.
  • In order to overcome this limitation and to be able to see your conversions in Google Ads even when using an Affiliate Network, we have introduced an automatic process of uploading conversion data to Google Ads, without using the Google tracking pixel.

    • This method doesn’t use the Google API either, so we will NOT ask for your Google Ads account credentials.
    • You only need to make a few configuration settings once, then the process will run automatically for you.

Process overview

The process works like this:

  • Google Ads sends a unique code (External ID) for each visitor to CPV Lab Pro in the gclid parameter;
  • You have some new code in CPV Lab Pro that will return the unique codes for converting visitors in a format accepted by Google Ads;
  • Google Ads calls this code periodically and imports conversions into the Google Ads interface!

Important:

  • Google only accepts using Secure/SSL pages (starting with https://) for the conversion import, so before continuing please make sure that you have a valid SSL certificate installed on your CPV Lab Pro domain.
  • In order to check this, you can access your login page starting with https:// and make sure that everything loads correctly: https://your-cpvlabpro-domain/login.php
  • The process is fully automated, once you perform the initial configuration there is no need to do anything else and conversions will be sent from CPV Lab Pro to Google Ads.

Initial configuration

Here is what you need to do in order to install and make the initial configuration:

1. Make sure that you are running CPV Lab Pro 6.0 because this feature was introduced in version 6.0.
  • If you run an older version of CPV Lab Pro, then you can upgrade from the User Area.
2. Use the Configuration Editor page from the Settings menu in CPV Lab Pro and define a Google Conversion Key.
  • This should be a random string that you define (10-20 characters) which will be used to authenticate Google requests and prevent un-authorized access to your data.
  • It can look like in the image below:

Configuration Editor

3. Enable auto-tagging in your Google Ads account.

  • This is a global setting and it will automatically append the 'gclid' parameter with a unique code in the Final URL for each visitor.
  • This unique code is needed in order to identify the converting visitor.

In your Google Ads account go to All campaigns -> Settings -> then Account Settings and look for Auto-tagging (see attached).

  • Make sure that you check this checkbox in order to enable Auto-tagging.

Google Ads Autotagging

4. Create a conversion action in your Google Ads account:

  • go to Tools -> Conversions, then click on the + sign to add a new conversion action

Google Ads add new conversion

  • select Import as the type and then select 'Track conversions from clicks'

Google Ads create 2

  • name the conversion action ‘ImportConversion’, choose Purchase/Sale as Category, then SAVE the conversion action.

Google Ads create 3

5. In your Google campaigns from CPV Lab Pro, define 'gclid' as the Parameter for the External ID token and leave the Placeholder blank (see attached).

  • This will make CPV Lab Pro capture the unique codes for visitors coming from Google Ads.

Google Ads external id

6. You should also edit the Google Ads Traffic Source from the Traffic Sources page under the Settings menu and enter 'gclid' as the Parameter for the External ID token in order to have it prefilled in future campaigns.

  • You can also re-import the Google Ads traffic source from the Catalog in the Traffic Sources page and you will have the External ID set to ‘gclid’ by default for new campaigns.

7. Now you can test the page that reports conversions by calling the following URL in a browser:

https://your-cpvlabpro-domain/api/google-conversions/?key=google-conversion-key&camp=google

  • where google-conversion-key should be replaced by the random key that you defined at Step 2 above.
  • The result should be a page that looks as follows:

Google Ads empty result page

  • If you get the above, it means that the new page works well (it doesn’t show any conversion data yet, but it will show data once you get some conversions).
  • If you get an error message, then please check that the Google conversion key is the same in the Configuration Editor page (Step 2) and in the URL (Step 7).

8. Create the Upload Schedule in Google Ads

  • Go to your Google Ads account and navigate to Tools -> Conversions, then select Uploads on the left:

Google Ads conversion upload

  • Now select SCHEDULES from the top and then the + sign to create a new scheduled conversion upload:

Google Ads conversion upload schedule

  • Here you need to:
    • select HTTPS as the Source
    • enter the URL above for your new page as the Source URL
    • choose ‘Every 24 hours’ as the Frequency
    • choose any time that you want conversions to be retrieved from CPV Lab Pro

Google Ads conversion create schedule

  • Save the current settings and you have created the Schedule that will import conversions periodically from CPV Lab Pro to Google Ads.
    • You will see a record each time the upload executes in the ‘UPLOADS’ section from the same page.
    • Once conversions are uploaded you will also see them appearing in your Google Ads reports.

Optional parameters

There are several optional parameters that you can use in the URL that you submit to Google Ads:

Parameter Default Value Details
name ImportConversion The name of the Conversion Action that you defined in Google Ads
currency USD The currency to use for revenues reported to Google Ads
cstrev If you prefer to hide the actual revenues and not pass them to Google Ads, then enter a custom value that will be reported for each conversion in this parameter. For example, if you add ‘&cstrev=0’ to the URL, then all conversions will be reported with 0 as revenue
days 7 The number of days to return conversion for. By default, conversions from the past 7 days are returned.
camp google The campaigns to return data for. Possible values:
- google – all your campaigns that use Google as traffic source;
- a numeric Campaign ID – only the campaign with this ID;
- a list of numeric IDs separated by comma (,) – only the campaigns with the IDs specified

FAQ

1. What if I have multiple Google Ads accounts?

  • Then you need to perform the process described above in all you Google Ads accounts.
  • Define the Conversion Action and schedule the daily import from Google Ads for all your accounts.
  • Conversions belonging to other accounts will simply be skipped during the import by Google.

2. How to hide the actual revenues of my conversions from Google?

  • You can define a custom revenue to be reported to Google instead of the real revenue if you want to hide those from Google.
    • In order to do this, you need to include the ‘cstrev’ parameter followed by the desired revenue in the URL submitted to Google.

Example:

3. I get an error message on the uploaded file in Google Ads saying “This conversion action was created too recently”

  • This error appears sometimes immediately after you create the Conversion Action.
  • The solution is to wait a few hours, then try to upload the file again and it will be processed correctly. No need to change anything else, just wait for a few hours.

Google ads faq3

4. I get an error message on the uploaded file in Google Ads saying “We cannot find an import conversion type with this name in the target account”

  • Make sure that you have created in the Conversion Action and that you named it ImportConversion as described at Step 4 above

Google ads faq4

5. I get an error message on the uploaded file in Google Ads saying “This GCLID belongs to an account that you are not authorized to access”

  • This error may appear when you have multiple Google Ads accounts since the CPV Lab Pro page will return the gclid values (unique codes) for all conversions from all accounts.
  • There is no problem when this error is received and conversions associated to each Google Ads account will be imported correctly, while conversions from other accounts will simply be ignored.

Google ads faq5