The discussion explores how to display star ratings in search engine results (SERPs) for Discourse pages using Google Tag Manager (GTM) and JSON-LD structured data. Gulshan_Kumar outlines a step-by-step process involving GTM setup, adding JSON-LD markup, filtering triggers, and publishing the tag. neil clarifies that the GTM script can be added via Discourse settings, though Gulshan_Kumar notes it currently places in the body instead of the head, prompting a fix. neil confirms the update to place the script in the head as per Google’s updated guidelines. angus suggests an alternative using the Topic Ratings plugin, which automatically adds average ratings as structured data. PoojaPatel asks about missing star ratings in SERPs, and Gulshan_Kumar confirms the method works and the absence was intentional.
Depending on the kind of rating you’re after you can also use the ratings plugin, which automatically adds the average rating for a topic as structured data to the topic page html.