Meta Tags
Meta Tags
Description
- Meta tags are important pieces of “meta data” found in the HTML code for all of your webpages.
- Meta tags are not visible to users, but they are used by search engines (e.g., Google, Yahoo, Edge, etc.) and social media platforms (e.g., Facebook, Twitter, etc.) to gather and display important information.
- Default meta tags have been configured for all KU CMS sites.
- You have the option to override the default meta tags on each webpage of your site to control the metadata search engines and social media platforms can use.
NOTE: Meta tags are not currently available on the News Article content type. KU IT is working to resolve the issue. (9/14/21)
Benefits of Meta Tags for Search Results and Social Media
When your pages are found in organic searches on search engines (e.g., Google, Yahoo, Bing), meta tags allow you to control:
- What image is displayed
- For the image to display properly you must first create an appropriately sized image.
- What page title is displayed
- Page title and header classes are important for your SEO. See Headers for info, including guidelines and best practices.
- By default, the page title on each page includes the page title followed by the pipe symbol and the site title (e.g., About | CMS Guide).
- What description is displayed
- By default, the description for each of your webpages is comprised of the first few sentences.
- By adding a description for each page, you take control over the description that is displayed in search results.
Configure Global Image Meta Tags
- Navigate to Configuration > Search and metadata > Metatag > Settings
- Select the Metatag defaults tab (top of page to the left of Settings tab)
- Select Edit from the Operations columns for the Global type
- Under Basic Tags
- There are no image meta tags in the Basic Tags section.
- Leave all other defaults in place.
- Under Open Graph (Used by Facebook, LinkedIn, Pinterest, and other social media sites)
- Enter the URL to your preferred image in the Image URL field
- Recommended image size: 1200px by 630px
- Recommend image file type: PNG
- Leave all other defaults in place.
- Under Twitter Cards
- Leave Twitter card type set to Summary Card with large image
- Enter the URL to your preferred image in the Image URL field
- Recommended image file size: 506px by 253px
- Recommended image file type: PNG
- Leave all other defaults in place.
Configure Meta Tags on Individual Pages
- Upload image files
- Before you edit the meta tags, be sure to upload your preferred images to your IMCE file browser.
- Recommendation: Create a folder in your IMCE File Browser specifically for images used in social media meta tags, so you can find all your meta tag images easily.
- Important Note: If you are working on a development site (i.e., sitename.cms-dev…), you will need to remove “.cms-dev” from the image URL path when you place it in a meta tag field. If you do not remove the “.cms-dev” your image URL will break when your site goes live.
- Edit a given page
- NOTE: Currently meta tags are not available on pages created using the News Article content type
- NOTE: Currently meta tags are not available on pages created using the News Article content type
- From the actions menu on the right select Meta Tags
- Configure Basic Tags
- Update the Page title field as needed
- Update the Description field as needed
- Configure Open Graph
- Leave the default value for Page URL
- Update the Title field as needed
- A clear title without branding or mentioning the domain itself. 25 characters or less to optimize the content for mobile.
- Update the Description field as needed
- A clear description of your page between 100 - 150 characters.
- For thoughts on meta tag descriptions see:
- A clear description of your page between 100 - 150 characters.
- Enter the URL to your preferred image in the Image URL field
- Recommended image size: 1200px by 630px
- Minimum image size: 600px x 315px
- Recommend image file type: PNG
- Recommended file size: 100 KB (8 MB max.)
- Recommended image size: 1200px by 630px
- Except for advanced users, leave all other fields blank
- Configure Twitter Cards
- Leave Twitter card type set to Summary Card with large image
- Update the Description field as needed
- A clear description, concisely summarizing the content as appropriate for presentation within a Tweet. You should not re-use the title as the description or use this field to describe the general services provided by the website. Platform specific behaviors:
- iOS, Android: Not displayed
- Web: Truncated to three lines in timeline and expanded Tweet
- A clear description, concisely summarizing the content as appropriate for presentation within a Tweet. You should not re-use the title as the description or use this field to describe the general services provided by the website. Platform specific behaviors:
- Update the Title field as needed
- A clear title without branding or mentioning the domain itself. 25 characters or less to optimize for mobile.
- Leave the default value for Page URL
- Enter the URL to your preferred image in the Image URL field
- A URL to a unique image representing the content of the page.
- You should not use a generic image such as your website logo, author photo, or other image that spans multiple pages.
- Recommended image size: 506px by 253px
- Recommended image file type: PNG
- NOTE: Only the first frame of an animated GIF will be used.
- Except for advanced users, leave all other fields blank
- Critical Last Step
- When content is shared for the first time, the social crawler will scrape and cache the metadata from the URL shared.
- The crawler has to see an image at least once before it can be rendered.
- To prevent the wrong meta data from being rendered, pre-cache your meta tags with the Facebook Sharing Debugger and Twitter Card Validator.
- Simply run the site’s URL through each URL debugger to pre-fetch metadata for the page.
- You should also do this if you update the image for a piece of content.
- Note: You may need to select “scrape again” on Facebook’s Sharing Debugger to collect new information, especially if a URL has been shared previously.