How to Set Up Triple Whale for Meta Ads

I see Triple Whale setups that are completely missing Meta attribution data in about 30% of the e-commerce accounts I audit. The most common issue? The Triple Whale pixel is firing, but it’s not capturing the Meta click IDs properly, so all your Meta traffic shows up as “Direct” in Triple Whale’s attribution reports.

What You’ll Have Working By The End

Prerequisites

Step 1: Install the Triple Whale Pixel

Triple Whale’s pixel needs to be on every page to capture the full customer journey. If you’re on Shopify, this is straightforward. For other platforms, you’ll need to manually install the script.

Shopify Installation

  1. In Triple Whale, go to SettingsIntegrationsShopify
  2. Click Connect Shopify Store
  3. Enter your Shopify domain and authorize the connection
  4. Triple Whale automatically installs their pixel via the Shopify Scripts API

Manual Installation (Non-Shopify)

Add this script to your site’s <head> tag on every page:

<!-- Triple Whale Pixel -->
<script>
!function(t,r,i,p,l,e,W,h,a,l,e){
  t[e]=t[e]||function(){(t[e].q=t[e].q||[]).push(arguments)},
  t[e].l=1*new Date();W=r.createElement(i),h=r.getElementsByTagName(i)[0];
  W.async=1;W.src=p;h.parentNode.insertBefore(W,h)
}(window,document,'script','https://pixel.triplewhale.com/pixel/YOUR_PIXEL_ID/tw.js','tw');

tw('init', 'YOUR_PIXEL_ID');
tw('track', 'PageView');
</script>

Replace YOUR_PIXEL_ID with your actual pixel ID from Triple Whale’s SettingsPixel section.

For e-commerce events, add these to your relevant pages:

// Purchase Event (Thank You Page)
tw('track', 'Purchase', {
  'content_ids': ['product_id_1', 'product_id_2'],
  'content_type': 'product',
  'currency': 'USD',
  'value': 99.99,
  'order_id': 'ORDER_12345'
});

// Add to Cart Event
tw('track', 'AddToCart', {
  'content_ids': ['product_id'],
  'content_type': 'product',
  'currency': 'USD',
  'value': 29.99
});

Step 2: Connect Meta Ads Integration

This is where most setups break. Triple Whale needs direct access to your Meta Ads account to pull campaign data and match it with pixel data.

  1. In Triple Whale, go to SettingsIntegrationsFacebook Ads
  2. Click Connect Facebook Ads Account
  3. Log in with the Facebook account that has admin access to your ad account
  4. Select the correct ad account (not your personal account)
  5. Grant all permissions — Triple Whale needs read access to campaigns, ad sets, ads, and insights

Critical: Make sure you’re connecting the same ad account that’s running your ads. I’ve seen setups where they connected a testing account or the wrong business manager account.

In the integration settings, configure:

Step 3: Configure URL Parameter Passthrough

Triple Whale needs to capture Meta’s click ID (fbclid) and your UTM parameters to properly attribute traffic. This happens automatically with their pixel, but you need to verify it’s working.

UTM Parameter Setup

Make sure all your Meta ads include these UTM parameters:

?utm_source=facebook
&utm_medium=paid-social
&utm_campaign={{campaign.name}}
&utm_content={{adset.name}}
&utm_term={{ad.name}}

Meta Click ID Capture

Triple Whale automatically captures the fbclid parameter that Meta appends to your URLs. You can verify this is happening by checking the AttributionTraffic Sources report in Triple Whale.

If you’re running ads to landing pages that redirect to your main domain, make sure the redirect preserves the fbclid parameter:

// Example redirect that preserves fbclid
function preserveClickId() {
  const urlParams = new URLSearchParams(window.location.search);
  const fbclid = urlParams.get('fbclid');
  
  if (fbclid) {
    const redirectUrl = 'https://yourdomain.com/target-page?fbclid=' + fbclid;
    window.location.href = redirectUrl;
  }
}

Step 4: Set Up Custom Attribution Windows

Triple Whale’s default attribution doesn’t always match your customer journey. I typically see e-commerce brands need longer attribution windows.

  1. Go to SettingsAttribution
  2. Set your attribution windows:
    • First Touch: 30 days (captures early research phase)
    • Last Touch: 7 days (captures final decision)
    • Multi-Touch: Linear 14 days (spreads credit across touchpoints)

For most e-commerce brands, I recommend:

Step 5: Configure Cross-Platform Attribution

Triple Whale’s strength is combining data from multiple sources. Set up these additional integrations for complete attribution:

Google Analytics 4 Connection

  1. SettingsIntegrationsGoogle Analytics 4
  2. Connect using your GA4 measurement ID
  3. Enable Enhanced E-commerce data import

Email Platform Integration

Connect your email platform (Klaviyo, Mailchimp, etc.) to capture email attribution:

  1. SettingsIntegrations → [Your Email Platform]
  2. Enable Campaign Attribution to see email assist on Meta-attributed conversions

Testing & Verification

Here’s how to verify everything is working correctly:

1. Pixel Firing Test

2. Attribution Data Check

In Triple Whale’s Attribution dashboard:

3. Revenue Cross-Check

Compare Triple Whale attribution to Meta Ads Manager:

Acceptable variance ranges:

4. UTM Parameter Verification

Check that UTM parameters are captured:

  1. Run a test ad with UTM parameters
  2. Click through to your site
  3. Complete a purchase
  4. Verify the purchase shows correct campaign attribution in Triple Whale

Troubleshooting

Problem: Meta traffic showing as “Direct” in Triple Whale Check if the fbclid parameter is being stripped by:

Problem: Purchase events not attributing to Meta campaigns This happens when the pixel fires but can’t match the fbclid to the original click:

Problem: Revenue numbers don’t match between Triple Whale and Meta Expected discrepancies:

Problem: Campaign data not importing from Meta Usually an API permissions issue:

Problem: Attribution delays longer than 48 hours Triple Whale processes attribution data in batches, but delays beyond 48 hours indicate:

Problem: Duplicate conversion counting This happens when both Meta Pixel and Triple Whale pixel fire purchase events:

What To Do Next

Triple Whale works best as part of a complete attribution stack. Here are the logical next steps:

This guide is part of the Attribution Setup Hub — complete guides for connecting every attribution tool with every major ad platform.