Requirements
Getting started with Google Tag Manager in Vanilla requires the use of the Pockets Plugin.
Google Tag Manager Setup
Setup Google Tag Manager for webpages, by using the following steps from Google - or watch the video above.
Adding Google Tag Manager Code to Vanilla Forums
To add the code given to you, you will need to create two Pockets, with the Pockets Plugin.
The first Pocket will be for placing the Google Tag Manager code for the Head area.
Give the Pocket a memorable name and make sure the following:
- Paste Tag manager code from part one in Body
- Page selected is (All)
- Location is Head
- Repeat is set to Before
Click Save.
Let's move to the second Pocket we will need to create for the secondary Tag Manager code, required for the content area.
Give the Pocket a memorable name and make sure the following:
- Paste Tag manager code from part two in Body
- Page selected are (All)
- Location is Content
- Repeat is set to Before
Click Save.
Enable both Pockets, by toggling the button to the right.
You are now ready to now additional Google Analytics Tags as needed in your Google Tag Manager. Google has some handy documentation here.