Hi
Can we use the HTML module in Page builder to display customer reviews using Yext review widget?
Thanks
Hi
Can we use the HTML module in Page builder to display customer reviews using Yext review widget?
Thanks
Hello!
Yext pages doesn’t have “out of the box” support for this yet, but there is a workaround, although it is pretty time-consuming.
They key is that each location has a unique widget script, so you will need to add the correct location-specific script to each page.
For example:
<script type="text/javascript" src="//sites.yext.com/XXX-reviews.js"></script>
– and this should go on the page for location A<script type="text/javascript" src="//sites.yext.com/YYY-reviews.js"></script>
– and this should go on the page for location BNote how each script has a unique identifier (XXX
and YYY
in my example)
In order to embed the correct script on the correct page, you create a custom field on your location entity and store each location-specific script as a field!
Then, you can add the HTML module and map to this custom field, which stores the script. That way, you can inject location-specific script tags dynamically per location
The part that is time-consuming is that you need to generate each review script manually by going to Knowledge Graph > Widgets > Reviews in the platform
Once you have your script tags, you can embed them on the page as I described above.
Let me know if you have any more questions.
Hi
Many thanks for the detailed answer! I’ll try that and let you know how things go…
It worked perfectly and we shortened the manual setting with bulk edit using excel upload!
Many thanks again!
Do you know if there’s a way to display average rating instead of rating/publisher?
Many thanks