tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Generative AI > Google Gemini API > Multi-Touch Attribution Agent

Multi-Touch Attribution Agent

Author: Venkata Sudhakar

A customer rarely converts after a single touchpoint. They might see a YouTube ad, click a Google search result, receive an email, and finally convert via a WhatsApp link. Understanding which touchpoints drive revenue requires a multi-touch attribution model. ShopMax India needs this to invest marketing budgets wisely.

This tutorial builds a Gemini ADK agent that applies three attribution models - first touch, last touch, and linear - to a conversion journey, then compares how each model distributes revenue credit across channels.

The below example shows a multi-touch attribution agent for ShopMax India in a business context.


It gives the following output,

Multi-Touch Attribution - ShopMax India | Model: Linear

Total Revenue : Rs 96,970

Channel Credit Distribution:
  1. Google Search  Rs 27,993  (28.9%)
  2. Email          Rs 24,657  (25.4%)
  3. WhatsApp       Rs 20,323  (21.0%)
  4. YouTube Ad     Rs 13,748  (14.2%)
  5. Instagram Ad   Rs  9,663  (10.0%)
  6. Direct         Rs    583   (0.6%)

Insight: Linear model distributes credit evenly across all touchpoints.
Email and WhatsApp appear mid-funnel contributors often invisible
under last-touch models. Consider increasing email automation budget.

ShopMax India can run all three attribution models each week and present a blended view to the marketing leadership team. Channels that consistently score high across all models warrant increased investment. Channels that score well only under first-touch are strong awareness drivers but may not close sales on their own.


 
  


  
bl  br