Introduction
Google Tag Manager (GTM) is a powerful tool that allows website owners to manage and deploy various tags (such as tracking codes, pixels, and analytics scripts) without modifying the website's code directly. By using GTM, you can streamline the process of integrating third-party services like Google Analytics, Facebook Pixel, or custom HTML scripts, all from a centralized dashboard.
In this guide, we’ll walk you through how to configure Google Tag Manager on your eDirectory site and add custom tags to ensure your tag needs are fully met.
Steps to Configure Google Tag Manager on eDirectory
1. Create a Google Tag Manager Account
- Log in to your Google account and visit Google Tag Manager.
- Click the "Create Account" button.
- Enter an Account Name (e.g., your company name).
- Under Container Name, input your website domain in this format:
www.yoursite.com
. Replace "yoursite.com" with your actual domain name. - Select Web as the target platform and click Create.
Note: To configure Google Tag Manager, your eDirectory website must have a live domain (URL). If your website domain needs to be updated, contact our support team at [email protected].
2. Accept the Terms of Service
- Review the terms and conditions.
- Check the box and click Yes to proceed.
3. Retrieve the GTM Code
- Once the account setup is complete, two scripts will appear on your screen. Click OK to continue.
- In the GTM dashboard, click the Admin button.
- Copy the Container ID (e.g., GTM-XXX).
4. Add the GTM Code to Your eDirectory Website
- Log in to your eDirectory Site Manager.
- Navigate to Settings → Google Integrations → Google Tag Manager.
- Paste the GTM Container ID into the provided field.
- Enable the Google Tag Manager option and save your changes.
After completing these steps, Google Tag Manager will be successfully configured on your eDirectory website.
Adding Tags (Scripts) in Google Tag Manager
Once GTM is set up on your site, you can begin adding tags (scripts) to track user activity or integrate additional tools.
1. Create a New Tag
- In your Google Tag Manager dashboard, go to Tags → New.
2. Create a Custom HTML Tag
- Click on Tag Configuration.
- To create a custom tag, select Custom HTML.
- Name your tag and paste your script into the HTML field.
- Under Triggering, select All Pages to ensure the script applies site-wide.
- Click Save to confirm.
3. Submit and Publish Your Tag
- After creating a tag, click the Submit button to apply changes to your site.
- Add a name and short description for the update, then hit Publish.
- Once published, you’ll see a confirmation message indicating the tag is live on your site.
Conclusion
Google Tag Manager simplifies managing your website's scripts, ensuring consistent and efficient deployment. With the ability to create, update, and manage tags from one platform, GTM is an essential tool for optimizing your site.
By following this guide, you’ll have GTM fully configured on your eDirectory site, allowing you to take control of your website's needs seamlessly.