Clear Business

  • Home
You are here: Home / Uncategorized / How to Set Up and Install Google Tag Manager On Your Website

How to Set Up and Install Google Tag Manager On Your Website

By Clear Business

 

1) Create Your Account

You’ll need a Gmail account to get started. Once you have that, go to  https://www.google.com/analytics/tag-manager and log in. It will then ask you to create an account. For the name, use your company name.

2) Create Your Container

The “container” is your website. Enter the URL there.

3) Accept The Terms and Conditions

03-Terms

4) Install Your Google Tag Manager Code

This code will need to be placed on every page of your website, immediately after the <body> tag.

04-Install-Code

If you are using WordPress, you can use a plugin or your theme’s function file. The following code will work if your site is running on the Genesis Framework. Put it in your theme’s function.php file.

add_action(‘genesis_before’, ‘google_tag_manager’);
function google_tag_manager() { ?>
***INSERT CODE HERE***
<?php
}

*If you are manually adding your code, remember to place it immediately after the <body> tag.

If you are not using the Genesis Framework, but still running WordPress, here is another way to install Google Tag Manager on your WordPress website.

  1. Log into your admin dashboard and click on Appearance.
  2. Click on Editor
  3. On the right side, click on Header (header.php)
  4. Paste your code after the <body> tag

If you need more assistance, please leave a comment below.

5) Publish Your Tag

Go back to your Google Tag Manager account and look for the green box that says “Container Not Published” and click on the green box.

05-container-not-published

Then in the far right column under “Actions” click on “Publish.”

06-publish-container

Next, confirm that you want to publish.

07-confirm-publish

6) Verify Your Google Tag Manager Code is Properly Installed

  1. There is a plugin for the Chrome web browser called Google Tag Assistant that will tell you if your code is properly installed. Download it here (you must have Google Chrome browser installed and using it).
  2. After the plugin is installed, open a new browser window and go to your website. In the top right corner of your browser window, you should see an icon that looks like this:
    google-tag-assistant Click that icon.
  3. You should see this window open up. Click the blue “Enable” button
    tag-assistant-inactive
  4. The plugin should now be activated and the window should look like this:
    tag-assistant-active
  5. Refresh your browser window, and you should see this:
    08-gtm-installed

Google Tag Manager is now installed. In the next part of this series, I’ll show you how to install Google Analytics using Google Tag Manager.

  • Facebook
  • Twitter
  • Google+
  • LinkedIn

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This Website is For Sale

Interested in purchasing this website?
Contact: sales@clearbusiness.com

Categories

  • Book Summaries
  • Email Marketing
  • Search Engine Optimization
  • Social Media
  • Uncategorized
  • Advertisers Disclaimer
  • Medical Disclaimer
  • HIPAA Disclaimer
  • Earnings Disclaimer
  • Privacy Policy
  • DMCA Notice
  • Terms Of Use

© Copyright · Clear Business® · All Rights Reserved · Blog