Set up offline conversion imports using Google Click ID (GCLID)

Google Ads conversion import lets you see what happens in the offline world after someone clicks your ads.

This article will go over how to gear up upwards your Google Ads account and website for tracking offline conversions from imports using the GCLID (Google Click Identifier). After you've followed these instructions, yous can so import your conversions into Google Ads. For information on other methodologies, read the following links:

  • To import conversions from Salesforce, follow these instructions to link your Google Ads and Salesforce accounts and rails when your Google Ads campaigns lead to milestones in your sales funnel.
  • To import conversion from Zapier, follow these instructions to set up Zapier offline conversion import for Google Ads.

Before y'all begin

To import offline conversions for your business using the GCLID (Google Click Identifier), you'll want to brand sure the following applies to you lot:

  • You've enabled auto-tagging. This lets yous import offline conversions.
  • Yous can brand code changes to all of your web pages. This lets yous capture the GCLID (Google Click Identifier) parameter that'southward appended to the URL that people click through from one of your ads.
  • You can store each GCLID with the respective prospect's information that's gathered on your website. You'd want to be able to do this, for example, in your lead tracking organization. The GCLID is case sensitive, so make sure you're uploading it correctly.
  • You accept a click-to-conversion bicycle that is less than xc days. Conversions uploaded more than xc days after the associated last click won't be imported by Google Ads and volition therefore not show up in your conversion statistics.

Instructions

At that place are ii parts to setting up imports for offline conversion imports: creating a conversion action in your Google Ads business relationship, and configuring your website and lead tracking system. Follow both sets of instructions below.

Part 1: Create one or more than import conversion actions

You'll demand to create a new conversion activeness for each kind of offline conversion yous'd like to measure, such every bit "lead qualified" or a "deal won." Y'all tin measure out as many offline conversion actions every bit you desire.

Here's how to create a new offline conversion activity:

  1. Sign in to your Google Ads account.
  2. Click the tools icon Google Ads | tools [Icon] in the upper right corner of your account.
  3. Under "Measurement," click Conversions.
  4. Click the plus button to create a new conversion activeness.
  5. You'll now see options for the different kinds of conversion sources y'all can track. Click Import.
  6. Select Other data sources or CRMs, then select Track conversions from clicks or Track conversions from calls.
  7. Click Go on.
  8. Enter a name for the conversion action you lot're creating (it's important that you remember the exact name and spelling because you lot'll need to enter this name subsequently, when y'all upload your offline conversion information).
  9. Click the Category drop-downwards and select the category that best describes your conversions. Yous tin use this category to segment your conversion reports. You lot can always change information technology afterwards.
  10. In the "Value" department, select how to track the value of each conversion.
  11. In the "Count" section, select how to count your conversions.
  12. Click Click-through conversion window. Select how long afterwards an ad click you desire to rails conversions for this conversion action. For Search, Shopping, and Display campaigns, the window tin can be i to 90 days.
  13. (Advanced) Click Include in "Conversions." Uncheck this setting—selected by default—if you don't want to include data for this conversion activeness in your "Conversions" and "Conversion value" columns. If you uncheck this setting, information will still be included in the "All conversions" cavalcade.
    • Y'all may want to use this setting if y'all use an automated bid strategy to optimize for conversions, and you don't desire to include this particular conversion action in your bid strategy. Larn more about account-default conversion goals
  14. Click Attribution model. This setting lets y'all cull how to assign credit for each conversion.
    • If you would like to utilise a Google Ads attribution model, select Use Google Ads attribution and select a model from the dropdown. Learn more virtually each pick and how this setting works in About attribution models.
    • If you would similar to apply your own attribution model and import fractional credit for each GCLID, select Apply external attribution.
    • Annotation: You can't switch between external attribution and Google Ads attribution after the action is created.
  15. Click Create and continue.
  16. Click Washed.

Important: After creating a new conversion activeness, wait four-6 hours before uploading conversions for that conversion action. If yous upload conversions during the first 4-6 hours, it might take 2 days for those conversions to appear on your reports.

How to upload conversions for multiple accounts from a single file

To practise this, all of the relevant accounts need to be linked from a shared manager (MCC) account. This manager account is where you volition upload your files. Google Ads so imports any conversions that originated from its linked accounts.

Go along in mind: If you upload a conversion for an account that isn't linked from your manager account, you will get a "not authorized to upload" error.

  • If you use cantankerous-account conversion tracking: You'll need to create your import conversion actions at the managing director account level and follow the instructions in Gear up cross-account conversion tracking to make sure all managed accounts apply the manager as the "conversion business relationship."
  • If you lot don't use cross-account conversion tracking: You'll need to create your import conversion actions in each individual account. Keep in heed: if yous're tracking the aforementioned conversion (for case, "lead qualified") across multiple accounts, it's critical that you lot use the exact same spelling and capitalization for each conversion name in each of your accounts.
  • If you haven't used Google Ads conversion tracking before and all of the accounts under your director business relationship belong to the same business concern: You'll want to use cross-account conversion tracking. It tin assistance simplify tracking your conversions and your Attribution reports.

