Articles in this category

Adding conversion tracking to the checkouts

You are able to add tracking codes and custom JS to the success page (or the thank you page of our checkouts). These scripts will be invoked in a separate iframe when success page is reached. 


Please note that this document explains setting up conversion tracking to the Subbly checkouts! If you're looking to set tracking events on your site's pages, please visit this document here for more explanation.

To add your own code to the checkout simply do the following:

  • Go here
  • Paste your code in the blank field.
  • Click save, and you're done!
You can see an example of setting up conversion tracking for Facebook Pixel in the article HERE

Twig/JS Variables

Twig or JS variables can be used on the checkouts to dynamically pass data on some triggers through the checkout. 

Some of these variables include:

Name

Variable

Customer ID

{{customer.id}}

Customer First Name

{{customer.first_name}}

Customer Last Name

{{customer.last_name}}

Customer Email

{{customer.email}}

Order ID (A unique ID)

{{order.id}}

Order Total

{{order.amount}}

Order Currency ISO Code

{{order.currency}}

Order Timestamp

{{order.timestamp}}


Did you find this resource helpful?
Return to top
Ready to get started
with Subbly?
Try for free