Magento

This guide shows you how to install FigPii on Magento 2.3.1 or newer. 

Because of a known bug in prior versions of Magento, Please upgrade to Magento 2.3.1 or newer to install FigPii.

FigPii has chosen not to support older versions due to incompatibilities with JavaScript libraries used with Magento 1. This incompatibility also affects Magento Enterprise Edition 1.14 and lower. Magento 1 will reach its end of life in June 2020.

Insert FigPii Tracking Code

Step 1. Login to your FigPii Dashboard and copy your tracking code. Please mind that each tracking code is unique to your domain and you will need to replicate this step for new domains or domain changes.

Step 2. Head over to your Magento dashboard and from the  Admin menu, select Content, then Configuration.

Step 3. On the Configuration page, select the Design tab and click HTML Head section..

Step 4. Find  Miscellaneous Scripts.

Step 5. Paste the FigPii Tracking Code in the  Miscellaneous Scripts box. (Refer to the first step for how to copy your Tracking Code).

Step 6. Click  Save Configuration.

Invalidate Cache

You might see a message: "One or more of the Cache Types are invalidated: Configuration. Please go to Cache Management and refresh cache types". 

Step 1. Go to Cache Management:

Step 2. Select Configuration from the list and hit the Refresh Submit. Configuration then will be enabled:

Revenue and Order Tracking

To track revenue from A/B test visitors add the following code to /vendor/magento/module-checkout/view/frontend/templates/success.phtml 

Note: success.phtml might be located elsewhere depending on your theme and Magento version.
<?php
$order = Mage::getModel('sales/order')->loadByIncrementId(Mage::getSingleton('checkout/session')->getLastRealOrderId());
?>

<script> 
window._fpEvent=window._fpEvent||[];
window._fpEvent.push(["addRevenue",{revenue:<?php echo number_format($order->getGrandTotal(), 2); ?>}]); 
window._fpEvent.push(["eventConversion",{value:"purchase"}]); 
</script>

Still need help? Contact Us Contact Us