single php

Facebook Conversion API for Magento and how to implement it?

·

·

What is Facebook Conversion API?

Facebook conversion API formerly called server-side API lets advertisers track web events and share data directly from their website to Facebook. 

The impact of iOS’14 privacy update on Magento eCommerce platform

With around 2,65,000 merchants on its platform. The majority of the Magento site customers would be using Apple devices to view and purchase products.

The latest Apple iOS’14 update has given the choice for Apple users to opt-in or opt-out from app tracking events. If the user chooses to opt-in for tracking then the Facebook pixels tracking abilities will be limited. It is pretty much acknowledged by many experts that most of the users would choose to opt-out of tracking. 

As the advertiser didn’t receive enough data on Facebook regarding the users’ actions on their website. This will be a challenge for the advertisers to measure the performance of ad campaigns.

Why is the Facebook conversions API important?

Since the announcement of the iOS’14 update, Facebook has recommended advertisers to implement Facebook conversions API (server-side API). The significance of implementing Facebook Conversion API is that Magento stores can share event data from their website to Facebook. This helps advertisers track the performance of their ad campaigns

Impact of iOS updates

The latest Apple iOS’14 update has given the choice for Apple users to opt-in or opt-out from app tracking events. If the user chooses to opt-in for tracking then the Facebook pixels tracking abilities will be limited. It is pretty much acknowledged by many experts that most of the users would choose to opt-out of tracking.

As the advertiser didn’t receive enough data on Facebook regarding the users’ actions on their website. This will be a challenge for the advertisers to measure the performance of ad campaigns.

Why is the Facebook conversions API important?

Since the announcement of the iOS’14 update, Facebook has recommended advertisers to implement Facebook conversions API (server-side API). The significance of implementing Facebook Conversion API is that Magento stores can share event data from their website to Facebook. This helps advertisers track the performance of their ad campaigns

Facebook Conversion API for Magento and how to implement it

How to set up Facebook Conversions API for Magento using Customer Labs CDP?

Here are the steps to setup Magento event tracking and send your event data to Facebook via Facebook Conversion API

Step 1: Getting Started

Facebook Conversion API for Magento and how to implement it

Step 2: Account Setup

Setting up an account with CustomerLabs CDP is very easy, it just takes you few seconds

Facebook Conversion API for Magento and how to implement it

Step 3: Tracking Code

On clicking tracking code. You will get a unique code, simply paste that code into your Magento store

Facebook Conversion API for Magento and how to implement it

To do that go to admin panel of your Magento store account, select system>configuration. And in the design tab, go to Miscellaneous Scripts text area under HTML head. Paste your CallTrackingMetrics tracking code and click save config. Finally, enter your store’s URL in Action recorder and click on verify code.

Facebook Conversion API for Magento and how to implement it

You will get this message, once your account is verified.

Step 4: Setup tracking in your Magento store

Now, you are all set to record your actions using CustomerLabs CDP. Here, I’m going to show you to record actions for the following events:

1.Add to cart

2.Checkout made

3.Removed from cart

4.Search made

1. Magento “Add To Cart” event tracking

To track add to cart event, choose action name as “ADD TO CART”.

Facebook Conversion API for Magento and how to implement it

Click on pointing symbol manually and choose “Add to cart”, as it is done below.

Facebook Conversion API for Magento and how to implement it

Next step is selecting your attribute. For this below example, I need the name and price of the specific product which is been sent to cart, choose accordingly.

Facebook Conversion API for Magento and how to implement it

For this, I want to track Add to cart button in Magento store for all the products. So that I could get the name and price of the specific product that has been sent to cart.

Facebook Conversion API for Magento and how to implement it

Click on save, Once you are done. The Magento Add to cart event is now set with CustomerLabs CDP.

2. Magento Checkout Made,

To track checkouts, click on “CHECKOUT MADE” as the Action name.

Facebook Conversion API for Magento and how to implement it

Click on pointing symbol manually and select “check out”, as it is done below

Facebook Conversion API for Magento and how to implement it

Next step is selecting the attribute. For this below example, I need specific product’s name which is been sent to “check out”, choose accordingly,

Facebook Conversion API for Magento and how to implement it

Click on pointing symbol manually and select product name,

Facebook Conversion API for Magento and how to implement it

For this, I want to track “ Removed from cart” event for all the products in my Magento store. So that I could get the name of the specific product that has been removed from the cart, choose accordingly

Facebook Conversion API for Magento and how to implement it

Click on save, once you are done. The Magento abandoned cart event is now set with CustomerLabs CDP

4. Magento Search Made

To record searches made on your Magento store, select action name as “search made”.

