April 10, 2025Andrei Kevin Chua

In our previous post, we covered why custom metrics in GA matter and how to set them up. Now, let’s explore best practices for getting the most out of your custom metrics and the common mistakes to avoid to ensure your data remains accurate and actionable.

Best Practices for Custom Metrics in GA

1. Ensure Consistency in Parameter Usage

Custom metrics rely on event parameters, so consistency is crucial. If you define a parameter once but fail to send it consistently, your data will be incomplete.

Good:

gtag('event', 'add_to_cart', { 'value': <total price of item>,  
 'item_name': 'Blue T-Shirt'
});

Bad: (Missing parameter, leading to tracking issues)

gtag('event', 'add_to_cart', {
 'item_name': 'Blue T-Shirt' 
});

2. Match Data Type with the Correct Metric Unit

Use:

  • Standard units for raw numbers and percentages.
  • Currency units for monetary values.
  • Distance for length.
  • Time units for durations.

Sending mismatched data types can cause inaccuracies in reporting.

3. Send Raw, Unaggregated Data

GA automatically processes and aggregates data. Sending pre-calculated averages can lead to inaccurate reports.

Good: Send each transaction’s value:

gtag('event', 'purchase', {
  'transaction_value': <order total>,
  'currency': 'USD'
});

Bad: Sending a pre-calculated daily average:

gtag('event', 'purchase', {
  'average_transaction_value': <daily avg>,
  'currency': 'USD'
});

Each custom metric should be based on a single event parameter to ensure accuracy.

4. Use One-to-One Parameter-to-Metric Mapping

Good:

gtag('event', 'purchase', {
  'transaction_value': <order total>,
  'currency': 'USD'
});

Bad: (Trying to combine multiple parameters into one metric)

gtag('event', 'purchase', {
  'item_price': <item price>,
  'quantity': <quantity>
});

In this example, custom metrics was not designed to combine item_price and quantity to derive transaction_value.

Common Pitfalls to Avoid

1. Metric Overload

Creating too many custom metrics can lead to clutter and confusion. Before adding a new metric, ask:

  • Is this metric actionable?
  • Does it align with business objectives?
  • Can I get this insight using existing metrics?

2. Poor Naming Conventions

Unclear names can lead to misinterpretation. Follow a structured naming approach:
✅ revenue_per_category
✅ avg_time_to_purchase
✅ form_completion_rate

Avoid generic names like:
❌ metric1
❌ custom_metric_2

3. Not Utilizing Calculated Metrics

If you need to derive new metrics from existing ones (e.g., “Revenue per User”), use calculated metrics in GA instead of trying to combine multiple parameters into a single metric.

Final Thoughts: Making Custom Metrics Work for You

Custom metrics unlock deeper insights into user behavior and business performance in GA, but they require thoughtful implementation. By following best practices and avoiding common pitfalls, you ensure your data remains accurate, reliable, and actionable.

Need expert guidance? Contact Merkle|Cardinal Path for tailored GA solutions that help you track the metrics that matter most.

Author

  • Andrei Kevin Chua

    Andrei is a consultant with the Analytics Implementation team at Merkle | Cardinal Path. He specializes in implementing web analytics solutions for a range of clients, ensuring data is collected accurately and reliably. By configuring and maintaining analytics platforms, he helps clients capture the data they need to optimize their online strategies and achieve their business goals.

    View all posts

Your request has been submitted and a rep will reach out to you shortly.

Message Sent

Thank you for your interest.

Thank you for registering.

You should receive a confirmation email from GoToWebinar with your unique webinar login information. If you do not receive this email or have trouble logging in to the event, please email asmaa.mourad@cardinalpath.com.

Thank you for subscribing!

You're now looped into the world's largest GMP resource hub!

Thank you for your submission.

Thank you for your submission.

Thank you for your submission.

Thank you for your submission.

Thank you for your submission.

Message Sent

Thank you for registering.

Thank you for your submission.

Message Sent

Thank you for registering.

Thank you for registering.​

Paid media spend by Government websites increased a whopping 139% YoY in 2020.

2020 Online Behavior Live Dashboard

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

2020 Online Behavior Live Dashboard

Thank you for your submission.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for your submission.

Message Sent

Thank you for registering.

Thank you for registering.

Cardinal Path is continuing with its series of free training. Next we are conducting training on Google Data Studio. Check it out here.
Cardinal Path hosted a live session to connect with you and answer all your questions on Google Analytics.
Get all the expertise and none of the consultancy fees in this not-to-be-missed, rapid-fire virtual event.

Thank you for submitting the form.

Thank you for submitting the form.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you for registering.

Message Sent

Thank you.

Click here to download access the tool.

Message Sent

Thank you for registering.

Message Sent

Thank you.

Message Sent

Thank you.

Message Sent

Thank you

Message Sent

Thank you

Message Sent

Thank you.

Message Sent

Thank you

Message Sent

Thank you.

Message Sent

Success!
Your message was received.

Thank you.

Message Sent

Success! Thank you
for reaching out.