← Back to Help Center

URL parameters · Microsoft Ads

How to add Microsoft Ads URL parameters for Shopify

Microsoft Ads keeps the tracking template on the campaign. The template you paste depends on the campaign type.

Last updated: 4 December 2026 · Applies to Microsoft Ads

1. Open your campaign settings

In Microsoft Ads, go to Campaigns, select your campaign, then Settings, then Advanced settings, then Advanced URL options. This is where you add the Tracking template.

Microsoft Ads campaign settings, where the Tracking template is added

2. Choose the correct tracking template

The tracking template depends on the campaign type. Performance Max campaigns use one template. Search, Shopping, and all other campaign types use another.

Performance Max campaigns

{lpurl}?juicy_source=microsoft&juicy_cid={CampaignId}

Search, Shopping, and all other campaign types

{lpurl}?juicy_source=microsoft&juicy_aid={AdId}

3. Save the tracking template

Copy and paste the appropriate tracking template into the Tracking template field, then click Save.

⚠️ Updating your tracking template does not require an editorial review, so your ads continue serving without interruption. Learn more in Microsoft's documentation.
✅ Done: Juicy can now match orders from this Microsoft Ads campaign.

Frequently asked questions

Which tracking template do I use for Performance Max?

Performance Max campaigns use {lpurl}?juicy_source=microsoft&juicy_cid={CampaignId}.

Which tracking template do I use for Search and Shopping?

Search, Shopping, and all other campaign types use {lpurl}?juicy_source=microsoft&juicy_aid={AdId}.

Does saving the tracking template stop my ads?

No. Updating your tracking template does not require an editorial review, so your ads continue serving without interruption.

With the template saved, Juicy Profit Analytics can show the profit behind each order from that Microsoft Ads campaign. See the Microsoft Ads Shopify integration.