DEV Community

Anand Rathnas
Anand Rathnas

Posted on • Originally published at jo4.io

How to Track Link Clicks with Meta Pixel for Facebook Retargeting

This article was originally published on Jo4 Blog.

You're running Facebook ads. You want to retarget people who clicked your links. But you're sending traffic to someone else's site (affiliate offer, client landing page, whatever) where you can't add your pixel.

Here's how to fire Meta Pixel on every click using jo4's built-in retargeting.

How It Works

When someone clicks your jo4 short link, the redirect page loads your Meta Pixel before sending them to the destination. Facebook sees the PageView event with your pixel ID.

User clicks jo4.io/abc123
    ↓
Pixel fires (PageView event)
    ↓
User redirected to destination
    ↓
Facebook audience updated
Enter fullscreen mode Exit fullscreen mode

This happens in milliseconds. Your audience grows with every click.

Prerequisites

  • A jo4 account (free tier works)
  • A Meta Pixel ID from Facebook Business Manager

Step 1: Get Your Meta Pixel ID

  1. Go to Facebook Events Manager
  2. Select your pixel (or create one)
  3. Copy the 15-16 digit Pixel ID

It looks like: 123456789012345

Step 2: Add Pixel to Your Link

When creating or editing a link in jo4:

  1. Expand the Retargeting section
  2. Paste your Pixel ID in the Meta Pixel ID field
  3. Save the link

That's it. Every click on this link now fires your pixel.

Step 3: Verify It's Working

Use the Meta Pixel Helper Chrome extension:

  1. Install the extension
  2. Click your jo4 short link
  3. Check the extension icon - it should show a green checkmark

You'll see:

  • PageView event fired
  • Your Pixel ID in the details

Advanced: Track Multiple Pixels

Need different pixels for different campaigns? Each jo4 link can have its own pixel ID. Create separate links for:

  • Different ad accounts
  • Different clients
  • A/B testing audiences

Advanced: Combine with UTM Parameters

jo4 passes UTM parameters through to your destination. Combine with pixel tracking for full attribution:

jo4.io/abc123 (with Meta Pixel + UTMs)
    ↓
Pixel fires with PageView
    ↓
User lands on destination.com/?utm_source=facebook&utm_campaign=spring_sale
Enter fullscreen mode Exit fullscreen mode

Now you have:

  • Facebook audience data (for retargeting)
  • UTM tracking (for conversion attribution)

What Events Are Tracked?

Currently, jo4 fires a PageView event on every link click. This is what you need for:

  • Building Custom Audiences ("People who clicked my links")
  • Retargeting campaigns
  • Lookalike audience creation

For Purchase, Lead, or other conversion events, those fire on your destination site where the action happens.

Cost Comparison

Solution Cost Complexity
Add pixel to destination $0 Need site access
Third-party redirect service $50-200/mo Medium
jo4 retargeting $0-16/mo Low

Most link shorteners charge extra for retargeting features. With jo4, it's included in every plan including free.

Common Pitfalls

Wrong Pixel ID format: Make sure you're using the numeric Pixel ID, not the Pixel Name or Business Manager ID.

Ad blockers: Some users run ad blockers that prevent pixels from firing. This is normal - your tracked audience will be slightly smaller than total clicks.

Pixel not verified: Facebook requires domain verification for some features. The pixel will still fire for building audiences even without verification.

Result

After setup, your Facebook audience grows automatically with every link click. No code changes to destination sites. No complex integrations.

Check Events Manager after a few clicks - you'll see the PageView events with your short link URL.


Already using Meta Pixel with short links? Share your setup in the comments!

jo4.io - URL shortener with built-in retargeting pixels for marketers who track everything.

Top comments (0)