Confirmation Output Tags

Upon a successful checkout with a custom order confirmation page configured, the following output tags are available.

NOTE: This requires the file order-confirmation.flex and must be tied to a page to render. These output tags will not load on any other FLEX file.

Output Tag Description
{fn_order_id} Order ID
{fn_order_total} Order Total
{fn_order_tax} Order Tax Total
{fn_order_shipping} Order Shipping Total
{fn_customer_name} Customer Full Name
{fn_customer_email} Customer Email
{fn_customer_phone} Customer Phone
{fn_payment_type} Order Payment Method/Type
{fn_payment_id} Order Payment Method/Type ID
{fn_payment_amount} Customer Payment Amount
{fn_customer_address_1} Customer Shipping Address 1
{fn_customer_address_2} Customer Shipping Address 2
{fn_customer_city} Customer Shipping City
{fn_customer_address_region} Customer Shipping Region/Country
{fn_customer_address_subregion} Customer Shipping Subregion/State
{fn_customer_postal_code} Customer Shipping Postal Code
{fn_order_transaction_g_universal} Google Universal Analytics addTransaction
{fn_order_item_g_universal} Google Universal Analytics addItem

The following output tags are available for the loop fn_order_item.

Operational Tag Description
{product_sku} Product SKU Number
{product_name} Name of the product
{product_variation} If any variations of the product. Example (blue, small)
{product_price} The price of the product for the customer
{product_quantity} The quantity of the product ordered

Example:

</ul>
 {% loop fn_order_item %}
    <li>{fn_order_item.product_sku}</li>
    <li>{fn_order_item.product_name}</li>
    <li>{fn_order_item.product_variation}</li>
    <li>{fn_order_item.product_price_n}</li>
    <li>{fn_order_item.product_quantity_n}</li>
{% endloop fn_order_item %}
</ul>

Ecommerce Analytics

Some customers like to capture analytics about their order to services such as Google Analytics. For your convenience, we have provided a working example of Google Analytics Ecommerce and Google Universal Analytics Ecommerce tracking code.

To use the code below, change XX-XXXXXXX-X to your account number. Please make sure you have google ecommerce tracking enabled:

NOTE: We highly recommend you use Google Universal Anaytics Code over Google Classic. To upgrade your Google Analytics account to Universal, click here.

To enable Ecommerce in your universal analytics account, please follow the link: https://support.google.com/analytics/answer/1009612?hl=en#Enable

Universal Analytics
Google Classic Analytics
<script type="text/javascript">
 
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'XX-XXXXXXX-X', 'auto');
  ga('send', 'pageview');
         
  ga('require', 'ecommerce', 'ecommerce.js');

  //setup order transaction details
  {fn_order_transaction_g_universal}

  //items to be added for transaction
  {fn_order_item_g_universal} 

  ga('ecommerce:send');

</script>
	
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'XX-XXXXXXX-X']);
  _gaq.push(['_trackPageview']);
  _gaq.push(['_addTrans',
    '{fn_order_id}',                    // transaction ID - required
    '{business_name}',                  // affiliation or store name
    '{fn_order_total}',                 // total - required
    '{fn_order_tax}',                   // tax
    '{fn_order_shipping}',              // shipping
    '{fn_customer_city}',               // city
    '{fn_customer_address_subregion}',  // state or province
    '{fn_customer_address_region}'      // country
  ]);
   // add item might be called for every item in the shopping cart
   // where your ecommerce engine loops through each item in the cart and
   // prints out _addItem for each
 {% loop fn_order_item %}
   _gaq.push(['_addItem',
    '{fn_order_id}',                       // transaction ID - required
    '{fn_order_item.product_sku}',         // SKU/code - required
    '{fn_order_item.product_name}',        // product name
    '{fn_order_item.product_variation}',   // category or variation
    '{fn_order_item.product_price}',       // unit price - required
    '{fn_order_item.product_quantity}'     // quantity - required
  ]);
{% endloop fn_order_item %}
  _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
	

Start your free, no-risk trial today.