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. Effective use of hReview

    Effective use of hReview

    Technical SEO Issues
    3 3 668
    • 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.
    • themegroup
      themegroup last edited by

      Hi fellow Mozzers!

      I am just in the process of adding various reviews to our site (a design agency), but I wanted to use the ratings in different ways depending on the page.

      So for the home page and the services (branding, POS, direct mail etc) I wanted to aggregate relevant reviews (giving us an average of all reviews for the home page, an average of ratings from all brand projects and so on).

      Then, I wanted to put specific reviews on our portfolio pages, so the review relates specifically to that project. This is the easiest to do as the hReview generator is geared up for reviews that come from one source, but I can't find a way of aggregating the star ratings to make an average rating rich snippet.

      Anyone know where I can get the coding for this?

      Thanks in advance!

      Nick.

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

        Hi
        This code will help you for aggregating the star ratings to make an average rating rich snippet. 
        
        The following code represents an aggregated review of L'Amourita Pizza.
        
        L’Amourita Pizza
        9 out of 10, based on 24 ratings.
        5 user reviews.
        
        **Second one is this**
        

        Mediterranean Wraps

        Customers flock to this small restaurant for their
        tasty falafel and shawerma wraps and welcoming staff.
        4.5 out of 5
        based on 17 reviews

        
        

        <code>// build average ratings html
        $average_rating = 'Average Rating: ';</code>

        
        
        1 Reply Last reply Reply Quote 1
        • CenturionSigns
          CenturionSigns last edited by

          Looks like the above code might be a bit wrong/ out of date. Current format should be:PUT YOUR PRODUCT, BUSINESS OR SERVICE HERE REVIEW SUMMARY HERE. I.E. WHAT YOUR CUSTOMER IS SAYING IN THE REVIEW 4.5 out of 5 based on 17 reviewsI've also replace the H3 tag with standard span tag, as each person might want the info formatted slightly differently. You can, of course, easily change the numerical ratings of the system. E.g. if your average rating is 7 out of 10, then 7 is the average and 10 is the best.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Should we use Cloudflare
            BlueprintMarketing
            BlueprintMarketing
            1
            3
            536

          • Canonical homepage link uses trailing slash while default homepage uses no trailing slash, will this be an issue?
            Deacyde
            Deacyde
            0
            3
            1.3k

          • John Mueller says don't use Schema as its not working yet but I get markup conflicts using Google Mark-up
            adamxj2
            adamxj2
            0
            6
            198

          • Does using data-href="" work more effectively than href="" rel="nofollow"?
            Everett
            Everett
            0
            3
            18.1k

          • What hosting companies do you use & do you use dedicated servers
            ClaireH-184886
            ClaireH-184886
            0
            5
            297

          • How do I properly use the canonical tag to avoid negative effect from having identical content on 2 url’s?
            RobertFisher
            RobertFisher
            0
            2
            291

          • Should I be using use rel=author in this case?
            AlanBleiweiss
            AlanBleiweiss
            0
            2
            427

          • Is a 302 useful here?
            RobMay
            RobMay
            0
            3
            318

          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