Enhancing your Wix website's functionality with Google Tag Manager (GTM) can significantly improve your analytics and marketing strategies. GTM enables you to add and manage various tracking codes and tags on your site - without needing to modify your Wix code or engage a developer. Let's dive into the process of integrating Google Tag Manager with your Wix site.
Before we begin, ensure that you have correctly installed Google Analytics (GA) tracking code in your Wix site. Although this guide focuses on Google Analytics, GTM can manage tags from other platforms like Facebook Pixel, LinkedIn, and more, expanding your site's tracking capabilities.
Setting up Google Tag Manager
Setting up GTM involves several steps, including creating a GTM account, installing GTM on your Wix site, and verifying the setup. Once completed, you can start using the platform to manage your tracking codes.
After installing GTM on your Wix site, the next step is to verify its functionality by triggering a test event in GA. This confirms that your GTM setup is working correctly and helps you troubleshoot potential issues.
Creating a GTM Account and Container
Start by signing in to Google Tag Manager (gtm.google.com) and clicking "Create Account". Provide your account details and click "Create". This creates your GTM account and a container, which represents a group of tags for your website.
Next, accept the privacy policy and terms of service, then click "OK". The system generates a unique GTM code, which you'll install on your Wix site. Keep this window open for the next set of instructions.
Installing GTM on Wix
Log in to your Wix Editor. From the left-hand menu, click "Settings", then "Advanced". Click "General" and scroll down to find "Tracking Code". Here, you can add customized code to the and sections of your site.
Paste the GTM code snippet (excluding the script tags ) into the "Custom Code" field in the section. Click "Save", then preview and publish your site. Make sure not to close the browser window where you generated the GTM code, as you'll need it to verify the installation later.
Managing Tags with Google Tag Manager
After setting up GTM on your Wix site, you can start managing your tracking codes. Here, we'll discuss adding, editing, and deleting tags in GTM.
Remember that you can only push data to GA when the corresponding GA tracking code has been installed in your Wix site. For custom HTML tags like Facebook Pixel, you'll need to add this tracking code additionally after installing the tag in GTM.
Adding a New Tag
From your GTM dashboard, click "New Tag" to add a new tag. Choose the trigger and tag type (for standard tags like GA, AdWords, etc.) or enter custom HTML for Facebook Pixel, LinkedIn, etc. Fill in the required fields according to the tag type and click "Done".
Next, choose an existing trigger or create a new one. For example, you might create a new trigger for 'All Pages' if you'd like your GA tracking code to fire on every page load of your Wix site. Once you've configured your trigger, click "Done" to save your new tag.
Editing and Deleting Tags
To edit a tag, click its name from your GTM dashboard. It will open the tag edit mode, where you can make changes as required. Click "Update" to save your changes.
To delete a tag, click the "Trash" icon next to the tag name. Confirm the deletion by clicking “Delete”. Keep in mind that deleting a tag will remove the related tracking code from your Wix site.
Congratulations! You've successfully integrated Google Tag Manager with your Wix site, allowing for better analytics management. Keep exploring GTM's capabilities to unlock insights, optimize your marketing strategies, and grow your business. Happy tracking!