← Back to Help Center

URL parameters · Meta & Facebook

How to Add URL Parameters to Meta / Facebook Ads

Last updated: 29 May 2026 · Applies to Meta Ads Manager (classic and new interface)

Juicy attributes every Shopify order to the ad that drove it by reading a tracking parameter on your ad's destination URL. Add it once per ad and Juicy will automatically match purchases to the correct campaign, ad set, and ad — no pixel, no extra app permissions.

⚠️ Changing the URL parameters on an active ad can push it back into the learning phase and reset its performance progress. Add the parameter to new ads instead of editing live ones whenever possible.

The parameter Juicy needs

Add this tracking string to your ad's URL parameters field:

juicy_source=facebook&juicy_aid={{ad.id}}

If you also rely on standard UTM tracking for other tools, you can combine both in a single field — the full string we recommend is below.

utm_source={{site_source_name}}&utm_medium={{placement}}&utm_campaign={{campaign.id}}&utm_term={{adset.id}}&utm_content={{ad.id}}&juicy_source=facebook&juicy_aid={{ad.id}}

Already tracking with Triple Whale, Hyros, or similar?

Juicy also recognizes a handful of parameters used by other attribution tools, so you don't need to touch campaigns that already have them set up:

ParameterExample value
juice{{ad.id}}
ad_id{{ad.id}}
tw_adid{{ad.id}}
h_ad_id{{ad.id}}

Classic Ads Manager interface

Meta is gradually rolling out a redesigned ad-creation flow. If your account still shows the original layout, follow these steps.

  1. Open your ad in Meta Ads Manager

    Log in to Meta Ads Manager and open the ad you want to edit, or start a new one.

  2. Paste the code under "URL parameters"

    Just before publishing, you'll see a URL parameters field on the ad level. Paste the full tracking string from above into it.

    Meta Ads Manager URL parameters field
  3. Save and publish

    Click Publish or Update to apply the change to your ad.

✅ Done — Juicy will now pick up these parameters automatically and attribute orders to this ad.

New parameters interface

If your account already shows Meta's redesigned parameters builder, the same result takes a few clicks instead of pasting a single string.

  1. Open your ad in Meta Ads Manager

    Log in to Meta Ads Manager and open the ad you want to edit.

  2. Open URL parameters and click Edit

    Edit URL parameters in Meta's new interface
  3. Click "Add parameter" twice

    Add parameter button in Meta Ads Manager
  4. Fill in the two parameters

    Add juicy_source with the value facebook, then add juicy_aid and select {{ad.id}} from the dropdown menu.

    Selecting ad.id from the dropdown in Meta Ads Manager
✅ Done — Juicy will now pick up these parameters automatically and attribute orders to this ad.

Frequently asked questions

Will this affect my ad's learning phase?

Editing a live ad's URL parameters can restart its learning phase. Add the parameter when you create new ads to avoid disrupting ads that are already performing well.

Do I need to do this for every single ad?

Yes — the {{ad.id}} variable is unique per ad, so the parameter needs to be present on each ad individually for Juicy to attribute orders correctly at the ad level.

Still stuck? Email support@easyapps.cloud and we'll help you get attribution working.