Skip to content

{eac}MetaPixel installs the Facebook/Meta Pixel to enable tracking of PageView, Search, ViewContent, AddToCart, InitiateCheckout and Purchase events.

License

Notifications You must be signed in to change notification settings

EarthAsylum/eacMetaPixel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

{eac}Doojigger MetaPixel Extension for WordPress

EarthAsylum Consulting WordPress eacDoojigger

Plugin Header

Plugin URI: https://eacdoojigger.earthasylum.com/eacmetapixel/
Author: EarthAsylum Consulting
Stable tag: 1.0.6
Last Updated: 23-Apr-2024
Requires at least: 5.5.0
Tested up to: 6.5
Requires PHP: 7.2
Requires EAC: 2.0
Contributors: kevinburkholder
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl.html
Tags: facebook, facebook pixel, meta pixel, facebook ads, {eac}Doojigger, facebook conversion, facebook tracking, conversion, tracking
WordPress URI: https://wordpress.org/plugins/eacmetapixel
GitHub URI: https://github.com/EarthAsylum/eacMetaPixel

{eac}MetaPixel installs the Facebook/Meta Pixel to enable tracking of PageView, Search, ViewContent, AddToCart, InitiateCheckout and Purchase events.

Description

{eac}MetaPixel is an {eac}Doojigger extension which installs the Facebook/Meta Pixel and enables tracking of PageView, Search, ViewContent, AddToCart, InitiateCheckout and Purchase events when using WooCommerce.

What is the Meta Pixel?

The Meta Pixel is a piece of code on your website that can help you better understand the effectiveness of your advertising and the actions people take on your site, like visiting a page or adding an item to their cart. You’ll also be able to see when customers took an action after seeing your ad on Facebook and Instagram, which can help you with retargeting. And when you use the Conversions API alongside the Pixel, it creates a more reliable connection that helps the delivery system decrease your costs.

See Meta Pixel

To retrieve your pixel id, Go to Meta Events Manager → Data Sources → Your Pixel → Settings → Pixel ID. Copy your pixel id and paste it into the "Facebook Pixel ID" field of this extension's settings.

Pixel Events

  • Page Views
    • PageView events may occur on all pages or only pages that don't trigger another event.
  • Site Search
    • Search result pages.
  • Content View (archives)
    • Archive (category and tag) pages.
  • Content View (products)
    • Product pages.
  • Content View (commerce)
    • Product category, tag, and shop pages.
  • Content View (cart)
    • The shopping cart page.
  • Add To Cart
    • Buttons and links that add an item to the cart.
  • Initiate Checkout
    • The checkout page.
  • Purchase Completed
    • Purchase confirmation page. (a 'Purchase' event is registered as a 'Subscription' if the order includes a subscription, or as a 'StartTrial' if any subscription has a trial start date.)

Server Based Conversion API

Support for the Meta Conversion API to track purchase events directly from your server is included. When using the Conversion API, additional information will be passed through the api, including:

  • Customer name (hashed, non-decipherable)
  • Customer email address (hashed, non-decipherable)
  • Customer phone number (hashed, non-decipherable)
  • Customer billing address (hashed, non-decipherable)
  • Order/cart details (item, quantity, price)

Since Facebook gives priority to the browser pixel, the browser pixel is suppressed in favor of the conversion api so the conversion api may provide more information.

To enable the server conversion api, Go to Meta Events Manager → Data Sources → Your Pixel → Settings. Scroll to Conversions API → Set up manually.

Click the "Generate access token" link under the "Get Started" button. Copy the access token and paste it into the "Server Access Token" field of this extension's settings.

Note: Server events require a Meta Business Manager.

Advantage+ Catalog Ads

The Content View (products), Add To Cart, Initiate Checkout, and Purchase Completed events meet the requirements for Advantage+ catalog ads.

  • content_type : 'product'.
  • content_ids : array of product ids (WooCommerce ID) e.g. [1174,1175].

The server Conversion API for purchases also includes:

  • contents : array of product details containing id (product sku), quantity, and item_price.

Domain Verification

You may, optionally, add the Facebook Brand Safety domain verification meta tag to your home page.

Go to Meta Business Settings → Brand Safety → Domains → Your Domain → Add a meta-tag, and copy just the content= string.

In this example:

    <meta name="facebook-domain-verification" content="xyzzy1ndu84mmhaifl5gawo9ntafn8" />

We want only xyzzy1ndu84mmhaifl5gawo9ntafn8 copied and pasted into the "Domain Verification" field of this extension's settings.

Installation

{eac}Doojigger MetaPixel Extension is an extension plugin to and requires installation and registration of {eac}Doojigger.

Automatic Plugin Installation

This plugin is available from the WordPress Plugin Repository and can be installed from the WordPress Dashboard » Plugins » Add New page. Search for 'EarthAsylum', click the plugin's [Install] button and, once installed, click [Activate].

See Managing Plugins -> Automatic Plugin Installation

Upload via WordPress Dashboard

Installation of this plugin can be managed from the WordPress Dashboard » Plugins » Add New page. Click the [Upload Plugin] button, then select the eacmetapixel.zip file from your computer.

See Managing Plugins -> Upload via WordPress Admin

Manual Plugin Installation

You can install the plugin manually by extracting the eacmetapixel.zip file and uploading the 'eacmetapixel' folder to the 'wp-content/plugins' folder on your WordPress server.

See Managing Plugins -> Manual Plugin Installation

Settings

Once installed and activated options for this extension will show in the 'Tracking' tab of {eac}Doojigger settings.

Screenshots

  1. MetaPixel Extension {eac}MetaPixel Extension

Other Notes

Additional Information

  • {eac}MetaPixel is an extension plugin to and requires installation and registration of {eac}Doojigger.

See: Specifications for Facebook Pixel Standard Events

About

{eac}MetaPixel installs the Facebook/Meta Pixel to enable tracking of PageView, Search, ViewContent, AddToCart, InitiateCheckout and Purchase events.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages