# Facebook Ads

> Connect Facebook Ads with AnyTrack to enable Conversion API tracking and campaign reporting. Send server-side conversion data for better ad optimization and accurate attribution.

Connect your website or shop with Facebook Ads using AnyTrack. As a Meta Business Partner, AnyTrack connects your tracking without coding and improves ROAS, Event Match Quality, and attribution with real-time data. To understand how AnyTrack uses the Meta Pixel, Conversion API, and Conversion API for CRM together, see [Meta Pixel vs CAPI vs CAPI for CRM](/docs/meta-pixel-vs-capi-vs-capi-for-crm).

<Callout icon="📘" theme="info">
<p><strong>TL;DR</strong></p>

<p>This article covers everything you need to know about integrating AnyTrack with Facebook Ads, including:</p>

<ol>
  <li><strong>Setup and Connection</strong>: How to connect your website or shop to Facebook Ads through AnyTrack without coding.</li>
  <li><strong>Conversion Tracking and Mapping</strong>: How AnyTrack tracks conversions, handles data mapping, and ensures measurement accuracy.</li>
  <li><strong>Reporting and Optimization</strong>: How to optimize ad spend, create custom audiences, and access detailed campaign reports.</li>
  <li><strong>Prerequisites for Integration</strong>: What you need to have in place before starting the <a href='#how-to-set-up-facebook-ads-in-anytrack-in-5-minutes'>Facebook Ads integration</a> in AnyTrack.</li>
  <li><strong>Step-by-Step Integration Guide</strong>: Simple steps to connect Facebook Ads to AnyTrack, enable server-side tracking, and verify the connection.</li>
  <li><strong>Verification and UTM Tracking</strong>: How to verify your ads and install the UTM Tracking Template for precise conversion tracking.</li>
</ol>

<p>If you're ready to get started, you can skip ahead to the <a href='#how-to-set-up-facebook-ads-in-anytrack-in-5-minutes'>How to Set Up Facebook Ads in AnyTrack</a> section.</p>
</Callout>

## Facebook Ads Integration Features

### Main Features

<Cards columns={2}>

  <Card title="Ads Reporting and Campaign Sync" icon="fa-duotone fa-solid fa-chart-bar">
    <p>See your Facebook Ads campaign performance data in AnyTrack. AnyTrack imports the campaign metrics on a schedule. Sync your Facebook Ads data for detailed reporting across all your marketing channels.</p>

    <ul>
      <li>Unified reporting dashboard</li>
      <li>Scheduled campaign metrics import</li>
      <li>Cross-channel attribution</li>
      <li>Performance analytics</li>
    </ul>
  </Card>

  <Card title="Conversion API" icon="fa-duotone fa-solid fa-server">
    <p>Server-side connection to Facebook's Conversion API for accurate conversion tracking that bypasses browser limitations and ad blockers.</p>

    <ul>
      <li>Server-to-server tracking</li>
      <li>Enhanced measurement accuracy</li>
      <li>Improved Event Match Quality</li>
      <li>Privacy-compliant data delivery</li>
    </ul>
  </Card>

  <Card title="Lead Ads and CRM Conversions" icon="fa-duotone fa-solid fa-users">
    <p>Track <a href='/docs/facebook-lead-ads'>Meta Lead Ads with Instant Forms</a> and send CRM conversions to Facebook Conversion API to close the conversion loop.</p>

    <ul>
      <li>Lead Ads campaign tracking</li>
      <li>CRM conversions sent to Meta</li>
      <li>Complete customer journey visibility</li>
      <li>Offline conversion tracking</li>
    </ul>
  </Card>

  <Card title="Tag Management" icon="fa-duotone fa-solid fa-code">
    <p>AnyTrack automatically loads and manages your Meta Pixel, ensuring proper initialization and complete event data collection without manual code implementation.</p>

    <ul>
      <li>Automatic tag loading</li>
      <li>No-code implementation</li>
      <li>Proper Meta Pixel initialization</li>
      <li>Centralized tag management</li>
    </ul>
  </Card>

