Dynamic page link throwing error on Google search console

#192688
  • Resolved Amol Jadhav
    Rank Math free

    Hi,

    I have added multiple dynamic page links to site map using rank_math_add_custom_dynamic_url function. However, I am getting error on Google search console for these URLs.- “Duplicate, submitted URL not selected as canonical” Please let me know what is wrong with this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Amol Jadhav
    Rank Math free

    I am using shortcodes on the page.

    Prabhat
    Rank Math agency

    Hello,

    Thanks for contacting us and we regret the inconvenience caused.

    I checked your sitemap and I was able to find a long list of product comparison links with different compareids.

    I checked the source of these links and I was unable to find a Canonical tag. I removed the query string (?compareids=) from the URL and still, there were no canonical tags found. The only place (in those URLs), where the canonical tag is present is the homepage.

    It is likely that Google might be picking the URL before the query string and marking it as duplicate content.

    However, could you please share a screenshot of the error in your Google Search Console account, using a tool like imgur.com, as it’ll help us understand the insights of the issue.

    Looking forward to helping you.

    Thanks.

    Amol Jadhav
    Rank Math free

    Here is the image link: https://imgur.com/tXQaqOW

    Prabhat
    Rank Math agency

    Hello,

    Thanks for your reply.

    As mentioned in my previous reply, there are no canonical tags set on the product comparison pages, and due to this Google is treating the pages as duplicates.

    You can modify and use the below filter to create a condition for selecting the product comparison pages and adding canonical tags accordingly.

    /**
     * Allow changing of the canonical URL.
     *
     * @param string $canonical The canonical URL.
     */
    add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
    	return $canonical;
    });

    If you’re not sure, then you may also hire a developer to do this for you.

    Hope this helps.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The ticket ‘Dynamic page link throwing error on Google search console’ is closed to new replies.