Follow the step-by-step video tutorial.
- Install “Google Tag Manager for WordPress” (GTM4WP) plugin from https://wordpress.org/plugins/duracelltomi-google-tag-manager/ and activate it.
- In the Settings menu, choose “Google Tag Manager”.
- In the General tab, enter GTM ID and click “Save changes”.
- Switch to “Basic data” tab and in the “Posts” sub-tab check all checkboxes. Click “Save changes”.
- Switch to “Search” sub-tab (under “Basic data”) and check “Search data”. Click “Save changes”.
- You can test that WordPress variables are pushed to Google Tag Manager dataLayer. You can use for example Chrome extension called “Datalayer Checker”.
- Or you can use more complex Chrome extension “Analytics Debugger” that shows dataLayer and Google Analytics events.