La pose du pixel VEOXA ce fait sur la page theme.liquid de la boutique juste avant la ligne {{settings.code_head_ga}}
Avant de poser le script, bien penser à changer les valeurs de variables veoxa_aid et veoxa_aid par celles fournis dans le mail de Nicolas
{% comment %}
#####################################################
##### Pixel VEOXA
#####################################################
{% endcomment %}
{% assign veoxa_aid = "XXX" %}
{% assign veoxa_pid = "XXX" %}
{% case template.name %}
{% when 'index' %}
<script type="text/javascript">
(function() {0
var script = document.createElement("script");
script.type = "text/javascript";
script.charset = "UTF-8";
script.async = "async";
script.defer = "defer";
script.src = ("https:" == document.location.protocol ? "https" : "http")
+ "://profiling.veoxa.com/boot/request/?aid={{ veoxa_aid }}&pid={{ veoxa_pid }}&action=Index";
document.getElementsByTagName("head")[0].appendChild(script);
})();
</script>
{% when 'cart' %}
{% assign products = "" %}
{% for item in cart.items %}
{% assign p = "" %}
{% assign t = item.product.price | divided_by: 1.2 |replace: ',', '.' | divided_by:100.0 | round: 2 %}
{% assign p = item.sku | append: ":" | append: t | append: ":" | append: item.quantity %}
{% if products != "" %}
{% assign products = products | append: ";" %}
{% endif %}
{% assign products = products | append: p %}
{% endfor %}
<script type="text/javascript">
(function() {
var script = document.createElement("script");
script.type = "text/javascript";
script.charset = "UTF-8";
script.async = "async";
script.defer = "defer";
script.src = ("https:" == document.location.protocol ? "https" : "http")
+ "://profiling.veoxa.com/boot/request/?"
+ "aid={{ veoxa_aid }}&pid={{ veoxa_pid }}&action=Basket"
+ "&amount={{ cart.total_price|divided_by:1.2|replace: ',', '.' | divided_by:100.0 | round: 2 }}&products={{ products }}¤cy=EUR";
document.getElementsByTagName("head")[0].appendChild(script);
})();
</script>
{% when 'product' %}
{% assign current_variant = product.selected_or_first_available_variant %}
<script type="text/javascript">
(function() {
var script = document.createElement("script");
script.type = "text/javascript";
script.charset = "UTF-8";
script.async = "async";
script.defer = "defer";
script.src = ("https:" == document.location.protocol ? "https" : "http")
+ "://profiling.veoxa.com/boot/request/?"
+ "aid={{ veoxa_aid }}&pid={{ veoxa_pid }}&action=Product&productId={{ current_variant.sku }}";
document.getElementsByTagName("head")[0].appendChild(script);
})();
</script>
{% endcase %}
{% comment %}
#####################################################
##### FIN Pixel VEOXA
#####################################################
{% endcomment %}