"We are revamping our Knowledge Base articles to serve you better. In case you find something unusual, do not panic. Reach out to our Support Team by submitting a ticket if you ever need some help.”

Javascript Variables

Javascript Variables

The following integration type is complicated and provided on a self support basis. We recommend that Webhooks or Zapier is used. The below information is provided for information only.

Thank You Page/After Checkout - What variables are available?

The product_details variable includes the following information:

id (This is the product ID)
product_name (Product Name)
order_amt (Total Order amount)
quantity (Amount of item ordered)
splitflag (Is the payment split)

These are held within:
localStorage.getItem('product_details')

The format remains the same and additional purchases are accumulated (The upsell page will list the checkout page purchases, the thank you page will list both the checkout purchase and the upsell).

The GLOBAL-SESSION-ID is a single value that returns only the order ID

It is held within:
localStorage.getItem('product_details')

Once a checkout has been initiated this value stays consistent across upsells and thank you pages.

The customer_details variable includes the following information:

name
email
address
phone
custom_fields (Custom fields are provided as an array)

After Opt-in Submit - What variables are available?

The optin_user_details variable includes the following information:

name 
email
phone
custom_fields ( Custom fields are provided as an array )

These are held within:
localStorage.getItem('optin_user_details')

Two Step Checkouts also output this information after step one is completed.

How Can I Test?

The easiest way to test is by adding:

console.log(localStorage.getItem('product_details'));

Into Page Settings > layout CSS/Javascript.

Was this article helpful?

Related Articles

DF Black Trimmed

ANNOUNCEMENT:
Our Knowledge Base articles are undergoing a comprehensive overhaul to enhance your experience.

If you encounter any unexpected issues or irregularities, feel free to connect with our Support Team by submitting a support ticket for prompt assistance.
Join our Slack Workspace

Join the DropFunnels Slack Workspace and get access to the DropFunnels team, other DropFunnels members, twice-weekly support calls and more!

Join our Slack Workspace

Become A DropFunnels Wizard


Complete our Fast Start Training and learn everything you need to know to launch your first or next funnel.

From Lead Capture to Products, Courses to Blogs, this easy-to-follow training covers it all.

We’ll even give you $50 credit for completing the training!


Become A DropFunnels Wizard