</Cards>

### Configuration and Management

<Cards columns={2}>

  <Card title="Connect Multiple Ad Accounts" icon="fa-duotone fa-solid fa-link">
    <p>Connect multiple Facebook Ad accounts to a single AnyTrack property for consolidated reporting and management across all your advertising efforts.</p>

    <ul>
      <li>Multi-account support</li>
      <li>Centralized management</li>
      <li>Consolidated reporting</li>
      <li>Flexible account switching</li>
    </ul>
  </Card>

  <Card title="UTM Parameters" icon="fa-duotone fa-solid fa-tag">
    <p>Use AnyTrack's recommended <a href='/docs/facebook-utm'>UTM tracking template</a> with dynamic parameters for precise attribution.</p>

    <ul>
      <li>Dynamic parameter insertion</li>
      <li>Standard and custom parameters</li>
      <li>Automated campaign tagging</li>
      <li>Bulk template application</li>
    </ul>
  </Card>

  <Card title="Event Mapping" icon="fa-duotone fa-solid fa-route">
    <p>Map your website or platform events to Facebook's standard events or create custom event mappings directly from the AnyTrack dashboard.</p>

    <ul>
      <li>Standard event mapping</li>
      <li>Custom event support</li>
      <li>Visual mapping interface</li>
      <li>Event preview and testing</li>
    </ul>
  </Card>

  <Card title="Custom Conversions" icon="fa-duotone fa-solid fa-bullseye">
    <p><a href='/docs/facebook-custom-conversions'>Create custom conversions</a> directly from the AnyTrack dashboard to track business-specific goals without additional code.</p>

    <ul>
      <li>No-code custom conversions</li>
      <li>Rule-based conversion creation</li>
      <li>Advanced filtering options</li>
      <li>Direct API integration</li>
    </ul>
  </Card>

</Cards>

<PlaybookCallout slug="optimize-facebook-ads-for-hubspot-mqls" />

### Validation and Testing Tools

<Cards columns={3}>

  <Card title="Verify Ads Setup" icon="fa-duotone fa-solid fa-check-circle">
    <p>Automatically verify that your UTM tracking template is correctly installed across all your Facebook campaigns with visual status indicators.</p>

    <ul>
      <li>Red/yellow/green status marks</li>
      <li>Campaign-level verification</li>
      <li>Error detection and guidance</li>
      <li>Bulk verification tool</li>
    </ul>
  </Card>

  <Card title="Event Match Quality Dashboard" icon="fa-duotone fa-solid fa-star">
    <p>Monitor and optimize your <a href='/docs/facebook-event-match-quality'>Event Match Quality scores</a> to improve attribution accuracy and ad performance.</p>

    <ul>
      <li>Real-time EMQ monitoring</li>
      <li>Score improvement suggestions</li>
      <li>Parameter completeness tracking</li>
      <li>Data quality insights</li>
    </ul>
  </Card>

  <Card title="Test Mode" href="/docs/meta-capi-test-mode" icon="fa-duotone fa-solid fa-flask">
    <p>View conversion data sent to Facebook in real-time to verify your integration is working correctly before going live.</p>

    <ul>
      <li>Real-time event preview</li>
      <li>Test event validation</li>
      <li>Debug mode visibility</li>
      <li>Pre-launch verification</li>
    </ul>
  </Card>

</Cards>

## Meta Conversion API (CAPI) and Server-Side Tracking

With server-to-server tracking on, AnyTrack sends all conversion events to Meta server-side through the Conversion API. The Meta Pixel, loaded by the AnyTrack Tracking Tag, triggers only `PageView`, so ad blockers and browser privacy restrictions do not affect your conversion data. Connecting Facebook Ads for campaign reporting and Meta Pixel tag management works on every plan, including Free; sending conversions through the Conversion API requires a Starter plan or higher.

To manage consent for the Meta Pixel, [set up Consent Mode](/docs/consent-mode).

