The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Canonical Tag when using Ajax and PhantomJS

    Canonical Tag when using Ajax and PhantomJS

    Technical SEO Issues
    2 2 748
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RevanaDigitalSEO
      RevanaDigitalSEO last edited by

      Hello,

      We have a site that is built using an AJAX application. We include the meta fragment tag  in order to get a rendered page from PhantomJS. The URL that is rendered to google from PhantomJS then is www.oursite.com/?escaped_fragment=

      In the SERP google of course doesnt include the hashtag in the URL. So my question, with this setup, do i still need a canonical tag and if i do, would the canonical tag be the escaped fragment URL or the regular URL?

      Much Appreciated!

      1 Reply Last reply Reply Quote 0
      • Hutch42
        Hutch42 last edited by

        If you can actually load the regular URL then you should canonical to it (it is best practice to canonical all of your pages to themselves), but if going to that page just redirects to the escaped fragment then you should update how your site build is set up so that you don't have the escaped fragment any more.

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • Canonical tag use for ecommerce product page detail
          amastone
          amastone
          0
          5
          2.2k

        • Duplicate content: using the robots meta tag in conjunction with the canonical tag?
          Keszi
          Keszi
          0
          2
          321

        • Should I use canonical tag in these cases?
          LoganRay
          LoganRay
          0
          2
          55

        • Can you target multiple keywords for the same content using canonical tags?
          DougRoberts
          DougRoberts
          0
          4
          521

        • Should I use a canonical tag or 301 with Wordpress posts?
          RichardInFlorida
          RichardInFlorida
          0
          3
          56

        • Is it a good idea to use the rel canonical tag to refer to the original source?
          Searchresult
          Searchresult
          0
          5
          192

        • Using a canonical tag to eliminate ID variables?
          AlanMosley
          AlanMosley
          0
          2
          478

        • Should i use NoIndex, Follow & Rel=Canonical Tag In One Page?
          DigitalJungle
          DigitalJungle
          0
          3
          2.3k

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy