Server-side Tracking Facebook Conversions API (CAPI) with Event Match Quality

Standard

Server-side Facebook Conversions API (CAPI) Tracking with Event Match Quality using Google Tag Manager without Facebook event deduplication using Google Tag Manager

Recently one of client ask me to implemented to implement Facebook Server-side Conversions API (CAPI) Tracking using Google Tag Manager without Event Deduplication using Google Tag Manager.

Server-side Facebook Conversions API Tracking

Facebook Server-side Conversions API (CAPI) Tracking with Event Match Quality

Set Up Server-side Tracking Facebook Conversions API with Event Match Quality using Google Tag Manager 

Paste this code as high in the <head> of the page as possible:

<!– Google Tag Manager –>

<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-XXXX’);</script>
<!– End Google Tag Manager –>

Additionally, paste this code immediately after the opening <body> tag:
<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-XXXX”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>

Note: Make you will replace GTM Tracking Code with your GTM ID XXXXX

    • Server-Side Facebook Conversions API (CAPI) Tracking Magento – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality integration using Google Tag without touchCode for Magento
    • Server-Side Facebook Conversions API (CAPI) Tracking Woocommerce – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality using Google Tag without touchCode for Woocommerce
    • Server-Side Facebook Conversions API (CAPI) Tracking Volusion – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality using Google Tag without touchCode for Volusion
    • Server-Side Facebook Conversions API (CAPI) Tracking for Bigcommerce – Set Up Server-Side GA4 Tracking forServer-side Facebook Conversions API (CAPI) with Event Match Quality using Google Tag without touchCode for BigCommerce 
    • Server-Side Facebook Conversions API (CAPI) Tracking for Neto – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality using Google Tag without touchCode for Neto
    • Server-Side Facebook Conversions API (CAPI) Tracking for Shopify – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality using Google Tag without touchCode for Shopify
    • Server-Side Facebook Conversions API (CAPI) Tracking for Custom Website – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality using Google Tag without touchCode for Custom Website
    • Server-Side Facebook Conversions API (CAPI) Tracking for SquareSpace – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality integration using Google Tag without touchCode for SquareSpace
    • Server-Side Facebook Conversions API (CAPI) for Opencart – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Qualityusing Google Tag without touchCode for Opencart
    • Server-Side Facebook Conversions API (CAPI) for Wix -Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality using Google Tag without touchCode for Wix
    • Server-Side Facebook Conversions API (CAPI) for weebly – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality using Google Tag without touchCode for Weebly
    • Server-Side Facebook Conversions API (CAPI) for osCommerce – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality using Google Tag without touchCode for osCommerce
    • Server-Side Facebook Conversions API (CAPI) for Joomla – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Qualityusing Google Tag without touchCode for Joomla
    • Server-Side Facebook Conversions API (CAPI) for Drupal – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality using Google Tag without touchCode for Drupal
    • Server-Side Facebook Conversions API (CAPI) for OpenCart – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality integration using Google Tag without touchCode for OpenCart
    • Server-Side Facebook Conversions API (CAPI) for PestaShop – Set Up Server-Side GA4 Tracking for Server-side Facebook Conversions API (CAPI) with Event Match Quality using Google Tag without touchCode for PestaShop

PageView:  It will trigger when a visitor visits, pages and Page loaded in the browser, it will send a pageView event for Server-Side Facebook Conversions API (CAPI) using Google Tag Manager

Setup Facebook Conversions API with Google Tag Manager

Google Tag Manager Server-Side with Facebook Conversion API

ViewContent:  It will trigger when a visitor visits a product  page , it will send a ViewContent event for Server-Side Facebook Conversions API (CAPI) using Google Tag Manager

Setup Facebook Conversions API with Google Tag Manager

Facebook Conversion API Manual Server-Side Tracking with Google Tag Manager

AddToCart:  It will trigger when a visitor visits a product  page then Click on AddToCart Button  , it will send a AddToCart event for Server-Side Facebook Conversions API (CAPI) using Google Tag Manager

Facebook conversion API set up

GA4 Server Side tracking for Facebook conversion API Setup using Google Tag Manager

InitiateCheckout:  It will trigger when a visitor entered to a checkout before buy a product  , it will send a InitiateCheckout event for Server-Side Facebook Conversions API (CAPI) using Google Tag Manager

Configure Server-Side Conversion API Events

Configure Server-Side Conversion API Events using Google Tag Manager

Track Facebook Conversion Pixel in an iFrame using Google Tag Manager

Standard

Facebook Conversion Pixel in an iFrame using Google Tag Manager

Recently, one of Client asks to implement Facebook Conversion Pixel, Lead Pixel and InitialCheckout out Pixel using Google Tag Manager,  Iframe Facebook conversion pixel it’s self a challenging work to get to fix, Iframe does not allow to fire conversion pixel like Lead Pixel and InitialCheckout

Issue on Facebook Iframe Conversion Pixel 

  1. Facebook pixel conversion tracking within iFrames Like Purchase, Lead Pixel and InitialCheckout
  2. Iframe Facebook Cross Domain Conversion Pixel
  3. Embed Iframe Facebook Pixel Tracking Like Purchase, Lead Pixel and InitialCheckout
  4. Facebook Pixel in an iframe on a Website Like Purchase, Lead Pixel and InitialCheckout

Install Google Tag Manager on Iframe and Website for Setup Facebook Pixel for your embedded Iframe Like Purchase Pixel, Lead Pixel and InitialCheckout 

Paste this code as high in the <head> of the page as possible:
<!– Google Tag Manager –>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-XXXX’);</script>
<!– End Google Tag Manager –>
Additionally, paste this code immediately after the opening <body> tag:
<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-XXXX”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>

Note:  Make you will replace GTM Tracking Code with your GTM ID XXXXX

Written couple of piece code to work with iframe embedded on the website to work facebook purchase, InitialCheckout and lead pixel then it’s working with Facebook Pixel iframe on the website and facebook cross-domain iframe postMessage to originate same session iframe and website sessions

Result Verify with Facebook Pixel Helper

Facebook Conversion Pixel in Iframe

Facebook Purchase Pixel, Lead Pixel and InitialCheckout in Iframe

Warning: If you do n’t know about javascript or do n’t have developing knowledge then do n’t try to Track Facebook Conversion Pixel in an iFrame using Google Tag Manager that can broke your site, Cart and other functionality 

Disclaimer: Google tag manager belongs to Google property 

For Contact: mappchero@gmail.com

I am available for Hire on Freelancer: Freelancer.com

I am available for Hire on Upwork: Upwork.com

I am available for Hire on Peopleperhour: Peopleperhour.com

I am available for Hire on Guru: Guru.com