Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

GA4 and Google Ads

Make the profit parameters visible in Google Analytics 4 and bid on them in Google Ads.

The parameters now reach your tags. Two more steps to make them usable.

Google Analytics 4

GA4 drops parameters it does not know, so register them before you go looking for them in a report.

Go to Admin → Custom Definitions and add a Custom Metric for each parameter you send. Metric name and parameter name are the same.

Parameter
Unit of measurement

profit_value

Currency

gross_profit

Currency

cost_of_goods

Currency

shipping_cost

Currency

payment_cost

Currency

Pick the right Unit of measurement and Data Type so GA4 can tell cost data and revenue data apart.

On the existing setup the two metrics are purchase_price and profit_margin instead. Register whichever set you actually send — registering both is fine, but do not send both to the same metric.

Custom metrics only fill from the moment you create them. Yesterday's purchases stay empty, so give it a day before you judge the numbers.

Google Ads

This is where Profit on Ad Spend earns its name: you let Google bid on profit instead of revenue.

Rather not build a tag? AdPage can also send the profit to Google Ads itself, also with a separate account per domain: see Profit straight to Google Ads.

Create a new conversion action in Google Ads, then a conversion tag that sends your profit variable as the conversion value instead of the order value.

Use profit_value when you want the bid to account for shipping and payment cost, gross_profit when you only want product margin.

Was this helpful?