Google Tag Manager Ecommerce Enhancement conversation on Shopify Website

Sample Code – For Looping Through Products From A Particular Collection in Shopify

0 Shares
0
0
0
0
0
0
0
<ul>
{% for product in collections.all.products limit: 8 %}
<li>
<img src="{{ product.featured_image | product_img_url: 'medium' }}" alt="{{ product.title | escape }}" /> 
<a class="shop-now" href="{{ product.url }}">{{ product.title | escape }} 
</a> 
</li>
{% endfor %}
</ul>