ROCKET PAGE TRACKER
unknown
liquid
2 years ago
1.6 kB
10
Indexable
<!-- pptrt --> <script type="text/javascript"> (window["rrApiOnReady"] = window["rrApiOnReady"] || []).push(function() { retailrocket.productsGroup.post({ "groupId": {{ product.id }}, "name": {{ product.title | json }}, "price": {{product.price | divided_by: 100}}, "pictureUrl": {{ product.featured_image | img_url: '400x400' | prepend: "https:" | json }}, "url": "{{ shop.url | append: product.url }}", "isAvailable": {{ product.available }}, "categoryPaths": {{ filteredCategories | split: ',' | json }}, "oldprice": {{product.compare_at_price | divided_by: 100}}, "description": {{ product.description | json }}, "products": { {% for variant in product.variants %} "{{ variant.id }}": { "isAvailable": {{ variant.available }}, "name": {{ product.title | json }}, "url": "{{ shop.url | append: product.url }}", "pictureUrl": {{ product.featured_image | img_url: '400x400' | prepend: "https:" | json }}, "price": {{variant.price | divided_by: 100}}, "description": {{ variant.description | json }}, }, {% endfor %} }, "params": { "Tallas": "{% for variant in product.variants %}{{ variant.id }},{{ variant.option1 }},{{ variant.available }};{% endfor %}" } }); rrApi.groupView({{ product.variants | map: "id" | json }}); }); </script>
Editor is loading...