Mobile app version of vmapp.org
Login or Join
Shanna517

: Can I have multiple JSON-LD scripts in the same page? The below script appears if I check the “Display the site links search box” in All in One SEO General Settings: <script type="application/ld+json">

@Shanna517

Posted in: #Html #JsonLd #SchemaOrg #Script #Seo

The below script appears if I check the “Display the site links search box” in All in One SEO General Settings:

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite", "name": "mywebsite.com", "potentialAction": {
"@type": "SearchAction",
"target": "http://mywebsite.com/?s={search_term}",
"query-input": "required name=search_term"
}, "url": "http://mywebsite.com/"
}
</script>


The below script appears if I configure the social sites under Social Meta:

<script type="application/ld+json">
{ "@context" : "http://schema.org",
"@type" : "Organization",
"name" : "My Website",
"url" : "http://mywebsite.com",
"sameAs" : ["https://www.facebook.com/mywebsite","https://plus.google.com/+mywebsite","https://twitter.com/mywebsite"]
}
</script>



Can I have multiple ld+json scripts in the same page?
If yes, what is the significance of the two scripts?
Do I need to configure additional parameters for these scripts or this is enough to boost my site's SEO ranking?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shanna517

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sims2060225

Yes, you can.
The first script indicates the URL of internal site search to be shown in Google SERP between your main entry and sitelinks. The second script indicates your social media accounts to be shown in the Knowledge Graph.
The scripts don't boost your rankings, they just give Google clues about what to include in the SERP if your site is strong enough to have a search box or your brand is important enough to get a Knowledge Graph box.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme