Como INSTALAR o Google ANALYTICS e TAG do GOOGLE no Tag Manager (2024)
Table of Contents
Introduction
This tutorial will guide you through the process of installing Google Analytics and Google Tag on Google Tag Manager. Understanding how to effectively track and analyze your website's performance is vital for optimizing your online presence. By following these steps, you'll be able to set up the necessary tools to gain valuable insights into your audience and website traffic.
Step 1: Create a Google Analytics Account
To begin tracking your website, you need a Google Analytics account. Follow these steps:
- Go to the Google Analytics website: analytics.google.com.
- Click on "Start for free" or "Sign in" if you already have an account.
- Fill in the required fields:
- Account Name
- Property Name
- Reporting Time Zone
- Currency
- Click "Next" and complete the setup by providing additional information as prompted.
- Accept the terms of service and click "Create".
Step 2: Create a Google Tag Manager Account
Before you can add tags to your website, you need to create a Google Tag Manager account.
- Visit the Google Tag Manager website: tagmanager.google.com.
- Click on "Create Account".
- Enter the following information:
- Account Name
- Container Name (usually your website's name)
- Target Platform (Web)
- Click "Create" and accept the terms of service.
- Once your account is created, you will receive a code snippet. Copy this code.
Step 3: Add Google Tag Manager Code to Your Website
To enable Tag Manager, you need to add the provided code snippet to your website.
- Open your website's HTML code.
- Paste the first part of the code in the
<head>
section of your website. - Paste the second part of the code immediately after the opening
<body>
tag. - Save and publish your changes.
Step 4: Set Up Google Analytics Tag in Google Tag Manager
Now that your Tag Manager is set up, it's time to create a tag for Google Analytics.
- Go back to Google Tag Manager.
- Click on "Tags" in the left sidebar.
- Click on "New" to create a new tag.
- Name your tag (e.g., Google Analytics Page View).
- Click on "Tag Configuration" and select "Google Analytics: Universal Analytics".
- Choose "Track Type" as "Page View".
- Under "Google Analytics Settings", select "New Variable" to create a variable for your Google Analytics tracking ID.
- Enter your Google Analytics Tracking ID (found in your Google Analytics account).
- Click "Triggering" and select "All Pages" to track all page views.
- Save the tag.
Step 5: Test Your Tag Configuration
Before publishing your changes, it is crucial to test if your tags are working properly.
- Click the "Preview" button in Google Tag Manager.
- Open your website in a new tab while the preview mode is active.
- Check if the Google Analytics tag fires on page views.
- If successful, exit preview mode.
Step 6: Publish Your Changes
Once you confirm that everything is working correctly, publish your changes.
- Go back to Google Tag Manager.
- Click on "Submit" in the upper right corner.
- Enter a version name and description for reference.
- Click "Publish".
Conclusion
By following these steps, you have successfully installed Google Analytics and Google Tag on Google Tag Manager. You can now track your website's performance and gain insights into user behavior. As a next step, consider exploring advanced features of Google Analytics for deeper analytics and reporting. Don't forget to regularly check your analytics data and adjust your strategies accordingly.