1. Home
  2. Knowledge Base
  3. Checkout Experience
  4. Passing Transaction Data for Conversion Pixels
  1. Home
  2. Knowledge Base
  3. FAQs for Vendors
  4. Passing Transaction Data for Conversion Pixels

Passing Transaction Data for Conversion Pixels

We have a number of places where PayKickstart passes data to the vendor or allow you to add tracking scripts.

In terms of passing data, note that in both the thank you page and the IPN, the data is always sent as a POST (like a form submit), and is never passed through the URL (i.e. a “GET”). There’s a number of good reasons for this, including that passing data as GET variables to pages we do not control often breaks the page we’re redirecting to (e.g. many vendors use page builders and many of those expect specific URL parameters – if we send them others their system often just returns an error instead of loading the page).

For 3rd party conversion scripts, we have an “intermediary” page which loads directly after each purchase. This is the page where you can add conversion scripts, such as the one you have for Facebook – look in the “integrations” section of your Campaigns >> Edit Product, there is a place you can add the script to the header of the page and in the body of the page.

Go to Section 3(integrations)

Some purchase data is available to be used by your script on this page, so if you add your script to that page you can grab the available data and use inside your script.

Following is the list of available data as Javascript variables:

Payment Processor:_pk_obj.payment_processor
Order Total Amount:_pk_obj.amount
Tax Amount:_pk_obj.tax_amount
Buyer First Name:_pk_obj.buyer_first_name
Buyer Last Name:_pk_obj.buyer_last_name
Buyer Email:_pk_obj.buyer_email
Transaction ID_pk_obj.transaction_id
Invoice ID:_pk_obj.invoice_id
Transaction Time:_pk_obj.transaction_time
Product ID:_pk_obj.product_id
Product Name:_pk_obj.product_name
Campaign ID:_pk_obj.campaign_id
Campaign Name:_pk_obj.campaign_name
Custom Fields:_pk_obj.custom_{name}
replace {name} with the custom field’s name
Customer ID:_pk_obj.customer_id
Funnel ID:_pk_obj_funnel_id
Funnel Name:_pk_obj_funnel_name

For 3rd party JS scripts you would add these variables inside the <script> </script> tags.

The below fields will only be present in the case where an order bump is enabled and was also purchased. The fields will be available as part of the parent product’s data on the intermediate page (add conversion pixels to the parent product to track the bump).

Order Bump Amount:_pk_obj.bump_amount
Order Bump Transaction ID_pk_obj.bump_transaction_id
Order Bump Product ID:_pk_obj.bump_product_id
Order Bump Product Name:_pk_obj.bump_product_name
Order Bump Campaign ID:_pk_obj.bump_campaign_id
Order Bump Campaign Name:_pk_obj.bump_campaign_name

For 3rd party JS scripts you would add these variables inside the <script> </script> tags.


Updated on August 27, 2024

Was this article helpful?

Related Articles