SEO and tracking
Page titles, meta descriptions, noindex rules and the Google Tag Manager container.
SEO and tracking
Search metadata on this store comes from three layers. An unexpected title or description usually means one layer has overridden another.
Shopify Admin holds the per-page title and description you type on a product, collection or page.
The Plug in SEO Plus app owns a set of templates in theme settings that can generate or truncate titles and descriptions. Whether these override what you typed in Admin depends on one checkbox per group.
The theme layout adds a few rules of its own, including the noindex behaviour described below.
Edit a single page's title or description
- Open the product, collection, page or article in Shopify Admin.
- Scroll to Search engine listing and click Edit.
- Set the page title and meta description.
- Save.
Edit a specific page here. Use the templates only when you want to change every page of a type at once.
Edit the templates
- In the theme editor, open Theme settings, then SEO - Page Titles or SEO - Meta Descriptions.
- Edit the template for the page type you care about. There is one for Homepage, Page, Search, Product, Collection, Catalog Page, Blog, Article and 404, plus a Default.
- Save.
Each group has a checkbox reading Also apply templates to manually entered page titles, or the equivalent for meta descriptions. Leave it off. Turning it on makes the template overwrite what someone typed in Shopify Admin, which is rarely what anyone wants and is hard to notice.
Maximum length (characters) cuts off anything past the limit without a warning.
Stop a page being indexed
- In the theme editor, open Theme settings, then SEO - Exclusions.
- Add one path per line to Noindex Pages, matching the path exactly, for example
/pages/internal-promo. - Save.
The theme adds noindex to any page whose path appears in that list.
Two other noindex rules run automatically and are not editable in theme settings. Any product tagged no-index is
excluded. Any page showing a tag filter is excluded, which stops filtered collection views competing with the collection
itself.
Change the Google Tag Manager container
- In the theme editor, open Theme settings, then GTM Tracking.
- Confirm Enable GTM Tracking is on.
- Set Enter GTM ID to the container ID, in the form
GTM-XXXXXXX. - Save.
Changing the container ID redirects every event on the storefront. Coordinate it with whoever owns the analytics property, and check a live page's data layer afterwards rather than assuming it worked.
Structured data
Structured data also comes from Plug in SEO Plus, under Theme settings, SEO - Structured Data. It carries the logo, the social profile links used in the organisation markup, and the review app the markup should read ratings from.
Set Review App to match the review app actually installed. A mismatch produces structured data claiming ratings that no page shows, which search engines can flag.
Verify the change
- Open the affected page in a private window.
- View source and search for
<title>and<meta name="description". - For a noindex change, search for
<meta name='robots'. - For GTM, open the browser console and check
dataLayeris populated.
Do not judge the result from a search engine listing. Those take days to refresh and will show you the old version long after the theme is correct.
Developer map
| Concern | Source |
|---|---|
| Title, canonical and robots tags | layout/theme.liquid |
| Noindex path list | config/settings_schema.json, SEO - Exclusions group |
| Google Tag Manager snippet | snippets/gtm.liquid |
| Social and Open Graph tags | snippets/social-meta-tags.liquid |
| Plug in SEO Plus settings | config/settings_schema.json, the four SEO groups |
The SEO template settings are owned by an installed app rather than by this repository. See Third-party apps.