For general Meta Pixel concepts, see Meta Ads Platform Overview
Prerequisites
- Meta Business Manager account
- Meta Pixel created in Events Manager
- Admin access to your Textpattern CMS site
- Your Pixel ID (numeric, found in Events Manager → Data Sources)
Installation Methods
Method 1: Via GTM (Recommended)
If you already have GTM installed on Textpattern CMS, add the Meta Pixel as a GTM tag:
<script>
!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');
</script>
- Set trigger to All Pages
- Preview → Test → Publish
Method 2: Direct Installation
Add the Meta Pixel code directly to your Textpattern CMS site's <head> section, using the same method described in the GTM setup guide.
Why GTM is preferred: Managing the pixel through GTM lets you update events, add Conversions API, and adjust settings without editing site code. Direct installation requires code changes for every modification.
Standard Events
After the base pixel, fire standard events for conversion tracking:
// Lead capture (form submission)
fbq('track', 'Lead', { content_name: 'Contact Form' });
// Content view (specific page)
fbq('track', 'ViewContent', {
content_name: 'Pricing Page',
content_category: 'Marketing'
});
// Complete registration
fbq('track', 'CompleteRegistration', {
content_name: 'Free Trial',
status: true
});
Verification
- Install the Meta Pixel Helper Chrome extension
- Visit your site — the extension icon should show a green checkmark with the number of events fired
- In Events Manager → Test Events, enter your site URL and verify events appear in real-time
- Check for errors: the Pixel Helper will flag issues like duplicate pixels or misconfigured events
Next Steps
- GTM Setup — install GTM for easier pixel management
- GA4 Event Tracking — track the same events in GA4
- Events Not Firing — troubleshoot pixel issues