**[Set up the Facebook Conversion API](/docs/facebook-conversion-api)** for the full pipeline, setup steps, verification, and deduplication.

For how the Meta Pixel, Conversion API, and Conversion API for CRM compare and work together, see [Meta Pixel vs CAPI vs CAPI for CRM](/docs/meta-pixel-vs-capi-vs-capi-for-crm).

<PlaybookCallout slug="send-shopify-purchases-to-meta-conversions-api" />

## How AnyTrack Works with Facebook Ads

<Tabs>

  <Tab title="The Process">
    <p>Here's how AnyTrack integrates with Facebook Ads to optimize your campaigns:</p>

    <Cards columns={2}>

      <Card title="1. Visitor Interaction" icon="user">
        <p><strong>When visitors land on your website</strong>, the AnyTrack Tracking Tag activates:</p>
        <ul>
          <li>Automatically loads the Meta Pixel (if not already present)</li>
          <li>Collects essential data (UTM parameters, referrer data, <code>fbclid</code>)</li>
          <li>Gathers first-party data (cookies, session IDs)</li>
          <li>Activates AutoTag on trackable elements (carts, product links, forms)</li>
        </ul>
      </Card>

      <Card title="2. Event Tracking" icon="mouse-pointer">
        <p><strong>When visitors engage with your content</strong>, AnyTrack automatically tracks:</p>
        <ul>
          <li>Key events: <code>AddToCart</code>, <code>OutboundClick</code>, <code>FormSubmit</code></li>
          <li>Tags forms, links, and carts with tracking parameters</li>
          <li><a href='/docs/shopify'>Shopify</a>, <a href='/docs/clickfunnels'>ClickFunnels</a>, <a href='/docs/woocommerce'>WooCommerce</a> tracking</li>
        </ul>
      </Card>

      <Card title="3. Event Processing" icon="cogs">
        <p><strong>Tracked events are processed in real-time:</strong></p>
        <ul>
          <li>Deduplication and normalization based on Facebook's requirements</li>
          <li>Event Mapping to Facebook's standard events</li>
          <li>Event Attributes matched to Facebook's expectations</li>
        </ul>
      </Card>

      <Card title="4. Real-Time Reporting" icon="fa-duotone fa-solid fa-chart-bar">
        <p><strong>Live data and reporting</strong>:</p>
        <ul>
          <li>Real-time tracking data available across AnyTrack dashboard</li>
          <li>Complete reports combining multiple data sources</li>
          <li>Instant insights into campaign performance</li>
        </ul>
      </Card>

    </Cards>

  </Tab>
  
  <Tab title="Data Flow Diagram">
    <p>The integration follows this data flow:</p>

    <p><strong>Website Visitor</strong> → <strong>AnyTrack Tag</strong> → <strong>Event Processing</strong> → <strong>Facebook Conversion API</strong> → <strong>Campaign Optimization</strong></p>

    <p>Each step ensures data accuracy, compliance, and real-time attribution for optimal performance.</p>
  </Tab>

</Tabs>

## How to Set Up Facebook Ads in AnyTrack (in 5 minutes)

<Prerequisites
  title="Before you begin"
  items={[
    { label: 'An active AnyTrack Property that connects your website or shop to AnyTrack' },
    { label: 'A connected conversion source from the Integration Catalog to receive conversions' },
    { label: 'Facebook Business Manager access with permission to manage your ad account' }
  ]}
/>

New to AnyTrack? Learn how to [create a property](/docs/create-property) and browse the [Integration Catalog](/docs/integration-catalog) to connect a conversion source.

### Video Walkthrough

Watch the complete connection. The video shows how to authorize Facebook Login for Business, select your business, ad account, and pixel, turn on the Conversion API, connect your Facebook Page for Lead Ads, and copy the UTM tracking template.

<YouTube id="KcsQjSh8TBw" posterQuality="max" title="Facebook Ads Integration: Automation for Conversion API, Ads Insights & Attribution" />

