SEO Structured Data Recipe for GTM

March 20, 2017
By Bounteous

Adds structured data to a page for search engines, including examples for an organization’s name, logo, and social links, and a site search query. You will need to adapt the values to represent your organization and website.

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.

Ingredients

Tags

CU - SEO - Structured Data - LunaMetrics Plugin

 

    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 Company Info

    Update the Tag named CU – SEO – Structured Data – LunaMetrics Plugin to reflect your own organization, link to logo, social links, etc. See Google’s documentation of structured data for more information, and use their Structured Data Testing Tool to verify.

     

    4. Preview & Publish

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