Google Tag Manager

Schema App now integrates with Google Tag Manager.

If you are not using WordPress and want to save time on implementation of Schema.org markup, we have good news. Google Tag Manager automates code deployment by allowing you to automatically pull JSON-LD from our Cache. However, because Google Tag manager loads the JSON-LD asynchronously, this solution only works for Google Search Engines, not Bing, Yahoo, or Yandex. Stop cutting and pasting code, and try Schema App.

How to Add the Google Tag for Schema App

  1. Get API key and instructions in Schema App. Integrations>Javascript
  2. Create a GTM account
  3. From Google Tag Manager, “Add New Tag”.
  4. Give the new tag a name, E.g. Schema App
  5. Click on Tag Configuration and choose “Custom HTML Tag”
  6. Copy and paste the javascript that was sent to you in the GTM setup document, including the <script> tags.
  7. Click on “Triggering”, choose “All Pages”
  8. Click “Publish”

Watch the video to see how to add a new Tag for Schema App. For more detailed step-by-step instructions, click here

JSON-LD Support Across Search Engines

– or –

What Works with Google Tag Manager?

The issue with Javascript is that the code is processed by the client and only Google supports content loaded by Javascript. It can be expensive for search engines and prone to errors, so Bing and Yahoo don’t officially support it. When you use JSON-LD for schema markup, you are using Javascript.

Google supports Javascript loaded content, in all Schema.org formats (Micodata, RDFa and JSON-LD). As of early 2016, JSON-LD has become the preferred format.

Bing and Yahoo will not work with Google Tag Manager because Bing does not support Javascript indexing. Bing is the crawler that powers Yahoo search. Bing officially supports Microdata and RDFa but not JSON-LD. So even if Bing supported asynchronous, their few web search use cases wouldn’t parse JSON-LD. Bing does parse Schema.org JSON-LD in their Image Feeds and Email Actions (e.g. reservations, travel, events).

Yandex has better support for Schema.org than Bing, Yahoo, but not as good as Google. They are the dominant search engine in Russia and several other countries.

If you’re looking for full support today from Bing, Yahoo and Google you have to use Microdata or RDFa (neither JSON-LD or Google Tag Manager). This is done in your page templates, within inline modification to your page template.

Javascript Code for Tag

There are two unique variable settings in this code: x­-api-­key and x­-account­-name.

  • x­-api-­key: The API Key will be the same for each implementation (every domain and sub account) and is assigned one ­per licensee (to Schema App customers).
  • x­-account­-name: A licensee can setup multiple sub-accounts, and therefore, the x-­account­-name is used to identify the sub account.

Find more examples in our step-by-step GTM setup guide

null

This example shows the x­-api-­key is consistent across multiple x-­account­-name.

Your default x-account-name is in your Account ID, found in Schema App under WordPress Plugin or Profile.  If the Account I is http://schemaapp.com/db/Hunch_Manifest then the x-account-name is Hunch_Manifest.

How It Works

  1. You add markup for a data item (entity) in Schema App.
  2. The platform generates the JSON-LD and puts it in the cache.
  3. Using the URL you defined when creating the data item, when the page loads, it queries the cache and pulls the JSON LD with your markup.

Get started with Google Tag Manager and our API Today!

Menu