Heartbeat allows you to track conversions from your paid offers using Facebook Pixel (Meta Pixel). This helps you measure the effectiveness of your Facebook ads by tracking page views, leads, and purchases through your Heartbeat checkout flow.
Prerequisites
- A Facebook Business account
- A Facebook Ads account
- An active Heartbeat community with Stripe payments configured
Step 1: Create Your Facebook Ads Account
If you don't already have a Facebook Ads account, create one at business.facebook.com.
Step 2: Create a Meta Pixel
- In your Facebook Business Manager, go to Events Manager
- Click Connect Data Sources and select Web
- Choose Meta Pixel and click Connect
- Name your pixel (e.g., "Heartbeat Conversions") and enter your website URL
- Click Continue and select Set up the Pixel now
- Choose Manually add pixel code (you'll be adding the Pixel ID to Heartbeat, not installing code)
- Copy your Pixel ID (a 15-digit number)
Step 3: Add Your Meta Pixel ID to Heartbeat
- Log into your Heartbeat community as an admin
- Go to Settings > Integrations > Conversion Tracking
- Paste your Meta Pixel ID into the Facebook Pixel field
- Click Save
Heartbeat will automatically send the following events to Facebook:
- PageView - When someone visits your sign-up page
- Lead - When someone submits their email
- InitiateCheckout - When someone starts the checkout process
- Purchase - When someone completes a payment
Step 4: Test Your Pixel Installation
Before running ads, verify that your pixel is tracking correctly:
- In Facebook Events Manager, go to Test Events tab
- In the "Confirm your website's events are set up correctly" section, paste your Heartbeat sign-up page URL (e.g.,
https://community.yourname.com/invitation?code=342342) - Click Test Events
- Keep the Test Events page open in one browser tab
- In another tab, go through your entire checkout flow as if you were a new member:
- Visit the sign-up page
- Enter your email
- Proceed through checkout
- Complete a test purchase
- Return to the Test Events tab - you should see events appear in real-time including PageView, Lead, InitiateCheckout, and Purchase
Step 5: Create Your Facebook Ad Campaign
Once your pixel is tested and working:
- Create a new Facebook ad campaign with a Sales objective
- When setting up your ad set, choose Purchase as your conversion event
- Make sure your pixel is selected as the conversion location
- Complete your campaign setup and launch your ads
Facebook will now track conversions from your ads and optimize delivery to people likely to complete purchases in your Heartbeat community.
Troubleshooting
Events aren't showing up in Test Events:
- Make sure you pasted your complete sign-up page URL including any invitation codes
- Verify your Pixel ID is correctly entered in Heartbeat Settings
- Clear your browser cache and try again
- Check that you kept the Test Events page open while going through checkout
Purchase events are showing but not attributing to ads:
- Verify you selected "Purchase" as your conversion event in your ad campaign
- Allow 24-48 hours for Facebook's attribution system to process events
- Make sure the same browser was used for both seeing the ad and completing the purchase