For information regarding tracking codes related to shipping, click here.
Use web tracking codes to enable your online store to exchange data with external software platforms. The web tracking code can be executed on your Thank You page after customers place an order. This allows you, for example, to synchronize order data with an inventory or shipping system.
IMPORTANT: This module is suitable only for experienced users. Entering or modifying tracking codes can cause the ordering functionality of your online store to stop working. Lightspeed eCom does not provide support for writing tracking codes. You can do this yourself or hire someone with the relevant expertise.
Entering a web tracking code
- On the left menu of the Back Office go to Settings > Website Settings > Web Extras.
- In the Tracking area, enter the tracking code and activate the Status.
Overview of available keys
Keys can be used in your tracking code to dynamically fill in data from eCom.
General details
- {{ order.information.number }} - The order number.
- {{ order.information.paid }} - Has the order been paid? Yes/No.
- {{ order.information.currency }} - The currency used.
- {{ order.information.language }} - The language used for orders.
- {{ order.information.country }} - The country from where shipments are made.
- {{ order.information.sameaddress }} - The billing address equals the shipping address.
- {{ order.information.price_incl }} - The total amount, incl. VAT.
- {{ order.information.price_excl }} - The total amount, excl. VAT.
- {{ order.information.price_tax }} - The total amount of VAT.
- {{ order.information.price_discount }} - The total discount.
- {{ order.information.chargable }} - The sum of all costs, excluding VAT.
- {{ order.information.shipping_title }} - The name of the shipping method.
- {{ order.information.shipping_price }} - The total amount of shipping costs, including VAT.
- {{ order.information.payment_title }} - The name of the chosen payment method.
- {{ order.information.payment_module }} - The chosen payment method.
- {{ order.information.payment_price }} - Costs involved with the use of the payment method.
- {{ order.information.comment }} - Comments added by customers in step 3 of the check-out.
- {{ order.information.code }} - The name of the discount code.
Shipment
- {{ order.shipment.status }} - The status of a shipment.
- {{ order.shipment.status_title }} - The name of the shipment status (for example, Not sent).
- {{ order.shipment.title }} - The name of the shipment method.
- {{ order.shipment.base_price_incl }} - The shipment costs up to four decimal digits, including VAT.
- {{ order.shipment.base_price_incl }} - The shipment costs up to four decimal digits, excluding VAT.
- {{ order.shipment.price_incl }} - The costs involved with the use of the shipping method, including VAT.
- {{ order.shipment.price_excl }} - The costs involved with the use of the shipping method, excluding VAT.
- {{ order.shipment.price_tax }} - The amount of VAT customers have to pay for the shipping method.
- {{ order.shipment.discount_incl }} - The discount amount, including BTW.
- {{ order.shipment.discount_excl }} - The discount amount, excluding BTW.
- {{ order.shipment.tax }} - The percentage of VAT.
- {{ order.shipment.service_point }} - Indicates whether the customer has opted for a service point.
- {{ order.shipment.pickup }} - Indicates whether a customer has opted to pick up his/her order.
- {{ order.shipment.cod }} - COD (Cash On Delivery).
Payment
- {{ order.payment.status }} - The payment status.
- {{ order.payment.status_title }} - The name of the payment status.
- {{ order.payment.title }} - The name of the chosen payment method.
- {{ order.payment.base_price_incl }} - The costs involved with the use of the payment method, up to four decimal digits, including VAT.
- {{ order.payment.price_incl }} - The costs involved with the use of the payment method, including VAT.
- {{ order.payment.price_excl }} - The costs involved with the use of the payment method, excluding VAT.
- {{ order.payment.price_tax }} - Total amount of VAT charged to the costs involved with the use of the payment method.
- {{ order.payment.tax }} - VAT rate charged to the price of the payment method.
- {{ order.payment.module }} - The payment method the customer has chosen.
Customer
- {{ order.customer.id }} - THe customer's ID, as used within the SEOshop platform.
- {{ order.customer.email }} - The customer's email address.
- {{ order.customer.gender }} - The customer's gender.
- {{ order.customer.firstname }} - The customer's first name.
- {{ order.customer.middlename }} - Insertion.
- {{ order.customer.lastname }} - The last name of the customer, excluding insertions.
- {{ order.customer.fulllastname }} - The customer's last name.
- {{ order.customer.phone }} - The customer's phone number.
- {{ order.customer.mobile }} - The customer's cell phone number.
- {{ order.customer.birthdate }} - The customer's birth date.
- {{ order.customer.type }} - Business or private.
- {{ order.customer.company }} - THe name of the company where the customer works at.
- {{ order.customer.cocnumber }} - The company's CoC number.
- {{ order.customer.vatnumber }} - The company's VAT number.
Billing (billing address)
- {{ order.billing.attention }} - The customer's name.
- {{ order.billing.company }} - The name of the company.
- {{ order.billing.address }} - This is the invoice address, being: street name + house number.
- {{ order.billing.streetname }} - The street name.
- {{ order.billing.streetname2 }} - An additional address.
- {{ order.billing.number }} - The house number.
- {{ order.billing.number_ext }} - The addition to the house number, if applicable.
- {{ order.billing.zipcode }} - The ZIP code of the invoice address.
- {{ order.billing.city }} - The city of the invoice address.
- {{ order.billing.region }} - The region of the invoice.
- {{ order.billing.country }} - The country name of the invoice (Ex.: United Kingdom).
- {{ order.billing.country_code }} - The country code of the invoice (Ex.: ENG).
- {{ order.billing.country_code2 }} - The country code of the invoice, in three alphabetical characters (Ex.: USA).
- {{ order.billing.country_number }} - The country code (528 for the Netherlands).
Shipping
- {{ order.shipping.attention }} - The customer's name.
- {{ order.shipping.company }} - The name of the company.
- {{ order.shipping.address }} - The street name + house number of the shipping address.
- {{ order.shipping.streetname }} - The street name.
- {{ order.shipping.streetname2 }} - An additional address line.
- {{ order.shipping.number }} - The house number.
- {{ order.shipping.number_ext }} - The addition to the house number, if applicable.
- {{ order.shipping.zipcode }} - The ZIP code of the shipping address.
- {{ order.shipping.city }} - The city of the shipping address.
- {{ order.shipping.region }} - The region of the shipping address.
- {{ order.shipping.country }} - The country name of the (Ex.: Germany).
- {{ order.shipping.country_code }} - The country code of the shipping address.(Ex.: UK)
- {{ order.shipping.country_code2 }} - The country code of the shipping address, in three alphabetical characters (Ex.: USA).
- {{ order.shipping.country_number }} - The country code (528 for the Netherlands).
Products
- {{ product.title }} - The product title (name).
- {{ product.variant_id }} - The variant name.
- {{ product.quantity }} - The number of items ordered of a given product.
- {{ product.quantity_invoiced }} - How many ordered items of the product have been invoiced?
- {{ product.quantity_shipped }} - How many ordered items of the product have been shipped (including the creation of a packing slip)?
- {{ product.quantity_refunded }} - For how many ordered items of the product has a credit note been made?
- {{ product.quantity_returned }} - For how many ordered items of the product has a return been made?
- {{ product.base_price_incl }} - The product price up to four decimal digits, including VAT.
- {{ product.base_price_excl }} - The product price up to four decimal digits, excluding VAT.
- {{ product.price_incl }} - The total price of a given product, incl. VAT.
- {{ product.price_excl }} - The total price of a given product, excl. VAT.
- {{ product.price_tax }} - The total amount of VAT.
- {{ product.discount_excl }} - The discount amount, excluding VAT.
- {{ product.discount_incl }} - The discount amount, including VAT.
- {{ product.tax }} - The VAT rate, in decimal digits.
- {{ product.brand }} - The brand associated to the product.
- {{ product.title }} - The short title of the product.
- {{ product.fulltitle }} - The long title of the product.
- {{ product.variant }} - A product variant (product option).
- {{ product.ean }} - The European Article Number code.
- {{ product.sku }} - The Stock-Keeping Unit number.
- {{ product.weight }} - The weight of the product.
NOTE: An invoice can list several products. Use a loop to read out a number of products, as shown in the example below:
{% for product in order.products %} pageTracker._addItem("{{ details.number }}","{{ product.sku }}","{{ product.title|escape }}","","{{ product.price_total }}","{{ product.quantity }}");
{% endfor %}