• Resolved dozza

    (@dozza)


    I’ve been trying to include client’s social profiles markup for Google to associate and display client’s social profiles in their search result knowledge graph display, as outlined here and here.

    But after adding the relevant edited script, such as follows:

    <script type="application/ld+json">
    { "@context" : "https://schema.org",
      "@type" : "Organization",
      "name" : "Scope Surveys",
      "url" : "https://scopesurveys.co.uk/",
      "sameAs" : [ "https://www.facebook.com/Scope-Surveys-Limited-1387121654735529/",
        "https://twitter.com/scope_surveys",
        "https://plus.google.com/u/1/102909348202345664181",
        "https://www.instagram.com/scopesurveys/,
        "https://www.linkedin.com/company/11248977/"]
      "logo": "https://scopesurveys.co.uk/wp-content/uploads/2017/02/FINAL-SCOPE-LOGO-AW-RGB-09_16.png",
      "contactPoint": [{
        "@type": "ContactPoint",
        "telephone": "+44-2087713477",
        "contactType": "customer support"
      }]
    }
    </script>

    the social icons never display. I’ve tested this with the structured data testing tool and I consistently get an error:

    Missing ',' or '}' in object declaration.

    I can’t work out what is causing this, but Ive only just realised that Yoast SEO is effectively duplicating this work in the Social settings area of the plugin.

    So my questions are:

    a) Is the error I see being created by having both the script markup added manually in the<head> as well as by Yoast?
    b) Should I disable Yoast or the manual mark up addition?
    c) Is the error the reason the icons are not displaying in the knowledge graph?
    d) How do I correct the error – what is wrong with my markup?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Jerlyn

    (@jerparx)

    The error is due to a syntax error. There’s a missing ‘,’ after the ‘]’ in the script as shown in this screenshot.

    If you put a comma and re-add the script, does that resolve your issue?

    Thread Starter dozza

    (@dozza)

    The error within structured data testing tool DOES disappear after I add that comma, so thank you for pointing out the syntax error for me.

    I’m now seeing 4 hentry items that correlate to client’s news posts OK.

    But I’m seeing 2 Entries for Organization (see grabs here and here

    Also, the website item offers a URL with query string (generated by define(‘ALTERNATE_WP_CRON’, true); in wp-config.php due to BackUpBuddy Plugin HTTP Loopbacks workaround – See this article). See grab here. Will this be a problem?

    Not sure how long it takes for the social icons to appear once the correct markup is in place so I won’t know for a while if this has completely fixed the issue, or if I still need to sort out that query string issue…

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    We looked at your site’s source code and we do see that there a duplicate set of JSON+LD schema for the knowledge graph and as such you are seeing two organizations in Google structured data testing tool. Unfortunately, we are unable to how the duplicate JSON+LD schema is being generated on your site.

    On the other hand, unfortunately, we are unable to confirm whether the query string would cause any issues or not as this is something not specific to Yoast SEO plugin.

    Thread Starter dozza

    (@dozza)

    @mazedulislamkhan Thanks for the reply. Looking back at this in more detail, if I remove the Social URLs from Yoast SEO > Social > Accounts and empty caches, this is then reflected in the top Organisation result in Structured Data testing tool (ID: https://scopesurveys.co.uk/#organization).

    See where I removed all social profiles then added back Instagram here

    The bottom one must be from my manually added <script> in the head. If we are having two entries for Organization, is this what is preventing the social icons appearing in Knowledge graph panel on desktop?

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Unfortunately, it is entirely up to Google to decide whether to show your Knowledge Graph in the search results. We are unable to confirm whether having multiple JSON+LD is preventing the social profiles show in the Knowledge Graph.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Social Profiles Markup’ is closed to new replies.