Install the Matomo tracking code on my Shopify store

Hello,

I was following the instruction how to Install the Matomo tracking code on my Shopify. https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-my-shopify-store/

I have an issue with point 8.

Click on the cart-template.liquid file in the left navigation menu under the “Sections” folder to open it

I am missing cart-template.liquid under Sections in shopify,

How I should proceed in this case?

Maybe it is under sections/main-cart-items.liquid.

Hey Tom, thanks for advice. In my shopify also does not exist. I have only sections/main-cart.liquid.

The solutions still does not work, any other recommendations?

Zrzut ekranu 2023-07-18 o 13.18.39

I have the same problem with Avada theme, and I can’t find the main-cart-items.liquid or main-cart.liquid. Only cart.liquid, but the tracking doesn’t work.

If the cart-template.liquid file is missing in your Shopify theme, consider creating new create a custom cart template.
Go to the Sections folder, click “Add a new section,” and name it cart-template.liquid. Copy the necessary Matomo tracking code and insert it into the newly created file. For any further issue you might be consult with Shopify theme developer who can ensure that your cart template is properly integrated and tracking as expected.