Embed Google Review Score

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tomtomg
    Senior Blueparker
    • Sep 2017
    • 346

    #1

    Embed Google Review Score

    As we have a google review score of 4.9/5 it'd be nice to embed this somewhere on the homepage. It seems that this WAS available via google but they've now removed the facilty.

    Am I missing something? Does anyone know how to do this? There seem to be plenty of premium servcies that will do it...

    It's just the overall score we're looking to show, not product reviews or comments.

    Cheers
    Tom
  • Deefer
    Senior Blueparker
    • Sep 2011
    • 2096

    #2
    I just made an image of the stars and linked it to my google reviews and posted that. Quick, free and easy.

    Comment

    • rijam
      Senior Blueparker
      • Sep 2013
      • 340

      #3
      Ours is done by Google. It shows on our homepage as 4.8 and 5 stars in a box that says customer reviews. If you click on it it takes you to the Google review page.
      Richard

      Comment

      • Dave
        Senior Blueparker
        • Dec 2007
        • 3981

        #4
        Not saying this will work but try putting the following code in the closing body section of your site template. Make sure you change "xxxxxxxx" to your Google merchant ID

        <!-- BEGIN GCR Badge Code -->
        <script src="https://apis.google.com/js/platform.js?onload=renderBadge"
        async defer>
        </script>
        <script>
        window.renderBadge = function() {
        var ratingBadgeContainer = document.createElement("div");
        document.body.appendChild(ratingBadgeContainer);
        window.gapi.load('ratingbadge', function() {
        window.gapi.ratingbadge.render(
        ratingBadgeContainer, {
        // REQUIRED
        "merchant_id": "xxxxxxxx",
        // OPTIONAL
        "position": "BOTTOM_RIGHT"
        });
        });
        }
        </script>
        <!-- END GCR Badge Code -->
        Regards,

        Dave

        Comment

        • tomtomg
          Senior Blueparker
          • Sep 2017
          • 346

          #5
          Deefer - It's an option, but Id prefer it to be a direct representation, just in case our score changes. Not the end of the world, but just one more thing to have to keep and eye on and edit in the future.

          Rijam - Thats what we're after. Any hints on how to do it?

          Dave - Thanks for that, but doesn't seem to be working (even with the merchant id in )

          Comment

          • Dave
            Senior Blueparker
            • Dec 2007
            • 3981

            #6
            Originally posted by tomtomg

            Dave - Thanks for that, but doesn't seem to be working (even with the merchant id in )
            That's very strange. Just looked at Rijam's site and they are using the code I suggested. Have you put it in the correct place ?
            Regards,

            Dave

            Comment

            • tomtomg
              Senior Blueparker
              • Sep 2017
              • 346

              #7
              Probably not

              The code has gone in Template Manager -> My Template -> Pages Tab -> Closing body

              Comment

              • Dave
                Senior Blueparker
                • Dec 2007
                • 3981

                #8
                Originally posted by tomtomg
                Probably not

                The code has gone in Template Manager -> My Template -> Pages Tab -> Closing body
                That's correct. Not sure why it's not working then.
                Regards,

                Dave

                Comment

                • Darrengregory
                  Blueparker
                  • Apr 2014
                  • 66

                  #9
                  I have the above script in the Head Section of the Custom JavaScript Code, not the Closing Body ... It works as should.
                  Darren - www.anniescloset.co.uk

                  Comment

                  • tomtomg
                    Senior Blueparker
                    • Sep 2017
                    • 346

                    #10
                    So I decided to come back and have a look at this once again. The code works fine, but having an adblocker prevents it from displaying, in my case AdBlockPlus on Chrome.

                    Comment

                    Working...