Home / Admin / OM-revenue-attribution-shopify.js
Duplicate Snippet

Embed Snippet on Your Site

OM-revenue-attribution-shopify.js

Code Preview
html
<script>
!function(o,a){var n;((n=window)._omq=n._omq||[]).push([o,a])}(
'sale', { // set the required type here, value can be 'sale', 'trial', or 'lead'. Shopify does not provide liquid tags to identify different types of sales so you may need to use your own script here if you wish to set a value other than 'sale'.
	// required parameters
	value: '{{ total_price | money_without_currency }}', // value of the order, e.g. 348.00
	currency: '{{ currency }}', // currency the order was taken in
	// optional parameters
	transaction_id: '{{ order_number }}', // order ID or transaction ID for the order. We encourage passing this because we check against it to ensure we aren't storing any duplicate data.
	test: false // value can be true or false; defaults to false if not specified. If it is set to true, nothing will be stored, and we will respond with the sanitized data we would have stored.
});
</script>

Comments

Add a Comment