Skip to main content

We are currently experiencing an issue that is preventing customers from submitting support tickets. Please contact us at (866) 819-4486 if you need immediate assistance.

x
Optimizely Knowledge Base

Integrating Optimizely with Google AdWords

THIS ARTICLE WILL HELP YOU:
  • Integrate Google AdWords with Optimizely
  • Create Optimizely Audiences based on ad campaigns and ad groups from AdWords
  • Target experiments based on your AdWords referral data
  • Create personalized landing pages for your ads

Optimizely integrates with Google AdWords so you can connect your customer acquisition funnel to your conversion rate optimization. Use it to create symmetric messaging between your AdWords creative content and your landing page, test the experience, and optimize for your paid traffic.

This integration allows you to define Optimizely Audiences based on your AdWords referral data and deliver consistent experiences to customers from start to finish.

The Google AdWords integration is available with Enterprise Premium and Personalization plans.

1. Enable AdWords in Optimizely

First toggle on the integration in Optimizely.

  1. From the Optimizely Homepage, navigate to the Integrations tab.

  2. Toggle the Google AdWords integration to On. Click Connect to Google AdWords to confirm.

  3. Sign in with the Google account you use to access AdWords. Click Allow.
    Give Optimizely access to your AdWords account

  4. If you signed in with an AdWords Manager Account and manage multiple accounts, select the AdWords account you’d like to leverage in Optimizely from a dropdown menu.

Great! You’ve turned on the AdWords integration in Optimizely. Now you're ready finish setting up the integration in AdWords.

2. Add the Optimizely tracking template to AdWords

Complete your setup by adding the Optimizely tracking template text snippet to your AdWords tracking template. If you plan to use your AdWords integration to target multiple experiments or campaigns, you'll add the tracking template text snippet to all your AdWords campaigns, ad groups, or ads.

For reference, here's the Optimizely tracking template text snippet:

{lpurl}?opti_ca={campaignid}&opti_ag={adgroupid}&opti_ad={creative}&opti_key={targetid}

We'll show you how to add it step-by-step, below.

A few things to know:

  • Lower-level tracking templates have priority over higher-level tracking templates. For example, if a tracking template exists for an individual ad creative, it overrides the tracking template of its higher-level ad group.

  • The tracking template text snippet has no effect on your AdWords ads unless you're already using our tracking template fields (opti_key, opti_ca, opti_ag, and opti_ad) in your tracking templates. If your tracking template matches the entire referral URL, it may affect your page analytics.

  • If you use tracking templates for redirects (with {lpurl1}, {lpurl2}, etc.) or if you use multiple AdWords management services, you may encounter conflicts with your existing tracking templates. If this is the case, please ensure that the final URL that directs to your landing page includes the Optimizely tracking template text snippet.

The following are instructions for adding the Optimizely tracking template in the Google AdWords interface. If you use a third-party service to manage your ad campaigns, insert the text snippet to the end of your tracking templates through that provider.

  1. Log in to the AdWords and select Campaigns

  2. Add the Tracking template column and select Ad Groups. Click Columns and select Modify columns.

  3. Under Attributes, add the Tracking Template column.



    Repeat this step for all Ads and Campaigns.

    For Campaigns, the Tracking Template column lives under the Settings tab in Google AdWords, not the Campaigns tab. Please note that modifying the tracking template of campaigns or ad groups won't trigger a reapproval process, but modifying the tracking template of ad creatives will.

  4. Identify the lowest level where you already have tracking templates.

    The hierarchy of levels in AdWords is:

    Campaigns (highest level)

    Ad Groups

    Ad Creatives (lowest level)

    To figure out whether you have tracking templates implemented on a certain level, first select the tab for that level. Then, click the Tracking template column. If the column re-orders to show existing templates, you already have tracking templates on this level.

  5. Open the tab of the lowest level where tracking is implemented. For example, if Ad Groups is the lowest level where you have a tracking template, open the Ads groups tab.

  6. Next, click the Tracking template column to reorder the rows.

    Select all rows that include a tracking template. Then, click Edit and select Change URL options from the menu.



    If no rows contain tracking templates, skip to Step 9.

  7. Click the Action dropdown menu. Select Append text.

  8. Paste the following tracking template text snippet into the Append text field.

    {lpurl}?opti_ca={campaignid}&opti_ag={adgroupid}&opti_ad={creative}&opti_key={targetid}
    




    Click Make changes to confirm.

  9. Select all rows that don't have a tracking template. Click the Edit button, then Change URL options.

    Paste the following text snippet into the field next to Set value.

  10. {lpurl}?opti_ca={campaignid}&opti_ag={adgroupid}&opti_ad={creative}&opti_key={targetid}
    



    Click Make changes to confirm.

Congratulations! You've successfully integrated Google AdWords with Optimizely.

3. Create an audience using AdWords

Once you turn on the integration, you can create audiences in Optimizely that target your AdWords campaigns.

  1. In the Optimizely Editor, click the Audiences () icon. Or, navigate to the audience of an existing experiment.

  2. In the Create new audience dialog, you'll see a Google AdWords dropdown.

  3. Drag and drop Ad Campaigns and Ad Groups to create new audiences in Optimizely.

    Please note that removed and disabled campaigns and ad groups will not appear in the dropdown menu.

QA your integration

How do I make sure the integration is working as expected?
You can always use Optimizely’s Preview Mode as you're building an experiment to check that your variation looks the way you expect. Before you launch the experiment to visitors, verify that your tracking template is working by searching the URL for the terms used in the text snippet: opti_key, opti_ca, opti_ag, or opti_ad.

Once you're ready to QA your audience targeting in a live environment without showing it to visitors, use the test cookie method to verify that your AdWords audience conditions let the right visitors in.

When you set the test and tracking template live for all visitors, perform one final check by clicking the ad. It should allow you to be bucketed into the right variation. 

How long will it take before I see the changes go live?
Your changes will go live when all of the following conditions are met:

  • Your targeted AdWords campaigns or ad groups are enabled and approved by Google
  • You have inserted the tracking template text snippet into the required tracking templates
  • Your Optimizely campaign is live

Troubleshooting

Why don't I see some of my campaigns, ad groups, or keywords listed in the Create new audience dialog?
Optimizely doesn’t show disabled campaigns or their corresponding ad groups, or disabled ad groups or their corresponding keywords.

You’ll only be able to see paused or enabled ad groups from paused or enabled campaigns, or keywords from eligible ad groups.