fbpx

Using Correct Canonicals and Meta Robots for Parameters

Checking and Setting Up Canonical URLs and Meta Robots Tags for URLs with Parameters

Ensuring that URLs with parameters have the correct canonical tags and meta robots tags is crucial for preventing duplicate content issues and ensuring proper indexing by search engines.

Shopify

In Shopify, you can manage canonical tags and meta robots tags through the theme’s Liquid files. Here’s how you can do it:

Step 1: Edit the theme.liquid file

Navigate to Online Store > Themes > Actions > Edit Code. Open the theme.liquid file.

Step 2: Add Canonical Tags

Insert the following code within the section to set up canonical tags:

This code dynamically sets the canonical URL for each page.

Step 3: Add Meta Robots Tags

To add meta robots tags, insert the following code within the section:

Adjust the content attribute as needed (e.g., noindex, nofollow for pages you don’t want indexed).

WooCommerce (WordPress)

In WooCommerce, you can manage canonical tags and meta robots tags using an SEO plugin like Yoast SEO. Here’s how:

Step 1: Install and Activate Yoast SEO

Go to Plugins > Add New, search for Yoast SEO, and click Install Now. Once installed, click Activate.

Step 2: Configure Canonical URLs

Yoast SEO automatically adds canonical tags to your pages. To verify or customize them, edit the page or product, scroll down to the Yoast SEO meta box, and click on the Advanced tab. Here, you can set a custom canonical URL if needed.

Step 3: Configure Meta Robots Tags

In the same Yoast SEO meta box, under the Advanced tab, you can set the meta robots tags. Choose the appropriate settings for Meta robots index and Meta robots follow based on your requirements.

By following these steps, you can ensure that your URLs with parameters are correctly set up with canonical and meta robots tags, helping to improve your site’s SEO performance.