This page explains the technical setup required for your imported attributes in order to trigger abandoned category campaigns in Ometria.
The setup is only required if you were an Ometria customer before November 2019.
Magento users: the Magento importers automatically pick up all Magento categories by default, so there is no setup required if you are using Magento 1 or 2. You can go directly to Setting up an abandoned category campaign.
Custom importers
If you have a custom importer then you can use your existing attributes - as long as you tag them to your pages.
You can also create new attributes by passing them to Ometria via our API.
See our JavaScript documentation for full details.
Shopify importer
Ometria supports the targeting of page visits for Shopify collections.
Update your liquid tags
We’ve added a new value to our Ometria script:
collection_handle: {{collection.handle|json}}
Follow the steps in the Shopify integration setup to update the Ometria JavaScript with the value above.
Here’s an example of the standard script - please check with your development agency if you have a custom Shopify integration:
<script> if (typeof ometria == 'undefined') window.ometria = {}; ometria.raw_data={ template: {{template|json}}, cart_total:{{cart.total_price|json}}, cart_count:{{cart.item_count|json}}, cart:[], product_id:{{product.id|json}}, search_count:{{search.results_count|json}}, search_terms:{{search.terms|json}}, collection_id:{{collection.id|json}}, collection_handle:{{collection.handle|json}}, page_handle:{{page.handle|json}}, collection_count:{{collection.products_count|json}}, current_page:{{current_page|json}}, shop_currency:{{shop.currency|json}}, customer_email:{{customer.email|json}} }; {% for item in cart.items %} ometria.raw_data.cart.push([{{ item.product.id|json}},{{item.variant.id|json}}, {{item.quantity|json}},{{item.line_price|json}}]); {% endfor %} (function(){ var url=window.location.protocol+"//cdn.ometria.com/tags/<your_site_identifier>.js"; setTimeout(function(){var sc=document.createElement('script');sc.src=url;sc.setAttribute('async','true'); document.getElementsByTagName("head")[0].appendChild(sc);},15); })(); </script>
Comments
0 comments
Article is closed for comments.