How to Set Up Facebook (Meta) in Elevar Server Side Destination

Follow the step-by-step guide to launching your Facebook Pixel and CAPI integration through Elevar's server-side destination

Overview

Prerequisites:

Before you can enable your Google Analytics 4 Server-Side Destination, you will need to:


Add Facebook as a Server-Side Destination

Add Destination:

  • On the homepage of your Elevar Account, locate and click on the "My Tracking" tab from the left-hand menu.
  • Once, in "My Tracking" select the "Add Destination" button in the upper right hand corner of the page.
    • (See Figure 1)

Step 1 screenshot

Figure 1

Locate Facebook Destination:

  • A side bar pop-up window will appear, titled "Add Destination".
  • Within this pop-up, use the search function and type "Facebook".
  • Once the Facebook destination appears from the search function, click on it.
    • (See Figure 2)

Step 2 screenshot

Figure 2

Get Started:

  • After locating and clicking on the Facebook destination, you will be taken to overview screen.
  • Click the "Get Started" button in the lower left-hand corner of the Overview box.
    • (See Figure 3)

Step 3 screenshot

Figure 3

Entering Facebook Setup Settings

Update Facebook Settings:

  • Within the "Setup Steps" section of the page, locate the "Setup Steps".
  • Click on the "Save and Continue" button at the bottom of this section.
    • (See Figure 4)

Step 1 screenshot

_Figure 4_

๐Ÿ“˜

Tip: What Facebook API Version to use?

The Facebook API Version is automatically set to the latest available by default. You'll only need to adjust this if you're using an older Facebook Conversion API Token. Facebook says their Conversion API Tokens are backward compatible with previous API Versions but not forwards compatible. So you'll want to set this to the API Version that's associated with your Conversion API Token.

If you're using an older Facebook Conversion API Token & uncertain about what Facebook API Version it associates with, we'd recommend creating a new Token so that it works with the latest API Version.

Select Events:

  • To select what events you want to send to Facebook, begin in the "Setup Steps" box and click on the "Event" tab.
  • Within the "Events" box, click on the button labeled "Use best practices" or "Customized".
    • Currently, our "Use best practices" recommends sending just the purchase event server-side.
    • If you do want to customize your events, you can choose what events you'd like to send to Facebook & how you'd like to send them (e.g. via server-side or via the web browser).
      • Facebook recommends sending data both via server-side & client-side. Facebook will deduplicate the data for you.
  • After selecting what events you want to send to Facebook, click on the "Save and Continue" button at the bottom of this section.
    • (See Figure 5)

Step 5 screenshot

(Figure 5)

Consent Mode:

  • After selecting what events you want to send to Facebook, you will be prompted to enable Consent Mode.
  • To enable Consent Mode, click on the "Yes, enable for this destination" button.
  • If you do not want to enable Consent Mode in your data layer settings, click on the "No" button.
  • Once you have all of selected all of the information for enabling Consent Mode, click on the "Save and Continue" button at the bottom of this section.
    • (See Figure 6)

Step 7 screenshot

Figure 6

Content Type:

  • After selecting the consent mode, you will be prompted to select the content type.
  • Within the "Content Type" box, click on the button labeled "Product Group" or "Product".
    • Most merchants use Product Group as the Content Type & send the Product ID as the Product Identifier. This is the default setting for native Shopify Facebook app integrations.
    • If your Product Catalog uses Variant ID as the primary identifier, select Product as the Content Type & send Variant ID as the Product Identifier instead.
  • Once you have all of selected all of the information for your content type, click on the "Save and Continue" button at the bottom of this section.
    • (See Figure 7)

Step 8 screenshot

Figure 7

Product Identifier:

  • After selecting details for the Content Type, you need to choose a Product Identifier.
    • Click on the button labeled "Product ID", "Product SKU", or "Variant ID".
      • Currently, the Product ID is the most commonly used Product Identifier.
      • You'll want to match the product identifier used in your Facebook tracking to the product identifier you use in your Facebook Product Catalog.
      • If you change this, just be sure you update all e-commerce events to use this new product identifier (e.g. add to cart, etc).
  • After selecting the Product Identifier, click on the "Save and Continue" button at the bottom of this section.
    • (See Figure 8)

๐Ÿ“˜

Tip: Migrating from the native Shopify <> Facebook Channel?

Then leave this as Product ID. The Shopify <> Facebook Channel uses the Product ID by default, so this will map over as you currently have it.

Step 9 screenshot

_Figure 8_

Filter Transactions:

  • After selecting details for the Product Identifier, you need to choose whether or not to filter transactions.
  • Currently, our recommended practices suggests clicking the button labeled, "Yes, Block some transactions".
    • Best Practice for Facebook is to block exchange orders and the Facebook offline sales channel. Facebook channel orders already exist in Facebook and passing orders from this channel will lead to duplication.
    • The most common other scenario where retailers may want to block or send orders is with offline orders. Learn how to block these orders in this guide.
    • Not sure if you need to block orders? Look at what Sales Channels you have in Shopify!
  • If you do not want to Filter Transactions, then click on the button labeled "No, Send all".
  • Once you have all of selected all of the information for Filtered Transactions, click on the "Save and Continue" button at the bottom of this section.
    • (See Figure 9)

Step 10 screenshot

Figure 9

โ—๏ธ

Note: New vs Returning Purchase Events Filtering

The filtering settings that you add in the filter transaction step will effect these custom purchase events, except if you filter out the Facebook sales channel.

Those custom purchase events will still be sent, because Meta does not automatically include them in the custom events but will automatically include them in the main purchase events.

Subscriptions:

  • If you sell subscriptions, select whether you are using the unified Shopify checkout, or using a separate checkout.
  • If you do not sell subscriptions, select the button labeled "No".
  • When sending recurring orders, we automatically set the action_source to "system generated" per Facebook guidelines on these types of orders.
    • Learn more about this Facebook parameter setting here.
  • Once you have all of selected all of the information for Subscriptions using unified Shopify checkout, click on the "Save and Continue" button at the bottom of this section.
    • (See Figure 10).

Step 11 screenshot

Figure 10

Web Container Setup

  • After selecting details for the subscriptions, you need to set up the Web Container.
    • First, select the button labeled "Download Pre-Built Web Tags".
  • After setting up the web container, click on the "Mark as Complete" button at the bottom of this section.
    • (See Figure 11)

Step 12 screenshot

Figure 11

[Optional] Test the Facebook CAPI Integration:

Follow this guide for testing the Facebook CAPI Integration

Go Live:

  • After completing all of the previous Facebook Setup Steps, an Overview page will appear.
    • If all of the details within the Configuration Summary look correct, then click on the button labeled "Go Live" at the bottom of this section.
  • A pop-up window will appear, asking for a confirmation of your changes.
    • Click on the button labeled "Yes, Go Live".
      • (See Figure 12)

Step 13 screenshot

_Figure 12_

๐Ÿšง

Be sure to remove any pre-existing Facebook tracking setup if you haven't already done so!

If you're using native Shopify follow this guide.