Would like to add aggregaterating to shopify store

you just need to go to theme.liquid
in head tag put this and you will find the reviews app count and rating variable so just put those here
like this
{%- assign review_rating = false -%} {% if product.metafields.spr.reviews %} {% capture review_data %}{{ product.metafields.spr.reviews }}{% endcapture %} {%- assign rating_keyword = ‘“ratingValue”:’ -%} {%- assign rd_a1 = review_data | split: rating_keyword -%} {%- assign rd_a2 = rd_a1[1] | split: “,” -%} {%- assign rd_a3 = rd_a2[0] | replace: ‘"’, “” -%} {%- assign review_rating = rd_a3 | plus: 1 | minus: 1 -%} {%- assign count_keyword = ‘“reviewCount”:’ -%} {%- assign rd_a1 = review_data | split: count_keyword -%} {%- assign rd_a2 = rd_a1[1] | split: “,” -%} {%- assign rd_a3 = rd_a2[0] | replace: ‘"’, “” -%} {%- assign review_count = rd_a3 | plus: 1 | minus: 1 -%} {% endif %}
{%- if review_rating %}

{%- endif -%}