Skip to content
Back to all articles

Guides & Best Practices

How to optimize KPIs by distilling data with machine learning

This article shows how to activate web analytics data by modeling user propensity to add products to a cart. By distilling behavioral dimensions into a 0–100 score, marketers gain precise segmentation for targeting, personalized content, and improved bidding strategies. The distilled scores feed future models, creating a virtuous loop of data augmentation and KPI optimization.

Robert Borlum BachRobert Borlum Bach25 Jul 2024 · 2 min read

Bridging business objectives and marketing data

Too often, analysts struggle to align marketing KPIs with web analytics data. Without a clear measurement plan rooted in goals, data becomes reactive or worse, irrelevant. Google Analytics works best when events and goals are treated as strategic KPIs.

Once objectives are defined, most analytics setups stop at data collection and reporting. But why not use that data to proactively influence the behavior behind the KPI?

Distilling behavior to optimize marketing metrics

In this example, the objective is optimizing a lower-funnel event: add-to-cart actions. Using machine learning, behavioral data dimensions (e.g., pages visited, session durations, referral source) are distilled into a custom propensity score assigned to each client ID.

Users are segmented into score bands:

  • 0–25: Very low propensity (exclude or analyze)
  • 26–50: Low-to-mid propensity
  • 51–75: Mid-to-high
  • 76–100: High propensity (targeted in campaigns)

These segments feed bidding strategies and personalization workflows seamlessly.

Analytics maturity model. Four stages rise with time and resources: Foundation (business objectives, key performance indicators, measurement plan, solution design requirement); Collection (data collection, data quality, campaign tracking, martech stack, reactive analysis and reporting); Activation (offline-to-online data enrichment, activation of data, marketing automation, segmentation and profiling, data visualization); Optimisation (optimization of workflows and sales, attribution modelling, A/B and multivariate tests, data-driven decision making, machine learning models, proactive analysis and reporting), with predictive analytics at the top.

Technical setup and model deployment

The tech stack is built on Google Cloud Platform (GCP), with Google Analytics 360 and CRM data joined in BigQuery. Key behavioral dimensions are selected to train a TensorFlow model via AI Platform. CRMint handles the data pipeline: integrating scoring with Google Analytics, DV360, Google Ads, and Optimize.

Notable features include reusable “workers” and a GUI for pipeline creation. Data flows automatically from ingestion to model training and audience creation, and custom dimensions are injected without requiring API scripting.

Pipeline diagram. Input data: GA data and CRM data joined on a unique client ID. Backend services on Google Cloud Platform: data preparation, scoring model training, pipeline creation. CRMint: audience scoring and audience clusters. GA360 feeds business impact through activation in DV360, SA360, Google Ads and O360.

The marketing benefits of a propensity score distillate

With the custom propensity score dimension live in Google Analytics, marketers can:

  • Use DV360 and Google Ads to bid on high-propensity audiences
  • Create personalization rules in Google Optimize tied to propensity
  • Inform content strategy by targeting users most likely to convert

Because the distillate becomes the foundation for subsequent machine learning models, the system evolves organically over time: sharpening both marketing activation and insight.

Google Analytics audience list with four add-to-cart score segments, add_to_cart_score_0_10, 11_49, 50_89 and 90_100, created 7 Nov 2019 and shared to DV360 and Google Ads.

Sustainable data ROI and continuous improvement

With a well-architected setup and reusable code, the model’s break-even point can be reached within months thanks to more efficient ad spend and personalization. The data loop continues: each propensity model enriches the next, improving the granularity of future KPI optimizations.

About Robert Børlum‑Bach

Robert Børlum‑Bach is Head of Analytics Architecture at TV2 in Denmark, specializing in digital analytics, data governance, and machine learning-driven KPI activation.

FAQ

A propensity score is a custom dimension (0–100) that represents how likely a user is to complete a target action, such as adding a product to the cart.

Newsletter

Get the latest marketing analytics insights

Practical insights on marketing data governance, measurement, and AI readiness from Accutics experts and industry leaders. Delivered straight to your inbox.

  1. Access to free webinars and industry events
  2. Interviews and use cases from marketing and analytics leaders
  3. Practical tips and new perspectives on marketing measurement

Stay connected

Get monthly insights, customer stories, and event invitations from Accutics. Relevant ideas, straight to your inbox.