---
description: >-
  Step-by-step guide to send your event data from RudderStack to Google
  Optimize.
---

# Google Optimize

[**Google Optimize**](https://marketingplatform.google.com/about/optimize/) is Google's free website optimization tool that lets you run different website tests to tailor personalized user experiences and increase your conversion rate.

RudderStack supports Google Optimize as a destination to which you can seamlessly send your website data for efficient A/B testing.

Once you add Google Optimize as a destination in RudderStack, RudderStack loads the [Optimize snippet](https://support.google.com/optimize/answer/7513085) on your website. Then, it loads the Google Analytics snippet(if not already present). This snippet natively measures all the Optimize experiments and then sends the data to Optimize for creating the reports.

## Getting started

Before configuring Google Optimize as a destination in RudderStack, verify if the source platform is supported by Google Optimize by referring to the table below:

| Connection Mode | Web           | Mobile | Server |
| --------------- | ------------- | ------ | ------ |
| **Device mode** | **Supported** | -      | -      |
| **Cloud mode**  | -             | -      | -      |

To know more about the difference between cloud mode and device mode in RudderStack, refer to the [RudderStack connection modes](https://rudderstack.com/docs/rudderstack-cloud/rudderstack-connection-modes/) guide.

Once you have confirmed that your source platform supports sending events to Google Optimize, follow these steps:

* From your [**RudderStack dashboard**](https://app.rudderstack.com/), add the source. From the list of destinations, select **Google Optimize**.
* Assign a name to the destination and click on **Next**. You should then see the following screen:

![Google Optimize connection settings](https://876606571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq5Ea6fHVg3dSxMCgyQ%2Fuploads%2Fgit-blob-c191b447eca528f89d0b7df84ccf5b438ca53de0%2Fgoogle-optimize-connection-settings-1.png?alt=media)

### Connection settings

The connection settings required to configure Google Optimize as a destination in RudderStack are listed below:

* **Load Google Analytics**: Enable this setting **only if** Google Analytics is not installed on your website already.

Disable this setting if you have already configured [Google Analytics 4](https://rudderstack.com/docs/destinations/analytics/google-analytics-4/) as a destination in RudderStack, or already installed the [global site tag](https://support.google.com/optimize/answer/9183119#zippy=%2Cexample-global-site-tag-with-google-analytics) on your website.

* **Tracking ID**: If you have enabled the **Load Google Analytics** option, enter the corresponding tracking ID here.

For more information on finding the Google Analytics tracking ID, refer to the [FAQs](https://rudderstack.com/docs/destination/testing-and-personalization/google-optimize/#faqs) section below.

* **Container ID**: Enter your Google Optimize container ID here.

You can find the Container ID by going to the **User Settings** option in your [Google Optimize dashboard](https://optimize.google.com/optimize/home/#/accounts).

![Google Optimize container ID](https://876606571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq5Ea6fHVg3dSxMCgyQ%2Fuploads%2Fgit-blob-f0b7f704fa308ee21816579b798d2ffacceae561%2Fgoogle-optimize-container-id.png?alt=media)

* **Async mode**: Enable this setting to use the asynchronous version of Google Optimize.

We recommend enabling this setting if you want your pages to load faster and if your target visitors are likely to be on slow connections (3G or slower). However, for experimentation purposes, this setting should be **disabled**.

Refer to this [Optimize support page](https://support.google.com/optimize/answer/7513085?hl=en\&ref_topic=6197443) to know more about the differences between the synchronous and asynchronous versions of Google Optimize.

* **Anti-flicker snippet**: Enable this setting to install the anti-flicker snippet.

Enabling this setting can impact page performance. Refer to this [support page](https://support.google.com/optimize/answer/7100284) for more information on the anti-flicker snippet.

* As this destination supports sending events only via the web device mode, the **Use device mode to send events** option will be always enabled.

Finally, click on **Next** to complete the setup. Google Optimize will now be enabled as a destination in RudderStack.

## FAQs

### Where do I get the Google Analytics tracking ID?

To get the Google Analytics tracking ID, follow these steps:

1. Go to the **Admin** section of your [**Google Analytics account**](https://analytics.google.com/analytics/web/#/) in the bottom left corner.
2. Then, select an account in the **Account** column, followed by a property in the **Property** column.
3. Under **Property**, click on **Tracking Info** - **Tracking Code**. Your tracking ID will be displayed at the top of the resulting page.

![Google Analytics tracking ID](https://876606571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq5Ea6fHVg3dSxMCgyQ%2Fuploads%2Fgit-blob-b3fcc8e83c462ece16ba4182f87391291c98205e%2Fgoogle-optimize-ga-tracking-id.png?alt=media)

### How do I link Google Optimize with Google Analytics?

To link your Google Optimize container to a Google Analytics property or view, refer to this [**support page**](https://support.google.com/optimize/answer/7008374?hl=en\&ref_topic=7310368).

## Contact us

If you come across any issues while configuring or using Google Optimize with RudderStack, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation in our [**Slack**](https://rudderstack.com/join-rudderstack-slack-community) community.
