hi , I had someone optimizing my site for speed and performance , after the work was done, I noticed that on Shopify platform I didn't see the live view tracking anymore , meaning , that I can't see if there were any visitors on the site not live view and eventually not a summery count, while on google analytics I could see the visitors as before . This issue happened just on the particular version he worked on, on other versions of the site , the live view works just fine. ,After contacting Shopify support , they said that it is possible the guy deleted a certain part of the theme code that enables this connection with Shopify platform live view , I turned back to the guy , but I think he doesn't know how to make this . I can't publish the older version since it has a lot of performance problems and content changes . I was wondering if you can point me to the needed code for this function and where I should install it in the theme . thank you
hi , I had someone optimizing my site for speed and performance , after the work was done, I noticed that on Shopify platform I didn't see the live view tracking anymore , meaning , that I can't see if there were any visitors on the site not live view and eventually not a summery count, while on google analytics I could see the visitors as before . This issue happened just on the particular version he worked on, on other versions of the site , the live view works just fine. ,After contacting Shopify support , they said that it is possible the guy deleted a certain part of the theme code that enables this connection with Shopify platform live view , I turned back to the guy , but I think he doesn't know how to make this . I can't publish the older version since it has a lot of performance problems and content changes . I was wondering if you can point me to the needed code for this function and where I should install it in the theme . thank you
Hi Carmel,
Sorry for the late reply.
I am unsure about this because we have never face this before.
Please check if in your theme.liquid file in layout folder have these file:
{%- if request.page_type contains 'customers/' -%}
<script src="{{ 'shopify_common.js' | shopify_asset_url }}" defer="defer"></script>
{%- endif -%}
<script src="{{ 'api.jquery.js' | shopify_asset_url}}" defer="defer"></script>
This may be the cause of your problem