Google Tag Manager Overview, Setup & Installation, Tags, Triggers, Variables and the Data Layer

Google Tag Manager is a tag management system that allows you to quickly and easily update tags and code snippets on your website or mobile app, such as those intended for traffic analysis and marketing optimization. You can add and update AdWords, Google Analytics, Firebase Analytics, Floodlight, and 3rd party or custom tags from the Tag Manager user interface instead of editing site code.

What is a tag?
A tag is a snippet of code that sends information to a third party, such as Google. If you don't use a tag management solution such as Tag Manager, you need to add these snippets of code directly to files on your website or mobile app.

Setup for web
To manage tags using Tag Manager:

Go to tagmanager.google.com to create an account (or to access an existing account).
Create a container for your site in the account.
Add the container snippet to your site.
Migrate any hardcoded tags (such as AdWords or DoubleClick tags) from your site’s source code into Tag Manager.


Setup for mobile apps
Google Tag Manager for mobile apps is integrated with Firebase. Firebase is Google’s mobile app platform, which provides end to end development tools and analytics.

To setup Tag Manager for mobile apps:
Go to tagmanager.google.com to create a Tag Manager account (or to access an existing account).
Create a container for your app in the account (select the "Mobile Apps" option).
Select the appropriate container type (Android, iOS) and SDK version (Firebase, Legacy SDKs)

Setup and installation

Install Tag Manager to add and manage Analytics page view tags, AdWords Conversion Tracking tags, and others in the Tag Manager user interface.

Create a new account and container

  1. In Google tag Manager, click Accounts and then Create account.
  2. Enter an account name and optionally indicate whether you'd like to share data anonymously with Google and others.
  3. Click Continue.
  4. Enter a descriptive container name and select the type of content: Web, AMPiOS, or Android.If setting up a mobile container, select whether you're using the Firebase SDK or one of the legacy SDKs.
  5. Click Create.
  6. Review the Terms of Service and click Yes if you agree to those terms.
Install a container in your content

  1. In Google tag Manager, click Workspace.
  2. Near the top of the window, find your container ID, formatted as "GTM-XXXXXX".
  3. Click your container ID to launch the Install Tag Manager box.
  4. Copy and paste the code snippets into your website as instructed, or download and install the appropriate mobile SDK. Below are tips for each content type.
  5. Verify or troubleshoot your installation with Tag Manager's Preview Mode and the Tag Assistant Chrome extension.
Note: 
  • Place the <script> code snippet in the <head> of your web page's HTML output, preferably as close to the opening <head> tag as possible, but below any dataLayer declarations.
  • Place the <noscript> code snippet immediately after the <body> tag in your HTML output.

Add, update and publish tags

Now that a container is installed, you're ready to add new tags in Google Tag Manager.
  1. In Google Tag Manager, click Accounts and select your account.
  2. Click Tags from the navigation menu. Learn more
    • To add a tag: Click New. Select the tag type (for example, Google Analytics) and specify triggers for when the tag should fire.
    • To edit a tag: Click a tag in the list and make changes on the "Edit Tag" page. For example, you might update the triggers for when the tag should fire.
    • To delete a tag: Click a tag in the list. On the "Edit Tag" page, click the More menu in the upper right corner of the screen and choose Delete.
  3. Previewing gives you an opportunity to perform quality assurance (QA) on your site or app and make sure everything looks and behaves as expected. On the web, you can use the debugging option to see which tags fire as you browse and interact with the site.
    • From any web page in a workspace with unpublished changes, click the arrow next to "Publish" to expose more options, then click PreviewLearn more about previewing and debugging
    • For mobile apps, read the developer documentation for Android and iOS.
  4. When you're ready, click Publish in the upper-right corner of the screen to begin publishing your changes. Enter a Version Name and Version description to describe what was changed, then click Publish.




New Google Tag Manager users will learn how accounts are organized and how containers, tags, triggers, and variables are used.


Original Source: Google Tag Manager overview


Comments

Popular posts from this blog

How to Know and Analyze Competitor in SEO

Social Bookmarking

Press Release