GTM workspace
How the workspace generator of the Magento edition works, which values each integration needs, and how to import and publish the file in Google Tag Manager.
Generating the workspace
- In the configuration of Google Marketing Tools, enter your licence order ID and your Google Tag Manager container ID (
GTM-XXXXXXX). - Enable the integrations you want and fill in their IDs (see the table below).
- Request the workspace. The extension sends your settings to devmanextensions.com, which checks your licence and builds the file.
- A message confirms the email addresses the file was sent to: the email of your licence and any additional address registered for workspaces on it. Wait a minute and check your spam folder.
- Save your configuration in the extension, so the store uses the same values.
- Import the file into Google Tag Manager and publish it (see below).
An integration that is not enabled is left out of the file. Repeat these steps whenever you add or remove an integration or change one of its IDs.
Values each integration needs
| Integration | Values |
|---|---|
| Google Tag Manager | Licence order ID and container ID. Both are required. |
| Google Analytics 4 and Enhanced Ecommerce | Your GA4 measurement ID (G-XXXXXXXXXX), typed in the Google Analytics field. Enhanced Ecommerce is added when it is enabled and a GA4 ID is filled in. A Universal Analytics ID (UA-...) adds no Analytics tags. |
| Google Optimize | Not used: Google closed Optimize in September 2023, so leave it empty. If you fill it in, it cannot be the same as the Google Tag Manager container ID. |
| Google Ads conversion | Conversion ID (numbers only) and conversion label. Both are required. |
| Standard and dynamic remarketing | Conversion ID (required) and label (optional). Optional prefix and suffix added to each product ID, so the IDs match those of your Merchant Center feed. Optional dynx compatibility. |
| Rich Snippets | No values. |
| Hotjar | Site ID. |
| Pinterest Pixel | Pinterest tag ID. |
| Crazyegg | Account number. |
| Facebook Pixel | Pixel ID, only the number. No access token is needed. |
| Bing Ads | UET tag ID. |
| Criteo OneTag | Partner ID. |
If a required value is missing, the generator does not send the file and tells you which one to fill in. See Troubleshooting.
Importing the file into Google Tag Manager
The email contains a .json file. Save it without opening or editing it.
- Sign in to Google Tag Manager and open the container whose ID you used.
- Open Admin and choose Import Container.
- Press Choose container file and select the file.
- Under Choose workspace, select your existing default workspace.
- Choose Overwrite as the import option.
- Review the summary and press Confirm.
Publishing and testing
- Press Submit at the top right of the workspace.
- Name the version, for example the date, and press Publish.
- Press Preview in Google Tag Manager, enter the address of your store and browse it: view a product, add it to the cart and place a test order. The preview shows which tags fire on each step.
Still need help?
Open a support ticket from your account and our team will look at your store with you.