Description

Adds <title> and <meta name="description"> tags to pages on your site for search engines. You will need to adapt the values to reflect your own content.

FAQ: Does it really work to add data for search engines dynamically with JavaScript in GTM?

Google will use this data in its crawls. This was first confirmed by Simo Ahava in the experiments detailed here. Other search engine behavior may vary. This method using GTM is a workaround for enhancing Google search results when other options to edit your site’s source code are not available to you.

Instructions

1. Download Container File

Download the container JSON file.

(You may need to right-click on the link and choose “Save Link As” or “Save Target As” to save the JSON file to your computer.)

2. Import JSON File into GTM

Log into your own Google Tag Manager container and head to the Admin section of the site. Under Container options, select Import Container. Check out this blog post for more details about importing a container file.

3. Update With Your Own Titles and Descriptions

Update the variables Lookup – SEO Title and Lookup – SEO Description to reflect the values you would like to use for your pages. These are lookup table variables. In the input column, enter a URL path to a page. In the output column, enter the title or description you would like to use. Titles and descriptions will only be added to the pages you list.

If you have a long list, you can use our quick spreadsheet generator for GTM lookup tables to insert the entries. Alternatively, a solution from SEER Interactive supports flexible matches and can be adapted for use in these tags.

If you only need descriptions and not titles, or vice versa, you can delete the tag and variable you are not using.

4. Preview & Publish

Use the Preview options to test this container on your own site. If everything looks good, go ahead and publish!

  • Google Tag Manager Services

    As an early adopter of Google Tag Manager, we’ve grown up with the product and now recommend it to all of our clients, in both Google Analytics and Search. Our services include Google Tag Manager implementation, integration, and training for your team.

  • Google Tag Manager Trainings

    Learn the ins and outs of Google Tag Manager in this full-day, hands-on workshop geared towards both Web Marketers and Website Professionals. Offered around the country, you'll complete a full implementation in our custom sandbox environment.

  • Google Tag Manager Book for Developers

    Looking for a more complete collection? Check out our recently published book, "Practical Google Analytics and Google Tag Manager for Developers" covering the essentials for implementing Google Analytics through Google Tag Manager.

Contact Us.

LunaMetrics

24 S. 18th Street, Suite 100,
Pittsburgh, PA 15203

Follow Us

1.877.220.LUNA

1.412.381.5500

getinfo@lunametrics.com

Questions?
We'll get back to you
in ONE business day.