<Cards columns={1}>

  <Card title="Step 1: Connect Your Facebook Ads Account" icon="fa-duotone fa-solid fa-link">
    <p>Connect your accounts to allow automatic syncing of campaign data and conversions through the Conversion API. No coding needed.</p>

    <ol>
      <li>Log in to AnyTrack, navigate to Tracking Pixels, and click Connect Pixel on the Facebook Pixel card</li>
      <li>Follow the prompts to connect your Facebook Ads account</li>
      <li>Enable server-to-server tracking</li>
      <li>Save changes</li>
    </ol>

    <Video align="center" alt="Connect your Facebook Ads account and enable server-to-server tracking" border={true} caption="Connect your website to the Facebook Conversion API in seconds" src={readmeAsset1} />

    <Callout icon="📘" theme="info">
    <p><strong>Enable Server-to-Server Tracking</strong></p>

    <p>In the Facebook Conversion API section, turn on Enable server-to-server tracking to send conversion events through a secure connection to the Conversion API. No code needed.</p>
    </Callout>

  </Card>

  <Card title="Step 2: Install the UTM Tracking Template" icon="fa-duotone fa-solid fa-code">
    <p>The UTM Parameters Template allows AnyTrack to accurately identify and attribute conversions to the correct Facebook Ad.</p>

    <ol>
      <li>Select the connected Facebook Pixel in the Tracking Pixels section, click the Ads Integration tab, and copy the UTM Tracking Template</li>
      <li>Log in to Meta Ads Manager and navigate to the ad level</li>
      <li>Select the ads, click Edit, and open URL parameters</li>
      <li>Paste the tracking template with all necessary parameters (ad set name, ad ID, campaign ID)</li>
      <li>Verify your ads</li>
    </ol>

    <Video align="center" alt="Install the UTM Tracking Template in Meta Ads Manager" border={true} caption="Install the UTM Tracking Template in Meta Ads Manager" src={readmeAsset2} />

  </Card>

  <Card title="Step 3: Verify Your Ads" icon="fa-duotone fa-solid fa-check-circle">
    <p>Verify that your ads are properly configured after connecting and installing the UTM Tracking Template.</p>

    <ol>
      <li>Navigate to the Tracking Pixels section and select the Facebook Pixel for your campaigns</li>
      <li>Click the Ads Integration tab</li>
      <li>Click <strong>Verify Ads Settings</strong>. If correctly installed, you'll see a green mark next to your campaigns</li>
    </ol>

    <Callout icon="🚧" theme="warning">
    <p><strong>Campaigns With Conversion Events Only</strong></p>

    <p>Verify Ads Settings only shows campaigns with conversion event objectives. <a href='/docs/facebook-ads-troubleshooting#campaigns-not-found-for-awareness-and-traffic-objectives'>Learn more</a></p>
    </Callout>

    <Video align="center" alt="Use Verify Ads Settings to check if the UTM template is correctly installed" border={true} caption="Verify your ads have the correct UTM tracking template" src={readmeAsset3} />

    <p>A red mark indicates the template was not found. A yellow mark signals the template is present but contains errors. Click to see the cause of the warning.</p>

    <Image align="center" alt="Click the red or yellow mark to see the cause of the warning" border={true} caption="Click the ads to see the cause of the warning" src={readmeAsset4} />

    <p><a href='https://scribehow.com/shared/Verify_Your_Ads_for_Metas_UTM_Tracking_Template__8gZwG3PkR0ujz7zz4eteNA' target='_blank' rel='noopener noreferrer'>Learn how to troubleshoot your UTM tracking template setup</a></p>
  </Card>
</Cards>

## Validate Your Facebook Integration

Once installed, the UTM template allows AnyTrack to track every visitor's journey from the Facebook ad click to conversion, providing detailed insights into your campaign's performance.

<Callout icon="⏰" theme="info">
<p><strong>Data Freshness: When to Expect Conversions in Meta</strong></p>

<p>AnyTrack sends conversions in real-time to the Facebook Conversion API. Meta processes this data on its own schedule:</p>

