How to Track BigCommerce Conversions in Fathom Analytics

After banging our heads into the monitor repeatedly, we finally discovered a few quick and dirty ways to get BigCommerce to speak to Fathom Analytics properly.

TLDR – Cut and paste the following code in BigCommerce > Settings > Data solutions > Affiliate Conversion Tracking

<!-- Fathom -->
<script>
    window.addEventListener('load', function(event) {
        fathom.trackEvent('purchase_item', {
            _value: '%%ORDER_AMOUNT_IN_CENTS%%', // Value is in cents
        });
    });
</script>

<!-- Event snippet for Purchase conversion page -->
<script>
  gtag('event', 'conversion', {
      'send_to': 'AW-XXXXXX/N-ZZZZZZ',
    'value': %%ORDER_AMOUNT%%,
    'currency': 'USD',
    'transaction_id': '%%ORDER_ID%%'
});
var enhanced_conversion_data = {
  'email': '%%ORDER_EMAIL%%'
};
</script>

For those more interested in figuring out the pathway to resolving this, continue reading.

Fathom Analytics

We are big fans of this nimble piece of software. It simplifies the often-overcomplicated Google Analytics dashboard into something that is easily reported on and reviewed by our clients. Sometimes, less is more. While it doesn’t dig deep enough in some areas, it makes up for it in a privacy-focused approach to gathering data. The minimum cost is $15/mo, and you can sign up for a discount by using the link here – https://whip.li/fathom

Share the Post:

Related Posts