Quick start
The shortest route from a fresh installation to a shop that sends GA4 and advertising data through Google Tag Manager.
What you need at hand
- Your DevmanExtensions download code, or your PrestaShop Marketplace purchase email and order reference.
- Your Google Tag Manager web container ID, in the format
GTM-XXXXXXX. Create a free web container at tagmanager.google.com if you do not have one. - The public IDs of the platforms you want to use, for example your GA4 MEASUREMENT ID (
G-XXXXXXXXXX), your Google Ads conversion ID and label, or your Facebook Pixel ID.
Steps
- Install and activate. Follow Installation and Licence activation.
- Remove old tracking code. If your theme or another module already loads Google Analytics, Google Ads, a Meta pixel or a GTM snippet, disable it. Two sources of the same tag count visits and purchases twice.
- Open the Workspace tab. Type your container ID in GTM ID. The Order ID field is filled in from your licence.
- Enable your integrations. In Browser integrations, switch on each integration you use, press Configure on its card and fill in the IDs it asks for. A typical shop enables GA4, GA4 - Enhanced Ecommerce, Google Ads conversion (compatible with Enhanced Conversions) and Facebook Pixel.
- Download the workspace. Press Download GTM workspace, check the list of enabled integrations and press Download GTM workspace again. The module saves your settings and downloads the file
google-marketing-tools-workspace.json. - Import it into Google Tag Manager. In GTM go to Admin > Import Container, choose the file, select your workspace and choose Merge. Check it in Preview mode, then press Submit to publish. Details are in GTM workspace.
- Fill in General settings. Open the General settings tab and type the same container ID in GTM Container ID. In Conversions: Order status for tracking, choose the order statuses that count as a valid sale, or leave it empty to count every status.
- Set up consent. If you sell to visitors in the European Economic Area or the United Kingdom, open the Google Consent V2 tab, keep Status enabled and adapt the texts to your shop. See Google Consent V2.
- Switch tracking on. In General settings enable Google Marketing Tools status and press Save settings.
- Test. Open your shop in GTM Preview mode, accept the consent popup, visit a product, add it to the cart and place a test order. Check that the tags fire on each step.
After the first setup
- Each time you enable, disable or change an integration, repeat steps 5 and 6. Your GTM container only changes when you import and publish a new file.
- To send your catalogue to Google Merchant Center or another channel, continue with Product feeds.
- In a multistore installation, select each shop in turn and configure it. Every shop has its own settings.
Still need help?
Open a support ticket from your account and our team will look at your store with you.