1. Home
  2. Integrations
  3. Javascript Variables

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

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

Need Support?


We’re available 24 hours a day from Monday to Saturday. We aim to respond to tickets within 2 hours during operating hours.

Submit A Ticket