single php
cdp menu

How to setup E-commerce Event Tracking and Integrate with Facebook Custom Audience

·

·

In this article, I would like to explain you to setup event tracking for your Shopify store using Action Recorder and send your data to Facebook Custom Audiences. Where you can create a specific group of people and target with ads.

E-commerce store event tracking

Step 1: Account setup

Setting up an account with action recorder is very easy, it just takes you few seconds.

Step 2: Tracking code

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

On admin panel of your Shopify store
Click on online store from your dashboard, Go to Themes→Actions→Edit→HTML/CSS→Layout→theme.liquid
Paste your unique code under the <head tag> as it is done below and click on save.

Enter your store’s URL in Action recorder and click on verify code.

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

Step 3: Action recorder

For this following example, I’m going to show you to record actions for events such as 1.Add to cart, 2.Checkout made 3.Removed from cart 4.Search made

1. Shopify Add To Cart  

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

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

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

For this, I want to track “ADD TO CART” event for all the products in my Shopify store. So that I could get the name and price of a specific product which is been sent to cart.

Click on save, Once you are done. The “ADD TO CART” event is now set with Action Recorder.

2.Shopify checkout made 

To track check out made event in Shopify choose  “CHECKOUT MADE” as the Action name.

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

Next step is selecting the attribute. For this below example, I need a specific products name which is been sent to “check out”, Choose accordingly.

Click on pointing symbol manually and select the product’s name. As it is done below.

For this, I want to track Check out made event for all the products in my Shopify store. So that I could get the name of a specific product which is been sent to check out.

Click on save, Once you are done. The “Checkout made” event is now set with Action Recorder.

3. Shopify abandoned cart

To track cart abandonment event in Shopify choose “REMOVED FROM CART” as the action type.

Click on pointing symbol manually and select “Remove” as shown below.

Next step is selecting the attribute. For this below example, I need specific product’s name which is been removed from cart, choose accordingly.

Click on pointing symbol manually and select product name.

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

Click on save, once you are done. The “Removed from cart” event is now set with Action Recorder.

4.Shopify Search Made   

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

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

Next step is selecting the attribute. Choose URL Query, search string and type q and click on verify.
On clicking save, you will find your saved attributes as it is shown below.

In order to track searches throughout your Shopify store, choose all pages.

Click on save, Once you are done. The “Search made” event is now set with Action Recorder.

Step 4: 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.

In order to test this, if it is working open your Shopify 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 store, you will get the live data of the specific product which is been sent to cart.

Case 2: Removed From Cart

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

Case 3: Checkout Made

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

Case 4: Search Made

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

Step5: Facebook Customization

To send your event data to Facebook you need to Integrate Facebook with Action Recorder.
In order to create a Facebook pixel, Go to Facebook Pixel Tab in Ads Manager→Click Create Pixel→Name your Pixel→Create pixel.
To Customize Facebook with Action Recorder, you need to follow these steps.

1.Configuration settings– Paste your Facebook tracking Pixel and click on save.

2.Setup Action Workflow– Choose actions which you want to send. For this below example, I want to send “Add to Cart”,“Removed from cart”,“Checkout made” events to Facebook.

Test Facebook Customization

Facebook Customization with Action Recorder is all set now. In order to test this, open your Shopify store in a new window and click on different events which you just sent for Facebook.

Towards the Pixel tab in Adverts manager- Facebook, You can find your events and stats of your Shopify store.

On clicking any particular event, you will get the exact information of the product which has been clicked.

Facebook Custom Conversion

To create Custom conversion, Go to Facebook Ads manager→Tools→Custom conversion
For this example, I want to create “Add To Cart” event. Set your preferred value and choose a category and click on next.

On clicking Add to cart, The stats get displayed.

Facebook Custom Audience

With custom Audience, you can connect with the people who have already shown interest in your products and send Facebook targeted ads directly.
( The minimum size of facebook custom audience is 20 )
To create custom Audiences, Go to Facebook Ads manager→Tools→Custom Audiences→website traffic
For this following example, I want to track people who have added products in my Shopify store and didn’t click on Checkout.

For this, I should Include people who have clicked “Add To Cart” on any of my products in my Shopify store and exclude people who haven’t clicked on “Checkout”.
Give a name for your audience and click on Create Audience.
After setting up a list of Custom Audience, you are all set to send your Facebook ads which target a specific group of audience.
That’s it, you are ready to send your Shopify store’s events to your Facebook Custom Audience.
Was it easy…?
If yes, how long it took…?
 
Action Recorder is specially made for Digital marketers like you, To increase your productivity…
Please recommend us…
Try Action Recorder, if you need any help do let me know. Happy to help you.

 

The latest news, perspectives, and insights from CustomerLabs

Get started with CustomerLabs CDP