Define social media profiles with markup

Google uses structured data to show information about a website on their search results pages. Needless to say, it is a good pratice from an SEO point of view to use microdata when possible.

When performing a Google search for a brand name, you are often greeted with an information box on the right side of the search results. This box includes information about your query; in the case of ‘Google Inc.’ you are shown some basic information such as the current CEO, an introduction text and social media profiles (including social media icons) for the major social platform (i.e. Facebook, LinkedIn, Google+, Twitter and Google’s YouTube).

Search result for Google Inc. structured dataYou can have Google show this information for your own website as well. For this information to show up, you have to specify your social profiles to Google with the use of markup code. Currently, Google supports these types of social profiles: Facebook, Twitter, Google+, Instagram, YouTube, LinkedIn, Myspace, Pinterest, SoundCloud and Tumblr.

When you are an organisation, use the following markup with JSON-LD:

Replace "@type" : "Organization" with "@type" : "Person" if you want to include your personal social media accounts (e.g. for your personal homepage rather than the company page). This piece of code should be inserted into your <head></head> tags of your HTML document(s).

Or, instead of JSON-LD, you could rather implement the markup code:

Instead of <span></span>, you could also work with a <div></div>. And again, in this example you can swap Organization for Person, depending on your use case.
When you finished implementing the correct markup into your webpage(s), you should check for valid code to verify search engines correctly identify your code as intended.

All good!

All good! If you want to learn about, I have plenty of posts about structured data and I often write about WordPress too.


Author Bio

Thank you for your interest in my blog! On this miniblog, I write mostly short (technical) blog posts that might interest other people. Read more about me or feel free to contact me.


14 thoughts on “Define social media profiles with markup

  1. Hi Thomas,

    Just wanted to ask you one question.
    On what pages do you recommend the structured markup be placed? All of them? Just the homepage?


  2. Is JSON-LD the only way to do this? Cause I have no idea what that means or how to work with it. Is there a regular microdata markup for social networks? Thanks.

  3. Hello I have done it in the past but always misses one/two/three of the Social media accounts that I added on the script.

    What could be the problem?

  4. Thanks a lot for putting nice article on google structured data markup, i am a legal professional, no knowledge of structured data markup but due to your guidance i did google structured data markup.

    1. Hello Sinul
      thanks for your comment.
      Great to read that you have succesfully implemented structure data on your website. I’m glad the instructions were clear to you.
      Have a nice day

  5. Thank you for sharing this informative and well-structured blog post. The topic you covered is relevant, and your explanations were clear and concise. To delve deeper into this subject, click here. Well done!

Leave a Reply

Your email address will not be published. Required fields are marked *