Sending E-commerce event to Adoric
Learn how to send E-commerce event to Adoric
Want to know how much money each campaign generated?In order to analyze your campaigns in this way, you need to send it to Adoric e-commerce event.Â
In the following example, you can view the E-commerce conversion rate, transactions, and revenue generated from a specific campaign.
Ways of implementation:Â
General (paste this code above </body>)
<script>
adoric.trigger('Purchase', {
value: PURCHASE-VALUE,
type: 'ecommerce'
})
</script>
_
Note_*_: The value should be numeral. A decimal point can be used as a delimiter between the whole and fractional portions. (Examples: ‘199’; ‘120.99’; ‘12344.99’)
_
Send an event after page and Adoric code loaded (paste this code above </body>)
<script>
window.addEventListener('load', function () {
window.adoric && adoric.trigger('Purchase', {
value: 'PURCHASE-VALUE-HERE',
type: 'ecommerce'
})
});
</script>
Send an event after a click on a button
<script>
window.adoric && window.adoric.on("form:after:submit", function (data) {
adoric.trigger('Purchase', {
value: 'PURCHASE-VALUE',
type: 'ecommerce'
})
});
<script>
Extra options:
Send event by submitting a form on Adoric Web message (paste this code above </body>)
```
Updated on: 25/06/2024
Thank you!