The Firmhouse Checkout flow comes with tracking for e-commerce conversions available. You can track your conversions via either or both of the following methods:
- Trigger your conversion event if the data-trackable-payment-status attribute is present on the page and set to the value paid.
- Using our dataLayer integration out of the box for additional information about the order and transaction.
Fire a conversion event when the data-trackable-payment-status attribute is present
On our payment status and order confirmation pages we load an attribute data-trackable-payment-status on one of the main elements in the page.
So the best way to fire a conversion event in your analytics setup is to trigger the event as soon as the data-trackable-payment-status attribute is present and is set to paid.
Using the dataLayer variable
For more information on E-commerce tracking with Google Analytics, you can review this page: https://support.google.com/tagmanager/answer/6107169?hl=nl
A sample of how the dataLayer is loaded in on the checkout confirmation page is shown here:
window.dataLayer = window.dataLayer || ;
'transactionAffiliation': 'Your Firmhouse Project Name',
'name': 'A product or plan',