SAR Intelligenceby SAR-SOFT

Add a custom metric for discount amount in Google Analytics, with your approval

Register a numeric parameter your shop already sends, such as the discount on an order, as a GA4 custom metric after you approve it in SAR.

Difficulty
Advanced
Time
about 15 min
The prompt

My shop sends the numeric parameter [discount_amount] with each [purchase] event to Google Analytics. Check the custom metrics my property already has, then propose an event-scoped custom metric called [Discount amount] measured as [currency]. Show me the exact parameter name, display name and unit and wait for my yes. While we wait for data, show me from the shop how often each coupon was used over the last [90] days and how much discount it gave.

Already connected?

If SAR is already in your AI app, this is enough:

Already connected?

Create a custom metric for [discount_amount] in Google Analytics, after showing me the details.

What happens

  1. The AI app reads the custom dimensions and metrics your property already has.
  2. It shows you the exact custom metric it would create and waits for your yes.
  3. Creating it waits for your approval in SAR before it reaches Google.
  4. It reads how often each coupon was used and how much discount it gave, from the shop.
  5. Later, it runs a Google Analytics report of the new metric, for data collected after it exists.

Approvals involved

Worked out from the tools this recipe uses.

  • ga4_get_custom_dimensions_and_metricsCustom dimensions and metricsNone
  • ga4_create_custom_metricCreate a custom metricApproval
  • wordpress_woo_coupon_reportCoupon reportNone
  • ga4_run_reportRun a reportNone

What you get

Discounts you can compare by channel and campaign in Google Analytics, next to your shop's own coupon figures. The metric holds only data collected after it was created.

Try it on your own site

Install the plugin, add SAR to your AI app and paste the prompt. Free to start.

Connect your WordPress site

Type your site's address and we open its own plugin page, ready to install SAR Intelligence.

Prefer to install by hand? Download the plugin · how to connect it

Not on WordPress, or want to set things up first? Create your free account

Free to start · No credit card