Tracking on the thank you page

Note: This module is only suitable for experienced users. Modifying/entering tracking codes may cause the order tool of your online store to stop working.

The tracking module allows your online store to exchange data with external software platforms. The tracking code is executed on the Thank You page of your online store, after customers have placed an order. This way for example, you can easily synchronize order data with an inventory or shipping system. SEOshop does not provide support for writing tracking codes. You will have to do this yourself or leave it up to an expert.

SEOshop provides a separate page for Google Analytics. The only item you will need is a Site code, which you can find through your Google Analytics account. This site code you can subsequently enter in your back office, through GENERAL > Settings > Statistics > Google Analytics.

Below, you will find an overview of codes for use in the tracking module:

General details

  • {{ order.information.number }} - The invoice 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.

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 payment method, including VAT.
  • {{ order.shipment.price_excl }} - The costs involved with the use of the payment 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 (verzendadres)

  • {{ 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

  • {{ order.products.title }} - The product title (name).
  • {{ order.products.variant_id }} - The variant name.
  • {{ order.products.quantity }} - The number of items ordered of a given product.
  • {{ order.products.quantity_invoiced }} - How many ordered items of the product have been invoiced?
  • {{ order.products.quantity_shipped }} - How many ordered items of the product have been shipped (including the creation of a packing slip)?
  • {{ order.products.quantity_refunded }} - For how many ordered items of the product has a credit note been made?
  • {{ order.products.quantity_returned }} - For how many ordered items of the product has a return been made?
  • {{ order.products.base_price_incl }} - The product price up to four decimal digits, including VAT.
  • {{ order.products.base_price_excl }} - The product price up to four decimal digits, excluding VAT.
  • {{ order.products.price_incl }} - The total price of a given product, incl. VAT.
  • {{ order.products.price_excl }} - The total price of a given product, excl. VAT.
  • {{ order.products.price_tax }} - The total amount of VAT.
  • {{ order.products.discount_excl }} - The discount amount, excluding VAT.
  • {{ order.products.discount_incl }} - The discount amount, including VAT.
  • {{ order.products.tax }} - The VAT rate, in decimal digits.
  • {{ order.products.brand }} - The brand associated to the product.
  • {{ order.products.title }} - The short title of the product.
  • {{ order.products.fulltitle }} - The long title of the product.
  • {{ order.products.variant }} - A product variant (product option).
  • {{ order.products.ean }} - The European Article Number code.
  • {{ order.products.sku }} - The Stock-Keeping Unit number.

 

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 products %} pageTracker._addItem("{{ details.number }}","{{ product.sku }}","{{ product.title|escape }}","","{{ product.price_total }}","{{ product.quantity }}"); {% endfor %}

Have more questions? Submit a request