Skip to main content

Overview

Masivo’s Purchase Attribution System automatically tracks and attributes customer purchases to their originating marketing touchpoints, whether from marketing automation campaigns (links, emails, push notifications) or loyalty program engagement. This system enables you to measure campaign effectiveness, calculate ROI, and understand which channels drive conversions.
Attribution is calculated automatically based on tracking IDs, loyalty transactions, and configured attribution windows. This guide covers setup, configuration, and implementation best practices.

How Attribution Works

The attribution system operates in three stages:
  1. Event Collection: Purchases and touchpoints (link clicks, reward accumulations) are tracked with attribution data
  2. Attribution Calculation: System matches purchases to their originating touchpoints within configured time windows
  3. Performance Analysis: Attribution data powers analytics and ROI calculations

Attribution Flow Diagram

Attribution Types

Masivo supports two primary attribution types:

1. Marketing Attribution

Tracks purchases that originated from marketing campaigns including:
  • Links/Deeplinks: Short URLs with tracking parameters
  • Email Campaigns: Email templates sent via marketing automation
  • Push Notifications: Push campaigns with tracking
Key Identifier: tracking_id - Links the customer’s journey from click to purchase

2. Loyalty Attribution

Tracks purchases influenced by loyalty program engagement:
  • Reward Accumulation: Customer earned rewards before purchase
  • Reward Redemption: Customer redeemed rewards during purchase
Key Identifier: event_id - Links reward transactions to purchase events

Setting Up Attribution

Step 1: Configure Attribution Windows

Attribution windows define how long after a touchpoint a purchase can be attributed to that campaign. Navigate to Settings → Attribution Windows in your Masivo dashboard.
Attribution Windows Configuration
Configure windows for each attribution type:
Setting windows too short may undercount attribution. Setting them too long may overattribute to older campaigns.

Step 2: Configure Ad Providers

Ad providers define traffic sources and their attribution share for multi-touch attribution. Navigate to Settings → Ad Providers in your Masivo dashboard.
Ad Providers Configuration
Configure providers with attribution percentages: Attribution Percentage Explained:
  • 100%: Full revenue credit to this channel
  • <100%: Partial credit (for multi-touch attribution)
  • Used to calculate channel-specific ROI

Step 3: Implement Attribution in Events

The most critical step is including attribution data when sending events to Masivo.

Essential: The ad_provider Parameter

The ad_provider is crucial for attribution tracking. It identifies the traffic source and must match a configured ad provider in your settings. Where ad_provider Comes From:
  1. From Masivo Short Links (Recommended): Set ad_provider in the destination URL when creating the link:
When customers click the Masivo short link, they’re redirected to this URL with the ad_provider parameter intact. Your app extracts it from the URL.
  1. Direct in Events (Only if not from a link): If the purchase didn’t originate from a Masivo link, include it in the event:
Always use Masivo short links for marketing campaigns - this ensures proper ad_provider tracking. Only include ad_provider directly in events for non-link traffic.

Complete Event Implementation

Attribution Object Structure

Complete Attribution Schema

Fallback Behavior

Masivo’s attribution system uses intelligent fallbacks:
This means if a customer clicks a link without full attribution but the purchase event includes it, attribution will still work correctly.

Attribution Calculation Logic

Marketing Attribution Flow

  1. Customer clicks marketing link
    • LINK_OPEN event created with tracking_id
    • Timestamp recorded: 2025-01-15 12:00:00
  2. Customer makes purchase
    • PURCHASE event includes same tracking_id
    • Timestamp recorded: 2025-01-17 14:30:00
  3. Attribution calculation
  4. Attribution record created
    • Links purchase to campaign
    • Records conversion metrics
    • Powers analytics dashboards

Loyalty Attribution Flow

  1. Customer earns rewards
    • PURCHASE event creates accumulation transaction
    • event_id links transaction to event
    • Timestamp: 2025-01-10 10:00:00
  2. Customer makes new purchase with redemption
    • PURCHASE event with same customer
    • Customer redeems previously earned rewards
    • Timestamp: 2025-02-05 15:00:00
  3. Attribution calculation
  4. Loyalty attribution record created
    • Tracks loyalty program impact
    • Measures program ROI
    • Identifies high-value loyalty customers

Time-to-Conversion Metrics

Attribution automatically calculates and stores:
  • Marketing Campaigns: Minutes from link click to purchase
  • Loyalty: Minutes from first reward accumulation to purchase
  • Conversion Rate: Percentage of clicks that convert
  • Revenue per Click: Average revenue per campaign click

Testing Attribution

2. Test Loyalty Attribution

Best Practices

1. Always Include ad_provider

2. Use Consistent Naming Conventions

Troubleshooting

No Attribution Records Created

Problem: Purchases not being attributed to campaigns Solutions:
  1. Verify tracking_id is included in purchase events
  2. Check attribution windows aren’t too restrictive
  3. Confirm ad_provider matches configured providers
  4. Ensure timestamp of purchase is after touchpoint

Incorrect Attribution Percentage

Problem: Revenue is over/under-attributed Solutions:
  1. Review ad provider configuration percentages
  2. Check for duplicate provider names
  3. Verify provider names match exactly (case-sensitive)

Missing Loyalty Attribution

Problem: Loyalty-driven purchases not attributed Solutions:
  1. Verify event_id exists on purchase events
  2. Check loyalty attribution window is adequate (30-60 days recommended)
  3. Ensure customer has reward transactions before purchase
  4. Confirm reward accumulations have valid timestamps

Time to Conversion is NULL

Problem: Attribution records missing conversion time Solutions:
  1. Check that link/accumulation timestamp is valid (not 1970-01-01)
  2. Verify timestamp is before purchase time
  3. Ensure line_issued_at or transaction_issued_at fields are populated

Next steps

Once your attribution system is configured and tracking data, you can analyze performance:
  • View analytics: Navigate to Analytics to see attribution reports, campaign ROI, and conversion metrics across all channels
  • Export data: Learn how to export analytics tables to CSV for deeper analysis of attribution patterns, multi-touch conversion paths, and campaign performance