How do I credit sales from link codes to my Meta ads?
If your links carry a code that also starts your Meta ad names, turn on Credit link codes to your Meta ads so those sales count for the ad.
When this helps
Attribution is how TrueROAS decides which ad or channel gets the credit for a sale. Some stores tag the links in their Meta ads with a short code, for example PROMO123, and start the ad's name with the same code. When TrueROAS cannot tell from the link which ad it was, those sales land under Organic & Unassigned in the Ads Manager. This setting moves them onto the Meta ad whose name starts with the code.
A code is 2 or more letters followed by 3 or more digits, such as PROMO123 or SUMMER2024. The code has to be at the start of both the link's tracking value and the ad's name.
Turn it on
- Click Settings at the bottom of the left menu and open the Reporting Settings tab.
- Under Sources and filters, find Source rules. The switch Credit link codes to your Meta ads is at the top of the card.
- Turn on the switch. The field Codes start with opens, with the example e.g. PROMO.
- Type the letters your codes start with, such as PROMO. Use letters only, and separate several with a comma, as the help text Letters only. Separate several codes with a comma says.
- Click Save. You will see a message such as Links with PROMO codes now count for your Meta ads.
The switch reads When a link carries a code that also starts a Meta ad's name, the sale counts for that ad. If the code runs on several ads, the one with the most link clicks that day gets it. When two of those ads had the same number of link clicks that day, the one with the most spend gets the sale.
Turn it off
Turn off the switch. TrueROAS clears your codes at once and you see Link codes no longer count for your Meta ads. The sales go back to where they were before.
If saving fails, you will see Could not save. Please try again.
What changes
- Sales from links with a matching code move from Organic & Unassigned, or from a Meta row TrueROAS could not tie to an ad, onto the row of the Meta ad.
- Only the codes that start with the letters you saved count. A link with another code stays where it was.
- It does not change which visit gets the credit for an order, only which Meta ad that visit belongs to.
Good to know
- The switch only shows when your store has a Meta ad account connected.
- It applies to the whole store, so everyone on the store sees the same numbers.
- Only the store owner or an admin can change it. For everyone else the switch and the field are greyed out.
- The day that counts is the day of the visit, not the day of the order. If no Meta ad with that code ran on that day, the sale stays where it was.
- It works for Meta ads only. For other unknown sources, use a source rule. See How do I count an unknown source as one of my channels?.