Jump to content

Tracking script


Recommended Posts

Hello everyone,

I am trying to install a tracking script (not Google Adwords) and I would like to retrieve some information when the customer buys.

I have this code (see below), I insert the variables, which I think are correct? But in the inspection of my code, I do not see the script, but between quotation marks I do not have the results of the variables, the quotation marks are empty.

I searched everywhere, impossible to find an answer haha.
Can someone guide me?

Thank you so much for your help

<script type="text/javascript">
    var options = {
        command_id: "{$id_order}",
        currency: "EUR",
        total_price: "{$order->total_paid_tax_incl}",
        shipping_price: "{$order->total_shipping_tax_incl}"
    };

    cy("purchase", options);
</script>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...