Facebook Conversion API for Magento and how to implement it

Choose action type as the pageview, Once you are done click on Add Details.

Facebook Conversion API for Magento and how to implement it

Next step is selecting your attribute. For this below example, I need the name and price of the specific product which is been sent to cart, choose accordingly.

Facebook Conversion API for Magento and how to implement it

Order to track searches throughout your Magento store, choose all pages.

Facebook Conversion API for Magento and how to implement it

Click on save, once you are done. Magento product search event is now set with CustomerLabs CDP.

Step 5: Test Action Recorder

The next step is to test your Action Recorder. Your Action names and Action types will differ based on what you chose previously.

Facebook Conversion API for Magento and how to implement it

In order to test this, if it is working open your Magento store in the new window and click on the events which you just set for tracking.

Case 1: Add To Cart

On clicking “Add to cart” on any of your products in your Magento store, you will get the live data of the specific product which is been sent to cart. As shown below

Facebook Conversion API for Magento and how to implement it

Case 2: Removed From Cart

On clicking “remove from cart” on any of your products in your Magento store, you will get the live data of the specific product which is been removed from the cart.

Facebook Conversion API for Magento and how to implement it

Case 3: Checkout Made

On clicking checkout on any of your products in your Magento store, you will get the live data of the specific product that is been sent to checkout. On clicking checkout on any of your products in your Magento store, you will get the live data of the specific product that is been sent to checkout.

Facebook Conversion API for Magento and how to implement it

Case 4: Search Made

On searching something in your Magento store’s search bar, you will get the exact search term that is been typed. As it is shown below,

Facebook Conversion API for Magento and how to implement it

Steps to integrate your Magento store (website) with Facebook through Facebook Conversion API

The browsers and ad blockers are blocking requests made by Facebook. And Facebook has started using aggregated event measurement to prioritize events fired by pixel from the website.

To overcome these challenges, the recommended way is to start sending the data through the server.

Facebook Conversion API for Magento and how to implement it

Creating events on the Magento store using a no-code event tracker:

We use our no-code event tracker to track the events on the Shopify store and send the events data through server-side API / Facebook Conversion API.

It simply takes few clicks to choose elements to track and capture data,

Facebook Conversion API for Magento and how to implement it

As soon as the event is configured, the event data will start firing to the Facebook pixel. However, if you’d like to send the data through server-side or Facebook Conversion API, you just have to toggle between the on and off switches.

In just a few steps you can enable Facebook on the destination part

 👉Copy-paste your Facebook pixel id

👉 Authenticate Facebook and switch on the server-side send data.

Mapping the Facebook fields to improve Event Quality:

Map the Facebook fields with the data collected. This data mapping helps Facebook match the audience data sent from the server and improves your event quality score

Facebook Conversion API for Magento and how to implement it

Switching off client-side and on server-side

Finally, you should switch on the event you’d like to send from the server-side. Once you do that, Facebook pixel will start receiving the data via Conversion API score

Facebook Conversion API for Magento and how to implement it

Customizing Facebook event data to show personalised Ads

If you want to customize event data for eg: variables and content IDs, you can open the code window and write a call back function that allows you to customize the event the way you want.

Facebook Conversion API for Magento and how to implement it

Important concepts to improve match rate

External ID:

CustomerLabs CDP assigns external IDs to all the visitors and collects IP address, FBC, FBP, user agent, parameters.

And when we send data to Facebook, we automatically add these IDs to the visitors’ data and this has improved our match rate for up to 4x (Our match rates are quite high of about 70 -95% when compared to the normal match rates of 15% – 3 0%)

The above process is automated, there’s no need to set up anything.

Facebook Conversion API for Magento and how to implement it

You can access the event data on Facebook with all the event, user & account attributes under parameters.

Facebook Event Data

Facebook receives the data in real time, with all the attributes/parameters which can be used to create custom audience to engage them with personalized content.

 

 

CEO of CustomerLabs, Building next-generation tools for Digital Marketers. Moving ahead into the future of marketing, he realizes first-party data ops is necessary and is building technology to help marketers to make the experience with first-party data ops seamless! Being a founder and business leader, Vishnu talks about #cdp, #martech, #firstpartydata, #firstpartydataops, and #customerdataplatform

The latest news, perspectives, and insights from CustomerLabs

Get started with
CustomerLabs CDP

Schedule a 1-1 Demo

Ecommerce

Unified data to boost ecommerce growth

B2B

Engage your customers across the funnel with a unified martech stack

SaaS
Saas

Increase product metrics with a unified martech stack

Agency
Agency

Scale your customers quickly with the right data