Dynamic Values For Tracking Code
  • 24 May 2022
  • 1 Minute to read
  • Dark
    Light

Dynamic Values For Tracking Code

  • Dark
    Light

Article Summary

Are you using Facebook Pixels, Google Analytics or another tracking software to track and measure conversions on LightSpeedVT checkout pages? If so, then we have a treat for you.

LSVT makes it easy for you to use these tracking tools with accuracy by allowing you to pass dynamic values to your tracking tools, here are some of the values that can be used.

Key
Value

{subscriptionId}

Chargify subscription id

{productName}

Chargify product name

{productHandle}

Chargify product handle

{productId}

Chargify product id

{productPrice}

Chargify product price point

{transactionId}

Transaction id

{tax}

Tax amount

{totalAmount}

Total amount of product not including discounts

{adjustedAmount}

Amount charged after discounts

{title}

Title of the checkout page

{subscriptionType}

Individual purchase or Location purchase

{system}

System name

{coupon}

Coupon code used

{currency}

Currency

Let’s say you wanted to pass the amount charged after any coupon discounts were applied, the currency type, and the chargify product handle. You can use the {adjustedAmount}, {currency} and {productHandle} dynamic values to pass that information to your tracking software, here’s an example.

fbq(‘track’, ‘Purchase’, {
value: {adjustedAmount},
currency: {currency},
coupon: ”,
contents: [{
id: ‘{productHandle}’,
quantity: 1
}],
content_type: ‘product’
});

By using these dynamic fields you’re able to get accurate information no matter what changes are made to the product over time. To drop tacking code into the checkout page, navigate to the Super User Dashboard then click on Integration Management [105] located under the “Account” column.

202005SuperUserDashboard-IntegrationManagement.png

Choose the “Chargify Individual Purchase” from the “Chargify Integration” drop down.

201906Screen-Shot-2019-06-06-at-42654-PM-1024x5381.png

Next, choose the checkout page that you wish to add the code to by clicking on the name of the checkout page.

202005Screen-Shot-2020-05-21-at-50812-PM-1-1024x441.png

Once in the checkout page, click on the “Form Settings” tab and scroll down to the section labeled “Custom Code, CSS, JS”. This section gives you the ability to drop code in the head, body, and footer of the start page and thank you page.

202005Screen-Shot-2020-05-21-at-51336-PM-1024x762.png


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.