Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

03b. Configuring Site Identity

Andrew Welch edited this page Apr 18, 2019 · 7 revisions

No Maintenance Intended

DEPRECATED

This Craft CMS 2.x plugin is no longer supported, but it is fully functional, and you may continue to use it as you see fit. The license also allows you to fork it and make changes as needed for legacy support reasons.

The Craft CMS 3.x version of this plugin can be found here: craft-seomatic and can also be installed via the Craft Plugin Store in the Craft CP.

Site Identity

These Site Identity settings are used to globally define the identity and ownership of the website.

They are used in combination with the SEO Template Meta settings to generate JSON-LD microdata, Dublin Core core metadata, Twitter Cards, Facebook OpenGraph, and as well as HTML meta tags.

The Site Owner type determines the JSON-LD schema that will be used to identity the website to search engines.

Leave any fields blank that aren't applicable or which you do not want as part of the SEO schema.

Site Ownership

  • Google Site Verification - For the <meta name='google-site-verification'> tag. Only enter the code in the content='', not the entire tag. Here's how to get it..
  • Bing Site Verification - For the <meta name='msvalidate.01'> tag. Only enter the code in the content='', not the entire tag. Here's how to get it..
  • Google Tag Manager ID - If you enter your Google Tag Manager ID here, the Google Tag Manager script tags will be included in your <head> (the script is not included during Live Preview). Only enter the ID, e.g.: GTM-XXXXXX, not the entire script code. Here's how to get it.
  • Google Analytics Tracking ID - If you enter your Google Analytics Tracking ID here, the Google Analytics script tags will be included in your <head> (the script is not included if devMode is on or during Live Preview). Only enter the ID, e.g.: UA-XXXXXX-XX, not the entire script code. Here's how to get it.
  • Automatically send Google Analytics PageView - Controls whether the Google Analytics script automatically sends a PageView to Google Analytics when your pages are loaded
  • Google Analytics Plugins - Select which Google Analytics plugins to enable. Learn More
  • Site Owner Entity Type - The type of entity that owns this website. Choose as general or specific of a type as you like. Any entity sub-type left blank is ignored.

More fields will also appear depending on the selected Site Owner Entity Type. For instance, any LocalBusiness sub-type will receive a field for Opening Hours, so that the hours that the business is open will be rendered in the Identity and Place JSON-LD microdata.

Google Tag Manager

Note that the Google Tag Manager implementation supports the dataLayer property. You can set it like any other Twig array:

{% set dataLayer = {
      'pageCategory': entry.category,
      'visitorType': 'high-value'
} %}

You can set the dataLayer Twig variable either in your templates that extend your layout.twig or in your layout.twig itself. The usual rules on Twig variable scoping apply, you just need to set the dataLayer array before the {% hook seomaticRender %} is called. Learn More

There is also a gtmDataLayerVariableName variable in config.php which allows you to control the name of the Javascript dataLayer variable.

General Info

  • Entity Name - The name of the entity that owns the website
  • Alternate Entity Name - An alternate or nickname for the entity that owns the website
  • Entity Description - A description of the entity that owns the website
  • Entity URL - A URL for the entity that owns the website
  • Entity Brand - An image or logo that represents the entity that owns the website. The image must be in JPG, PNG, or GIF format.
  • Entity Telephone - The primary contact telephone number for the entity that owns the website
  • Entity Email - The primary contact email address for the entity that owns the website

Location Info

  • Entity Latitude - The latitude of the location of the entity that owns the website, e.g.: -120.5436367
  • Entity Longitude - The longitude of the location of the entity that owns the website, e.g.: 80.6033588
  • Entity Street Address - The street address of the entity that owns the website, e.g.: 123 Main Street
  • Entity Locality - The locality of the entity that owns the website, e.g.: Portchester
  • Entity Region - The region of the entity that owns the website, e.g.: New York or NY
  • Entity Postal Code - The postal code of the entity that owns the website, e.g.: 14580
  • Entity Country - The country in which the entity that owns the website is located, e.g.: US

Organization Info

  • Organization DUNS Number - The DUNS (Dun & Bradstreet) number of the organization/company/restaurant that owns the website
  • Organization Founder - The name of the founder of the organization/company/restaurant
  • Organization Founding Date - The date the organization/company/restaurant was founded
  • Organization Founding Location - The location where the organization/company/restaurant was founded

Local Business Info

  • Opening Hours - The opening hours for this local business. If the business is closed on a given day, just leave the hours for that day blank.

Corporation Info

  • Corporation Ticker Symbol - The exchange ticker symbol of the corporation

Food Establishment Info

  • Food Establishment Cuisine - The primary type of cuisine that the food establishment serves
  • Food Establishment Menu URL - URL to the food establishment's menu
  • Food Establishment Reservations URL - URL to the food establishment's reservations page

Person Info

  • Person Gender - The gender of the person
  • Person Birth Place - The place where the person was born

You can use any Craft environmentVariables in these fields in addition to static text, e.g.:

This is my {baseUrl}