All Collections
Developers
How to track Orders and Conversions
How to track Orders and Conversions

Use another script to track the impact of your videos on your website.

Leo Petit avatar
Written by Leo Petit
Updated over a week ago

In order to send us conversion events such as sales, form completed, etc., you need to use our JavaScript tag.

We propose two types of script. The first one is for e-commerce websites. The second one is for blogs, SaaS, and any other types of web interfaces.

Send orders (for online stores)

If you are an e-commerce website and you wish to send an order event, use the following script on the order confirmation page.

<script>
document.getElementById("vidjet").onload = function() {
Vidjet && Vidjet.send('order', {
orderId: '', // The id for this order. This value will be unique.
totalATI: 0, // Order total amount tax included
totalET: 0, // Order total amount tax excluded
currency: '' // The currency of the order. Ex: 'EUR', 'USD'
});
}
</script>

Or, send conversions (for non-ecommerce websites)

In case you want to send a general conversion such as a form or an action completed, use the second script on whichever trigger/event you'd like.

<script>
document.getElementById("vidjet").onload = function() {
Vidjet && Vidjet.send('conversion', {
name: '', //Name of the conversion
});
}
</script>

If you have any questions, please contact us at contact@vidjet.io.

Did this answer your question?