Inclusión código Javascript de seguimiento en la página de confirmación de pago de prestashop 1.7
El código JavaScript que hay que instalar justo antes del tag </head> de la página transacción es el siguiente :
<script async="true" language="javascript" type="text/javascript" src="//
tracker.twenga.es/tracker.js"></script>
Y a continuación justo antes del tag </body> :
<div id="twcm_main" style="display:none;">
<div class="twcm_key">40a6caa153c8a46472f9406437da697e</div>
<div class="twcm_event">transaction</div>
<!-- Unique order identifier -->
<div class="twcm_order_id">{ORDER_ID}</div>
<!-- Transaction total amounts -->
<div class="twcm_order_currency">{ORDER_CURRENCY}</div>
<div class="twcm_order_amount_et">{ORDER_AMOUNT_ET}</div> <!-- total tax excluded -->
<!-- Purchased items -->
<div class="twcm_item">
<div class="twcm_item_id">{ITEM_ID}</div> <!-- merchant_id in Twenga feed -->
<div class="twcm_ref_id">{REF_ID}</div> <!-- optional, merchant_ref in Twenga feed -->
<div class="twcm_item_name">{ITEM_NAME}</div> <!-- optional -->
<div class="twcm_item_price_et">{ITEM_PRICE_ET}</div>
<div class="twcm_item_quantity">{ITEM_QUANTITY}</div>
</div>
<!-- ... -->
<Div class="twcm_item">
<div class="twcm_item_id">{ITEM_ID}</div> <!-- merchant_id in Twenga feed -->
<div class="twcm_ref_id">{REF_ID}</div> <!-- optional, merchant_ref in Twenga feed -->
<div class="twcm_item_name">{ITEM_NAME}</div> <!-- optional -->
<div class="twcm_item_price_et">{ITEM_PRICE_ET}</div>
<div class="twcm_item_quantity">{ITEM_QUANTITY}</div>
</div>
</div>
Las variables que se pasan son las que corresponden al ID del pedido, al importe y al detalle del producto tal.
Detalle de variables:
twcm_key string site identifier
twcm_event string transaction
twcm_order_id string Unique identifier of the transaction. Must be unique
twcm_order_currency string Order Currency - ISO 4217 3-letter code
twcm_order_amount_et float Amount excluding all taxes of the transaction: excluding shipping fees, including all services (insurance, ...)
Twcm_ref_id: string Product style or generic reference identifier.
Twcm_item_id: string Product single variant identifier.
Twcm_item_name: string Pumps XYZ Item Designation
twcm_item_price_et float Unitary price of the item, excluding taxes.
twcm_item_quantity integer Quantity of the same item in the order
Plazo de Entrega: 08 Febrero, 2018