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:
siteID
This will include the ID of the currently shown blog in a WordPress Multisite environment.
siteName
This will include the name of the currently shown blog in a WordPress Multisite environment.