Google Search Console: either “offers”, “review”, or aggregaterating should be specified

Source: https://www.prestashop.com/forums/topic/956810-google-analytics-error-either-offers-review-or-aggregaterating-should-be-specified/

Edit: product.tpl

around line 37, add

<div data-section-id="product" data-section-type="product" data-enable-history-state="true" itemscope itemtype="https://schema.org/Product">
<meta itemprop="name" content="{$product->name|escape:'html':'UTF-8'}">
<meta itemprop="url" content="{$link->getProductLink($product)}">
<meta itemprop="brand" content="{$shop_name|escape:'html':'UTF-8'}">
<meta itemprop="image" content="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" />
<meta itemprop="description" content="{$product->description|strip_tags:false|strip}" />
<meta itemprop="sku" content="{$product->reference}" />
<meta itemprop="itemCondition" content="New" />

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<meta itemprop="url" content="{$link->getProductLink($product)}">
<meta itemprop="priceCurrency" content="{$currency->iso_code}" />
<meta itemprop="price" content="{$product->getPrice(true, $smarty.const.NULL, 6)}" />
<link itemprop="availability" href="http://schema.org/InStock">
</div>
This entry was posted in Google Analytics and tagged . Bookmark the permalink.