> For the complete documentation index, see [llms.txt](https://docs.maker.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maker.co/maker-nav/troubleshooting/how-can-i-add-google-optimize-to-my-shopify-store-2.md).

# How can I add Google Optimize to my Shopify Store?

{% stepper %}
{% step %}

### Once you create your Google Optimize account, go to 'Settings'>

<figure><img src="/files/klPm3NR5nDKPzfx2BWtT" alt="How can I add Google Optimize to my Shopify Store? — step 1"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### From here, copy the snippet to Install the Optimize snippet.

<figure><img src="/files/sDuolCpn3VVUf73oIHtd" alt="How can I add Google Optimize to my Shopify Store? — step 2"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Now go back to your Shopify store and click on Themes.

<figure><img src="/files/B11IbSOo0PAYklLtmepB" alt="How can I add Google Optimize to my Shopify Store? — step 3"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Go to 'Actions'

<figure><img src="/files/8IkZhnUUIQydDx7uL9Dr" alt="How can I add Google Optimize to my Shopify Store? — step 4"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Click 'Edit code'

<figure><img src="/files/y4RKrSahQb2AF8Dc8Eg6" alt="How can I add Google Optimize to my Shopify Store? — step 5"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Go to Layout> Theme.liquid

<figure><img src="/files/aiJQsW7kDjzKq5WcKTCC" alt="How can I add Google Optimize to my Shopify Store? — step 6"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Now add the 'Smart Code' under the Head tag.

<figure><img src="/files/CLPPxGf0J6ZETXsgAv50" alt="How can I add Google Optimize to my Shopify Store? — step 7"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Ensure that the Optimize snippet is installed as high as possible in the of your website's HTML. Putting the snippet at the top of the addresses most flicker issues.

{% endstep %}

{% step %}

### Click 'Save'

<figure><img src="/files/lS9ilBTLhpTKdAnDxVAW" alt="How can I add Google Optimize to my Shopify Store? — step 9"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.maker.co/maker-nav/troubleshooting/how-can-i-add-google-optimize-to-my-shopify-store-2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
