---
title: Setting up Facebook Pixel with Google Tag Manager
description: Setting up Facebook Pixel with Google Tag Manager GTM
---

[Skip to content](https://info.resova.com/resova-knowledge-center/setting-up-facebook-pixel-with-google-tag-manager#main-content)

English

Show submenu for translations

[![Resova\_powered\_by\_Clubspeed](https://info.resova.com/hs-fs/hubfs/Resova_powered_by_Clubspeed.png?width=653&height=170&name=Resova_powered_by_Clubspeed.png)](https://info.resova.com/resova-knowledge-center?hsLang=en)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Contact us](https://share.hsforms.com/1B5QyPF-YRQutaoGEnmQD5w1etz6)

[Contact us](https://share.hsforms.com/1B5QyPF-YRQutaoGEnmQD5w1etz6)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Resova Customer Knowledge Center](https://info.resova.com/resova-knowledge-center?hsLang=en)
2. [Integrations](https://info.resova.com/resova-knowledge-center/integrations?hsLang=en)
3. [Advanced GTM Configurations](https://info.resova.com/resova-knowledge-center/integrations?hsLang=en#advanced-gtm-configurations)

# Setting up Facebook Pixel with Google Tag Manager

Prerequisite: Complete “[Step 1: Integrate Google Tag Manager with Resova](https://info.resova.com/resova-knowledge-center/integrating-google-tag-manager?hsLang=en)” before proceeding.

Facebook Pixel can easily be added to Google Tag Manager by using the the Custom html/JavaScript tag. It is recommended that you have Resova's **pageView** and **purchased** events set up for this tag, please use our guide on [Importing Resova's Google Tag Manager Triggers & Variables](https://info.resova.com/resova-knowledge-center/importing-resovas-google-tag-manager-triggers-variables?hsLang=en) to get those added.

#### Setting up Facebook Pixel Pageview Event

Click **Tags** on the left and then **New**.

In the tag form that appears, click the top left to add a name to the tag, for example "Facebook Pixel PageView". Then click tag configuration and, in the list that appears, scroll down to select **Custom HTML**.

In the **HTML** field enter your Facebook Pixel PageView code, for example:

 

```
   !function(f,b,e,v,n,t,s)    {if(f.fbq)return;n=f.fbq=function(){n.callMethod?    n.callMethod.apply(n,arguments):n.queue.push(arguments)};    if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';    n.queue=[];t=b.createElement(e);t.async=!0;    t.src=v;s=b.getElementsByTagName(e)[0];    s.parentNode.insertBefore(t,s)}(window, document,'script',    'https://connect.facebook.net/en_US/fbevents.js');    fbq('init', 'YOUR_PIXEL_ID');    fbq('track', 'PageView');
```

Click the **Triggering box** below and your list of triggers will appear. Click the **pageView** custom event and this will be added as the trigger.

Click **Save** in the top right to finish setting up the tag. Your basic Facebook Pixel tag is now ready to go and in order to go live with it you need to click the **Submit** option in the top right of Google Tag Manager

#### Setting up Facebook Pixel Purchased Event

Click **Tags** on the left and then **New**.

In the tag form that appears, click the top left to add a name to the tag, for example "Facebook Pixel Purchase". Then click tag configuration and, in the list that appears, scroll down to select **Custom HTML**.

In the **HTML** field enter your Facebook Pixel Purchase code, for example:

```
   !function(f,b,e,v,n,t,s)    {if(f.fbq)return;n=f.fbq=function(){n.callMethod?    n.callMethod.apply(n,arguments):n.queue.push(arguments)};    if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';    n.queue=[];t=b.createElement(e);t.async=!0;    t.src=v;s=b.getElementsByTagName(e)[0];    s.parentNode.insertBefore(t,s)}(window, document,'script',    'https://connect.facebook.net/en_US/fbevents.js');    fbq('init', 'YOUR_PIXEL_ID');    fbq('track', 'Purchase', { value: , currency: 'USD' });
```

In the code example above two variables are highlighted and need to be added to your code. Currency needs to be changed to the your currency, such as USD, GBP etc. is a Resova Custom Variable for the purchased transactions total.

Click the **Triggering box** below and your list of triggers will appear. Click the **purchased** custom event and this will be added as the trigger.

Click **Save** in the top right to finish setting up the tag. Your basic Facebook Pixel tag is now ready to go and in order to go live with it you need to click the **Submit** option in the top right of Google Tag Manager

- [General](https://info.resova.com/resova-knowledge-center/general?hsLang=en)
- [FAQs](https://info.resova.com/resova-knowledge-center/faqs?hsLang=en)
- [Getting Started](https://info.resova.com/resova-knowledge-center/getting-started?hsLang=en#main-content)

    - [Accounts Menu](https://info.resova.com/resova-knowledge-center/getting-started?hsLang=en#accounts-menu)
    - [Help Icon (?)](https://info.resova.com/resova-knowledge-center/getting-started?hsLang=en#help-icon)
- [Settings](https://info.resova.com/resova-knowledge-center/settings?hsLang=en#main-content)

    - [General Settings](https://info.resova.com/resova-knowledge-center/settings?hsLang=en#general-settings)
    - [Booking Site Settings](https://info.resova.com/resova-knowledge-center/settings?hsLang=en#booking-site-settings)
    - [Emails and Messaging](https://info.resova.com/resova-knowledge-center/settings?hsLang=en#emails-and-messaging)
- [Calendar](https://info.resova.com/resova-knowledge-center/calendar?hsLang=en#main-content)

    - [Modes](https://info.resova.com/resova-knowledge-center/calendar?hsLang=en#modes)
    - [Misc](https://info.resova.com/resova-knowledge-center/calendar?hsLang=en#misc)
    - [Create](https://info.resova.com/resova-knowledge-center/calendar?hsLang=en#create)
    - [Items View](https://info.resova.com/resova-knowledge-center/calendar?hsLang=en#items-view)
- [Reports](https://info.resova.com/resova-knowledge-center/reports?hsLang=en)
- [Integrations](https://info.resova.com/resova-knowledge-center/integrations?hsLang=en#main-content)

    - [Marketing (Integrations)](https://info.resova.com/resova-knowledge-center/integrations?hsLang=en#marketing-integrations)
    - [Productivity](https://info.resova.com/resova-knowledge-center/integrations?hsLang=en#productivity)
    - [Google Tag Manager (GTM) - Getting Started](https://info.resova.com/resova-knowledge-center/integrations?hsLang=en#google-tag-manager-gtm-getting-started)
    - [Advanced GTM Configurations](https://info.resova.com/resova-knowledge-center/integrations?hsLang=en#advanced-gtm-configurations)
- [Inventory](https://info.resova.com/resova-knowledge-center/inventory?hsLang=en#main-content)

    - [Extras](https://info.resova.com/resova-knowledge-center/inventory?hsLang=en#extras)
    - [Items](https://info.resova.com/resova-knowledge-center/inventory?hsLang=en#items)
    - [Resources](https://info.resova.com/resova-knowledge-center/inventory?hsLang=en#resources)
    - [Gift Vouchers](https://info.resova.com/resova-knowledge-center/inventory?hsLang=en#gift-vouchers)
- [Customers](https://info.resova.com/resova-knowledge-center/customers?hsLang=en#main-content)

    - [All Customers](https://info.resova.com/resova-knowledge-center/customers?hsLang=en#all-customers)
    - [Unassigned Waivers](https://info.resova.com/resova-knowledge-center/customers?hsLang=en#unassigned-waivers)
- [Payments](https://info.resova.com/resova-knowledge-center/payments?hsLang=en#main-content)

    - [FAQ](https://info.resova.com/resova-knowledge-center/payments?hsLang=en#faq)
- [Subscription](https://info.resova.com/resova-knowledge-center/subscription?hsLang=en)
- [Marketing](https://info.resova.com/resova-knowledge-center/marketing?hsLang=en#main-content)

    - [Discounts](https://info.resova.com/resova-knowledge-center/marketing?hsLang=en#discounts)
    - [Cart Abandonment](https://info.resova.com/resova-knowledge-center/marketing?hsLang=en#cart-abandonment)
    - [Customer Reviews](https://info.resova.com/resova-knowledge-center/marketing?hsLang=en#customer-reviews)
    - [FOMO Badge](https://info.resova.com/resova-knowledge-center/marketing?hsLang=en#fomo-badge)
- [Purchases](https://info.resova.com/resova-knowledge-center/purchases?hsLang=en#main-content)

    - [All Bookings](https://info.resova.com/resova-knowledge-center/purchases?hsLang=en#all-bookings)
    - [All Transactions](https://info.resova.com/resova-knowledge-center/purchases?hsLang=en#all-transactions)
    - [All Gift Purchases](https://info.resova.com/resova-knowledge-center/purchases?hsLang=en#all-gift-purchases)
- [POS](https://info.resova.com/resova-knowledge-center/pos?hsLang=en)
- [Migrations](https://info.resova.com/resova-knowledge-center/migrations?hsLang=en)
- [Playbook](https://info.resova.com/resova-knowledge-center/playbook?hsLang=en)

[![Resova\_byCLubspeed-1](https://info.resova.com/hs-fs/hubfs/Resova_byCLubspeed-1.png?width=720&height=93&name=Resova_byCLubspeed-1.png "Resova_byCLubspeed-1")](https://info.resova.com/resova-knowledge-center?hsLang=en)

Copyright © 2024, Club Speed, LLC