---
# System prepended metadata

title: Linking Google Tag Manager with Analytics and Optimize

---

# Linking Google Tag Manager with Analytics and Optimize

If your property does not exist in google analystics [Click here](https://hackmd.io/@ncq8_422SOyMjsp-06PnZA/BJlSUsED4/%2Fy9WAa793TX-2ppGz6sn5sg) to learn how to do it.

# Analytics + Google Tag Manager

1. Open Google Tag Manager By [clicking here](https://tagmanager.google.com/?authuser=1#/container/accounts/4241475677/containers/10078783/workspaces/192/variables). Make sure you are logged in with your Sam Media email address.
2. Inside tag manager make sure your selected account is ouisys.com and click on variables ![](https://i.imgur.com/l1qaQmY.png)

3. You are only going to be working with the items highlighted in **green**![](https://i.imgur.com/81Mr4PA.png)
4. Lets start by clicking **Google Analytics Tracking ID Lookup**
5. On the next screen you can see that **KW** does not exist so we will click on **Look Up Table** to add it ![](https://i.imgur.com/thW0Uqo.png)
6. On the next screen click add row ![](https://i.imgur.com/jhcH7r1.png)
7. Enter the country code and the analytics **tracking ID** and click save.

# Optimize + Google Tag Manager

1. Copy your container ID from **Google Optimize** ![](https://i.imgur.com/r1bPEYj.png)
2. Go back to Google Tag Manager and click **Google Analytics Tracking ID Lookup** under **variables** ![](https://i.imgur.com/Jqd68Fq.png)
3. If you do not see your analytics **tracking ID** and your **optimize container ID** mapped to each other, go ahead and click on **Look up table**
4. ![](https://i.imgur.com/8utpDRG.png)

5. Click on **Add row** ![](https://i.imgur.com/H8eGnAO.png)
6. Enter the **Analytics tracking ID** and the **Optimize Container ID** and click **Save** ![](https://i.imgur.com/9mgky5J.png)

7. Click **Submit** to commit your changes ![](https://i.imgur.com/aWbN9sW.png)
8. Describe what you did and publish ![](https://i.imgur.com/FV3z69c.png)