Part 2: Enable your website and lead tracking system

In Part 2, the three steps you lot'll demand to complete volition be covered:

  1. Update every lead submission form page so the GCLID will be passed to your lead management organization.
  2. Add a script (read our suggested script below) to all of your web pages to capture and shop the GCLID.
  3. Store the GCLID, along with the prospect'south data, in your lead management system.

Keep in mind: Be sure to consummate part 1 (above)—create 1 or more conversion actions—before starting this pace. Otherwise, you lot won't be able to import your early conversions.

  1. You lot will need to modify each form submission folio to add a hidden grade field for the GCLID. This is how the GCLID volition be passed to your backend system.
    Here'south an example form with a subconscious field for the GCLID. If you lot are able to modify your form code directly, yous will simply insert the highlighted <input> tag in between your <form> tags. In some cases, your lead management systems administrator may need to generate this grade code for you lot.
                <grade activity="" name="myForm">          Name: <input type="text" proper noun="name">                <input type="hidden" id="gclid_field" proper noun="gclid_field" value="">                <input type="submit" value="Submit Form" name="btnSubmit">    </course>              
  1. Update the code on each of your web pages to capture and shop the GCLID (via cookie or local storage). You are costless to write your own script, or utilize this suggested script below. If you lot use the script below, be sure to update the "var gclidFormFields" line to include the list of all the field IDs you created in the previous stride:

    <script>

    function getParam(p) {
    var match = RegExp('[?&]' + p + '=([^&]*)').exec(window.location.search);
    return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
    }

    function getExpiryRecord(value) {
    var expiryPeriod = xc * 24 * 60 * lx * 1000; // 90 day expiry in milliseconds

    var expiryDate = new Engagement().getTime() + expiryPeriod;
    return {
    value: value,
    expiryDate: expiryDate
    };
    }

    function addGclid() {
    var gclidParam = getParam('gclid');
    var gclidFormFields = ['gclid_field', 'foobar']; // all possible gclid form field ids here
    var gclidRecord = nothing;
    var currGclidFormField;

    var gclsrcParam = getParam('gclsrc');
    var isGclsrcValid = !gclsrcParam || gclsrcParam.indexOf('aw') !== -i;

    gclidFormFields.forEach(office (field) {
    if (document.getElementById(field)) {
    currGclidFormField = document.getElementById(field);
    }
    });

    if (gclidParam && isGclsrcValid) {
    gclidRecord = getExpiryRecord(gclidParam);
    localStorage.setItem('gclid', JSON.stringify(gclidRecord));
    }

    var gclid = gclidRecord || JSON.parse(localStorage.getItem('gclid'));
    var isGclidValid = gclid && new Date().getTime() < gclid.expiryDate;

    if (currGclidFormField && isGclidValid) {
    currGclidFormField.value = gclid.value;
    }
    }

    window.addEventListener('load', addGclid);

    </script>

Adding the code:

  • In order to avoid missing some conversions, it'south strongly recommended that you add this script to every web page on your site (not merely your landing pages). For example, add this script to your webpage template, so that all your new pages will automatically include it. Or you lot can add this script in a global element like the folio footer.

  • When you add the script, information technology'southward a skilful idea to insert it on every web folio, immediately before the closing </torso> tag.

  1. Modify your backend customer data direction system so that when it receives the GCLID value from the form field, it can store the GCLID along with the prospect's information. For example, if you're using a lead direction organization, take your IT team add a custom field to your lead object so the GCLID can be stored and retrieved easily and reliably. Your IT team can bank check the integration guide for the specific organization you use.

Tip: Utilise Google Tag Manager to collect the GCLID

If you lot have a Google Tag Manager business relationship, and employ the aforementioned field proper name across all forms, yous tin can use it to implement the above script by following these steps:

  1. Log into your Google Tag Director account.
  2. Nether "Accounts," click the proper name of the business relationship with the container you use for your Google Ads tags.
  3. Under "Containers," click the name of the container you want to use.
  4. Click the New button, so select Tag from the drib-downward bill of fare.
  5. Enter a name in the "Tag Name" field (you might want to use something like "Google Ads Click ID Collection for Conversion Import").
  6. Under "Tag Blazon," select Custom HTML Tag from the driblet-down menu.
  7. Copy the JavaScript from step 2 to a higher place and paste it into the "HTML" field.
  8. Under "Firing Rules," click the +Add together button. Cheque the box next to "All pages" and click Save.
  9. Click Save.
  10. Click the Create Version button.
  11. Click the Publish push.

Import conversions into Google Ads

Yous've at present set up upwardly your Google Ads account, website, and atomic number 82 tracking system. To terminate tracking offline conversion imports, y'all tin can now follow the instructions to import conversions from advertisement clicks into Google Ads.

Was this helpful?

How can we improve information technology?