Go to your Facebook Ads Manager, and go to Ads tab.

Select all ads using the checkbox in the header and click on Edit ads. This will edit all ads, in bulk

Copy this code fbadid={{ad.id}}&fbadname={{ad.name}} and paste it in the URL parameters field

If you have other parameters, such as utm_campaign={{fb.campaign_name}}&source=facebook , merge them by adding &fbadid={{ad.id}}&fbadname={{ad.name}}

Don’t forget to save the new change

Next, make sure to integrate Facebook if you haven’t done that already!