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.
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:
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.
1. Metric Overload
Creating too many custom metrics can lead to clutter and confusion. Before adding a new metric, ask:
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.
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.
In today’s fast-paced digital world, marketing and product teams don’t just need data—they need answers,…
In Part 1, we explored why AutoML is essential for modern marketing and how it…
In today’s fast-evolving digital learning landscape, keeping students engaged and ensuring course completion are top…
This website uses cookies.