<ul>
  <li>
    <strong>Events Manager</strong>: 20 minutes for event parameters to appear. The Test Events Tool validates Meta Pixel events within 30 seconds.
    <Image align="center" border={true} src={readmeAsset5} alt="Meta Events Manager showing event parameters received from AnyTrack" />
  </li>
  <li><strong>Ads Manager</strong>: Campaign metrics display in real-time; conversions report within hours for standard web campaigns.</li>
  <li><strong>iOS campaigns</strong>: Expect 24 hours to 60+ days delay due to Apple's SKAdNetwork privacy restrictions.</li>
  <li><strong>Data finalization</strong>: Meta finalizes conversion data after 28 days. Numbers may adjust during this period as attribution models process incoming signals.</li>
</ul>

<p><strong>Warnings</strong>: Some warnings are normal when you first connect, as Facebook adjusts to the new data format. Persistent warnings may indicate configuration issues. See the <a href='/docs/facebook-ads-troubleshooting'>Troubleshooting Guide</a> to understand which warnings you can ignore and which need action.</p>
</Callout>

### Validation Checklist

- [ ] Check that you've connected the correct Meta Pixel ID.
- [ ] Check that you've connected your ad account.
- [ ] Check that you've enabled the Facebook Conversion API.
- [ ] If you've updated the Event Mapping, verify that the events are being recorded in the Events Manager.
- [ ] You've added the <a href='/docs/facebook-utm'>Facebook UTM Tracking template</a> to all your ads.
- [ ] Check that you've selected the correct Meta Pixel and optimization event in your campaigns.
- [ ] With server-to-server tracking on, check the Meta Events Manager to ensure that `PageView` is the only Browser event.

## Cross-Platform Integration

<Cards columns={2}>

  <Card title="Other Ad Platforms" icon="fa-duotone fa-solid fa-bullseye">
    <p><strong>Expand Your Reach</strong>: AnyTrack supports multiple advertising platforms beyond Facebook. Set up unified tracking across:</p>

    <ul>
      <li><a href='/docs/google-ads'>Google Ads</a> - Track Google's conversion data with enhanced attribution</li>
      <li><a href='/docs/tiktok-ads'>TikTok Ads</a> - Use TikTok's growing advertising platform</li>
      <li><a href='/docs/microsoft-ads'>Microsoft Ads</a> - Reach Bing's search audience effectively</li>
      <li><a href='/docs/taboola'>Taboola</a> - Native advertising with precise tracking</li>
    </ul>
  </Card>

  <Card title="eCommerce Integration" icon="shopping-cart">
    <p><strong>Connect Your Store</strong>: Integrate your eCommerce platform for complete conversion tracking:</p>

    <ul>
      <li><a href='/docs/shopify'>Shopify Integration</a> - Tracking Tag + webhooks for automatic order tracking</li>
      <li><a href='/docs/woocommerce'>WooCommerce Integration</a> - WordPress eCommerce tracking</li>
      <li><a href='/docs/clickfunnels'>ClickFunnels Integration</a> - Funnel-based conversion tracking</li>
      <li>Browse our complete <a href='/docs/integration-catalog'>Integration Catalog</a> for more platforms</li>
    </ul>
  </Card>

</Cards>

