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
          • Using # in parameters?
            1
            1
            33

          • Using a 302 redirect for language variants. How should I use the canonical?
            GPainter
            GPainter
            0
            4
            50

          • Do you get penalized in search results when you use a heading tag, but it's not technically a heading (used for emphasis)?
            MattRoney
            MattRoney
            0
            4
            95

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

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

          • Ideally should a 301 or 302 redirect be used from https://www.site.com to http://www.site.com? Is there a valid reason to use a 302 in this situation or would using a 301 have any negative impact on seo?
            Unity
            Unity
            0
            2
            317

          • Would duplicate listings effect a client's ranking if they used same address?
            MiriamEllis
            MiriamEllis
            0
            6
            305

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

          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