This procedure will help you place the container code, generated and provided by Google Tag Manager, onto your website. This procedure is required if you want to use Google Tag Manager on a WordPress website.
|Time needed||30 mins|
|Requires access to||Google Tag Manager and WordPress|
|Must complete, first||Create an account in Google Tag Manager|
- Login to Google Tag Manager with your Google account.
- Option 1: In Workspace, click on the container’s ID number in the top navigation bar.
Option 2: Navigate to Admin and click Install Google Tag Manager.
- Copy the <head> portion of the code to your clipboard.
- Open a new browser tab, go to your website’s WordPress Dashboard and navigate to Appearance > GP Hooks.
- Paste the <head> portion of the code into the wp_head area.
- Copy the <body> portion of the code to your clipboard.
- Paste the <body> portion of the code into the Before Header area.
- Click Save Hooks.
- In Workspace, click Preview.
- Open a new browser tab and load the website’s home page (reload it, if already loaded). The Google Tag Manager container is successfully installed, if you see the debug pane.
- In Workspace, click Leave Preview Mode and confirm OK to leave.
- Setup and installation, Tag Manager Help, accessed March 02, 2018.
- GP Hooks, GeneratePress.com, accessed March 02, 2018.
|1.0.0.||2018-03-08||First version released.|