If you’ve been using Google My Business to manage your business’s online presence, you may be wondering how to link your Google reviews to your Squarespace website. There are a few different ways to do this, and we’ll walk you through each one.
The first way to link your Google reviews to Squarespace is to use the Google Places API. This will allow you to display your reviews on your Squarespace website using a widget or plugin.
There are a few different plugins available, but we recommend using the WP Google Places Review Slider plugin. This plugin is easy to use and has a variety of features that will allow you to customize how your reviews are displayed.
Once you’ve installed the plugin, you’ll need to generate a Google Places API key. You can do this by following the instructions here.
Once you have your API key, you’ll need to add it to the plugin settings page. Once you’ve done that, you should start seeing your reviews appear on your website.
If you’re not comfortable using a plugin or if you’re looking for a more custom solution, you can also use the Google Places API to manually add your reviews to your Squarespace website. To do this, you’ll need to create a new page or post on your Squarespace website and then insert the following code:
Replace YOUR_API_KEY with your actual API key
< script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places" >< /script >
< script type="text/javascript" >
var placeId = 'ChIJN1t_tDeuEmsRUsoyG83frY4'; // Replace this with the ID of the place for which you want to display reviews
var request = {
placeId: placeId
};
var service = new google.maps.places.PlacesService(document.createElement('div'));
service.getDetails(request, function(place, status) {
if (status == google.PlacesServiceStatus.OK) {
// Use innerHTML property of an element on the page where you want
//to display the name and rating of the place
document.getElementById('name').innerHTML = place.name;
document.getElementById('rating').rating;
}
});
< /script >