How to enable site data variables?
Those variables are disabled by default, you will need to set the corresponding checkbox on the options page:
- Go to Settings / Google Tag Manager on your WordPress admin area
- Click on the Basic data tab
- Click on the SiteÂ subtab
- Put a check mark into the boxes shown on that page
Enabling this will allow you to access theÂ following Data Layer Variables on all pages:
This will include the ID of the currently shown blog in a WordPress Multisite environment.
This will include the name of the currently shown blog in a WordPress Multisite environment.