Facebook Pixel & Bold Cashier

Follow

Bold Cashier can use Facebook Pixel to track how your customer interacts with your store. Facebook Pixel collects data to help you plan your ad campaigns and acquire new customers.

When Facebook Pixel is set up on Cashier and Shopify, it will track your customer's journey through your store to the checkout.

To integrate Facebook Pixel and Cashier, please follow these steps:

Before you integrate Facebook Pixel with Cashier, you will need a Facebook ads account. You will also need to set up the pixel in Facebook Ads Manager.

Helpful Links

If Shopify and Cashier are using the same Facebook Pixel, your customer will be tracked throughout the store and into the checkout.

The events that Cashier tracks are:

  • InitiateCheckout: Once you have clicked on Checkout (from the cart page) and the checkout page is loaded.
  • AddPaymentInfo: Once the payment information has been entered this event is triggered.
  • Purchase: Once the Complete button is clicked and the transaction is successful this event is triggered.
  1. From Shopify's admin, select Apps.

    Select Apps

  2. Select Bold Cashier.

    Select Bold Cashier

  3. Select Settings, then Analytics.

    Select Settings/Analytics

  4. Enter your Facebook Pixel ID

    Enter your Facebook Pixel ID

  5. Select Save

    Select Save

Here is the default script that Bold Cashier sends for Facebook Pixel:


         FacebookAnalytics.sendFacebookEvent('Purchase', {
                'value': BOLD.order.total / 100,
                'currency': BOLD.order.currency,
                'contents': BOLD.order.line_items,
                'content_type': 'product',
                'content_ids': BOLD.order.line_items
                    .filter(line_item => line_item.platform_variant_id) // not undefined and not null
                    .map(line_item => line_item.platform_variant_id),
            });
        

Bold Cashier uses scripts to send page views and events to Facebook Pixel. If you believe that there are page views and events not being sent, there are tools available to troubleshoot the issue.

Some reasons why your scripts may not be firing:

  • Facebook Pixel ID is wrong: Double check to make sure your Facebook Pixel ID is correct.
    • The format is a set of numbers. This is the ID associated to your account in the Facebook Ads Manager.

      FBP-ID.png

    • There should be no whitespace before, after or within the ID.
  • Custom Tracking Scripts enabled: If the custom tracking scripts are enabled, but there's nothing in the field, the script that Cashier sends by default will be overwritten.
  • Incorrectly Formatted Code: The code you add to the custom tracking scripts cannot contain <script> tags, links to external JavaScript, or Liquid code. See Limitations in Custom Scripts for more information.

If your customers are all showing as abandoning their checkout, here are some possible reasons why:

  • Correct Facebook Pixel ID: Check to make sure that the Facebook Pixel ID in Cashier is correct, and that there is no whitespace.
  • Matching Facebook Pixel ID: Check to make sure that the Facebook Pixel ID in Cashier matches the one set up in Shopify.

    Any events on your store up until the cart page are all sent by Shopify, so you will need to use the same Facebook Pixel ID to track the checkout from Shopify into Cashier.

If you are looking to track any additional information, you will need to create a custom tracking script for Facebook Pixel.

To get more information on the limitations of custom scripts, or the variables you can use, check out Custom Tracking Scripts in Bold Cashier.

Setting Up Custom Tracking Scripts

  1. From Shopify's admin, select Apps.

    Select Apps

  2. Select Bold Cashier.

    Select Bold Cashier

  3. Select Settings, then Analytics.

    Select Settings/Analytics

  4. Select Enable Custom Tracking Scripts For Successful Purchases.

    Enable Custom Tracking Scripts

  5. Enter your custom script.

    Enter your Custom Script

  6. Select Save.

    Select Save

If you require additional assistance to create a custom track script, you can use StoreTasker to get a quote.

Next Steps:

Now that you have Facebook Pixel set up, check out how to set up Google Analytics, or learn more about Custom Tracking Scripts.

Blog Posts:

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.