Standard events are predefined visitor actions that correspond to common, conversion-related activities, such as searching for a product, viewing a product, or purchasing a product.


In this article, we will be going over the process on how to track completed purchases on site.


Detailed information regarding Conversion Trackings can be found in the article down below:


Conversion Tracking 


Step 1)


Make sure the pixel's base code is installed on every page where you want to track conversions. This process has been explained in detail in the article down below:


Facebook Pixel


Step 2) 


Customize the Bootstrap Theme - Conversion Tracking Codes widget to call the fbq('track') function which will be tracking the completed purchases on site.


Here is the code provided by Facebook Pixel for example purposes:


<script>
fbq('track', 'Purchase', {currency: "USD", value: 30.00});
</script>


The next step would be replacing the values for each parameter specified with our default variables. In the Bootstrap Theme - Conversion Tracking Codes widget, all these example variables can be found:




Hence the new version of the code provided would look like this:


<script>
fbq('track', 'Purchase', {currency: "USD", value: <?php echo $conversion_tracking['amount']; ?>});
</script>



Then this code can be added to the widget specified, below line 38:



When calling this function, it will be tracked as a purchase event in the Events Manager:



For additional questions or help setting this up, please submit a ticket to [email protected] or create a ticket HERE.