• Resolved Tom

    (@tomwenk)


    Hey, I am currently trying to build the product pages in my Woocommerce shop with Elementor and to implement the reviews via “Site Reviews”. Unfortunately, my aggregate ratings do not get into the SCHEMA for Google, so the stars cannot be played.

    Can someone help me?

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    Have you enabled the schema option on the shortcode?

    [site_reviews_summary schema=true]

    Please read the Help > Shortcodes page for more info.

    Thread Starter Tom

    (@tomwenk)

    already integrated ‘schema=”true”‘ .. that’s the point..

    Plugin Author Gemini Labs

    (@geminilabs)

    The schema is working correctly for the page URL you provided in your first post. You can test this yourself here: https://search.google.com/test/rich-results

    Please note that while the schema is correct and your page is eligible for rich results, Google does not guarantee them.

    Thread Starter Tom

    (@tomwenk)

    Hey, can you check the page again please? It worked because I reactivated WooCommerce reviews. With your plugin it looks like this:

    I use the shortcode:
    [site_reviews schema= “true” assigned_to=”post_id” pagination=”ajax” display=”5″]

    To make the whole thing more beautiful, I use several shortcodes from your plugin and hide individual elements (see below on https://testhelden.com/produkt/bundeswehr-einstellungstest/). But I only use the code ‘schema = “true”‘ in a shortcode as described.

    Plugin Author Gemini Labs

    (@geminilabs)

    Make sure the are no spaces in the shortcode options.

    You are doing this:

    schema= "true"

    It should be this:

    schema="true"

    Or this:

    schema=true

    Thread Starter Tom

    (@tomwenk)

    A rich snippet test detects 2 products. Everything is fine for one, for the other aggregate rating and review are not recognized.
    Do you know what can be the reason? My SEO plugin (Rank Math) does not recognize the stars in its preview either. However, when I give a rating via WooCommerce, they are recognized and displayed. So there has to be a mistake somewhere, right?

    Plugin Author Gemini Labs

    (@geminilabs)

    The Product schema that is correct is the one from Site Reviews. You can confirm this by comparing both schemas.

    Site Reviews adds a @id property to the schema when you select “Product” as the schema type. It does this in order to link the Site Reviews schema with the Woocommerce schema (if you are using Woocommerce).

    Additionally, since you added the schema option to the [site_reviews] shortcode, the Site Reviews schema includes “Review” schema for each of the visible reviews on the the page.

    If you are not using Woocommerce and want to link your Site Reviews Product schema to another existing schema on your page, make sure to add an @id property to your other schema that matches the @id that Site Reviews uses.

    Something like this:

    <?php
    
    $idProperty = get_permalink().'#product';

    Keep in mind that the schema properties of whichever schema is loaded first on the page will take precedence.

    • This reply was modified 4 years, 4 months ago by Gemini Labs.
    Thread Starter Tom

    (@tomwenk)

    The second scheme comes from my SEO plugin Rank Math, which is generated. When I do this, I only see a schematic. Is there a way that I can connect the two?

    Plugin Author Gemini Labs

    (@geminilabs)

    As explained, the @id schema property can be used to link multiple schema together.

    You will need to contact the “SEO plugin Rank Math” support team and ask them how to add a custom @id property to the schema on a per-page basis.

    Thread Starter Tom

    (@tomwenk)

    good Morning. The support gave me the following code snippet so that everyone in the rankings can change Maths. Do you know what I was dealing with now? ?? Best regards

    **
    * Filter to change the schema data.
    * Replace $schmea_type with schema name like article, review, etc.
    * @param array $entity Snippet Data
    * @return array
    */
    add_filter( “rank_math/snippet/rich_snippet_{$schema}_entity”, function( $entity ) {
    return $entity;
    });

    Plugin Author Gemini Labs

    (@geminilabs)

    As this issue is being caused by a different plugin, you really should be having them assist you with this.

    Based on the code above, I’m guessing it would be something like this…but you will need to confirm this with them.

    **
     * Filter to change the Rank Math schema data for Product.
     * @param array $entity
     * @return array
     */
    add_filter('rank_math/snippet/rich_snippet_product_entity', function ($entity) {
        $entity['@id'] = get_permalink().'#product';
        return $entity;
    });
    Thread Starter Tom

    (@tomwenk)

    Hey, first of all thank you for your extremely positive support! I have already written to RankMath support (https://support.rankmath.com/ticket/rankmaths-x-site-reviews-issue/) with your input. You are doing a strong job! Exactly the code brought the two schemes together! Thank you so much! I will definitely recommend the Site Reviews plugin based on your support and i will use it in future customer projects. Thank you!!

    Hello,

    I have the same problem, review does not appear in rich snippets when I use https://search.google.com/test/rich-result. Where should I paste this code please ? [site_reviews_summary schema=true]. May be I did a mistake.

    Regards

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘aggregateRating SCHEMA doesn’t worki’ is closed to new replies.