<FaqAccordion
  title="Facebook Ads Integration FAQ"
  icon="fa-duotone fa-circle-question"
  items={[
    {
      question: "Do I need to add the Facebook Token in AnyTrack?",
      answer: "No. The AnyTrack app automatically generates the Facebook Token when you connect your AnyTrack account with Facebook.<br/><br/><img src='" + readmeAsset6.src + "' alt='Facebook Business Manager Integration' />"

    },
    {
      question: "How do I verify that my Conversion API is connected?",
      answer: "Open the Events Manager to see where the events are coming from. Check your <a href='https://www.facebook.com/settings/?tab=business_tools'>Business Manager Integration</a> page for the AnyTrack app."
    },
    {
      question: "How do I inspect conversions sent to the Facebook Conversion API?",
      answer: "Go to Meta Events Manager, select the event, and open event details. Inspect each section to review data sent via AnyTrack.<br/><br/><img src='" + readmeAsset7.src + "' alt='Inspecting Conversions' />"
    },
    {
      question: "What is Facebook Ads integration in AnyTrack?",
      answer: "It allows you to track and attribute conversions from your Facebook Ads and sync conversion data for real-time optimization."
    },
    {
      question: "How do I set up Facebook Ads integration in AnyTrack?",
      answer: "Connect your Facebook Ads account, map events, and add the AnyTrack Tag to your website."
    },
    {
      question: "What is event mapping in AnyTrack?",
      answer: "Event mapping defines how your site events match Facebook standard or custom events for attribution. Learn more about <a href='/docs/event-mapping'>Event Mapping</a> configuration.<br/><br/><video src='" + (readmeAsset8.src ?? readmeAsset8) + "' aria-label='Remap your AnyTrack events to the Meta Pixel events.' autoplay loop muted playsinline controls preload='metadata'></video>"
    },
    {
      question: "What are the benefits of using AnyTrack with Facebook Ads?",
      answer: "Real-time conversion data, better ad optimization, and less manual tracking."
    },
    {
      question: "Why should I load the Meta Pixel through AnyTrack?",
      answer: "Loading the Meta Pixel through AnyTrack ensures complete event data, better match rates, and optimized tracking, something you cannot guarantee with third-party setups."
    },
    {
      question: "Why do my AnyTrack conversions not match what I see in Meta Ads Manager?",
      answer: "AnyTrack sends conversions in real-time, but Meta reports conversions in Ads Manager within hours and takes up to 28 days to finalize attribution data. iOS campaigns add further delay (24 hours to 60+ days) due to SKAdNetwork. Differences in attribution models also play a role: Meta uses post-click and post-view attribution, while AnyTrack uses click-based attribution only (First Ad Click or Last Ad Click, switchable in the Campaign Report), with no post-view attribution."
    },
    {
      question: "How do I test that my Meta Pixel events are being sent correctly through AnyTrack?",
      answer: "Follow these steps to verify your setup:<br/><br/><strong>1. AnyTrack Conversions Report:</strong> Open the Conversions Report in AnyTrack. Trigger a test conversion (e.g., submit a form or complete a test purchase). You should see the event recorded in near real time.<br/><br/><strong>2. Facebook Test Events Tool:</strong> In Meta Events Manager, open the <strong>Test Events</strong> tab. Events sent via the Conversion API will appear within 30 seconds of being triggered.<br/><br/><strong>3. Check Event Details:</strong> Click on any event in the Events Manager to inspect the parameters sent (event name, value, <code>fbclid</code>, etc.). Verify the data matches what you expect.<br/><br/><strong>4. Common Issues:</strong> If events don't appear, check that: (a) the Conversion API (server-to-server) is enabled in your Tracking Tag settings, (b) the UTM tracking template is installed on your ads, and (c) your Event Mapping is configured correctly."
    }
  ]}
/>

## Related Articles

- [Facebook Conversion API](/docs/facebook-conversion-api)
- [Install the AnyTrack Tag](/docs/install-anytrack-tag)
- [Facebook Ads Troubleshooting](/docs/facebook-ads-troubleshooting)
- [Facebook Business Manager Permissions](/docs/facebook-business-manager-permissions)

## Next Steps

<Cards columns={2}>

  <Card title="Explore Other Integrations" href='/docs/integration-catalog' icon="puzzle-piece">
    <p><strong>Maximize Your Setup</strong>: Browse the Integration Catalog to connect all your marketing tools and platforms.</p>
  </Card>

  <Card title="Advanced Configuration" href='/docs/advanced-options' icon="cogs">
    <p><strong>Fine-tune Your Setup</strong>: Learn about advanced configuration options, custom events, and optimization techniques.</p>
  </Card>

</Cards>
