php - how do I get star rating in google search result underneath my site URL -


i want them code. not google reviews cause people need have google account that. i've looked on schema.org don't it.

so how stars in snippet

you should use aggregaterating :

<script type="application/ld+json"> {     "@context" : "http://schema.org",     "@type" : "localbusiness",     "name" : "my company",     "url" : "http://www.mycompany.com/",     "telephone" : "(+33) 1 23 45 67 89",     "email" : "info@mycompany.com",     "address" : {         "@type" : "postaladdress",         "streetaddress" : "1 rue de la place",         "addresslocality" : "paris",         "postalcode" : "75000"     },     "aggregaterating" : {         "@type" : "aggregaterating",         "ratingvalue" : "4.2",         "bestrating" : "5",         "ratingcount" : "100"     },     "openinghours": "mo-su 00:00-00:00" } </script> 

the snippet above should put before ending </html> tag, , should display score of 4.2/5 based on 100 ratings


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -