title: How to send ecommerce data to datalayer in prestashop
body: <p>I am not a developer but trying to send ecommerce data to datalayer. I can't see any ecommerce data to datalayer in console. I am adding the data to order-confirmation.tpl in prestashop. below is how i am sending data</p>
  
  <pre><code>&lt;Script type = "text / javascript"&gt;
  dataLayer = ( {
   'transactionId' : '{literal} {$order_id} {/literal}' ,       
   'transactionTotal' : {literal } { $total_a_payment } {/literal } , 
   'transactionTax' : { literal } { $tax } { /literal } , 
   'transactionShipping' : { literal } { $ expenses_envoice } { /literal 
     } , 
     'transactionProducts' : [ { /literal } { foreach from = $ products 
    item = product name = products } { /literal } 
    {
   'Sku' : '{literal}{$producto.id_product}{/literal}' , 
   'Name' : '{literal}{$producto.name}{/literal}' , 
   'Price' : {  literal } { $ product . Price_wt } { /literal } , 
   'Quantity' : {  literal } { $ product . Quantity } { /literal } 
    } {  Literal} {if $ smarty.foreach.productos.iteration! = $ Products 
    | @count} {literal}, {/ literal } { / if } { /literal }
     {  Literal} {/ foreach } ] , { /literal }
    'Event' : 'transactionComplete' 
     } )
    &lt;/ Script&gt;
    { / Literal }
  </code></pre>
  
  <p>anyone have experience with prestashop please help. I am using Google Tag Manager for ecommerce tracking. thanks</p>