Skip to main content
Back to Blog Attribution

How Graph-Based Attribution Works

How knowledge graph attribution maps customer journeys as networks, revealing channel relationships that traditional attribution models miss.

Sholto McNeilage

Sholto McNeilage

Founder & Director of Marketing Intelligence

7 min read

Knowledge Graph-based attribution uses a graph database to model every customer touchpoint as a connected network, not a flat list of clicks. For Shopify stores investing your marketing budget on ads, email campaigns, SEO & social activity and other platforms, this means seeing the real relationships between channels that rules-based tools miss entirely: which combinations of touchpoints actually drive conversions, and which channels are systematically over- or under-credited.

Why Traditional Attribution Fails

If you’re running a Shopify store, you’ve probably noticed the numbers don’t add up between platforms or analytics tools. Meta says it drove 200 conversions. Google claims 180. Your actual orders? 150.

This isn’t a bug. It’s a fundamental limitation of how traditional attribution works.

Rules-based models (first-touch, last-touch, linear, time-decay) all share the same flaw: they treat each touchpoint as an isolated event. A customer clicks a Facebook ad, then reads a blog post, then searches your brand on Google, then converts. Rules-based models give all the credit to one or two of those touches. They can’t see that the blog post was the moment the customer went from “browsing” to “buying.”

Platform-reported attribution is worse. Meta, Google, and TikTok each claim credit for the same conversion using their own measurement windows. They’re not lying. They’re each seeing a partial truth through their own lens.

Key insight: The problem isn’t bad data. It’s that traditional tools model journeys as linear sequences when real customer behaviour is a network of interconnected decisions.

How Graph Databases Change Everything

A graph database like Neo4j stores data as nodes (entities) and edges (relationships). In attribution, this means:

  • Nodes represent customers, touchpoints, campaigns, channels, and conversions
  • Edges represent the relationships: “Customer A saw Ad B,” “Ad B belongs to Campaign C,” “Customer A purchased Product D”

Instead of a flat table of events sorted by timestamp, you get a living map of how everything connects.

From Sequences to Networks

Traditional attribution sees this:

Facebook Ad → Blog Post → Google Search → Purchase

Knowledge Graph-based attribution sees this:

Facebook Ad ←→ Blog Post ←→ Google Search ←→ Purchase
     ↕              ↕              ↕
  Campaign A    Content Hub    Brand Query
     ↕              ↕              ↕
  Audience X    Topic Cluster   Organic SEO

Every touchpoint is connected not just to the next one in the sequence, but to the campaigns, audiences, content themes, and channels that surround it. This is what makes a knowledge graph: it captures context, not just chronology.

Why This Matters for Your Ad Spend

When you can see the full network, you discover patterns that flat models hide:

  • Assist channels that never get last-click credit but appear in 60-70% of converting journeys
  • Channel synergies where running Facebook and Google together produces more conversions than either alone
  • Content influence where specific blog posts or landing pages consistently appear in high-value customer paths
  • Diminishing returns where a channel’s incremental value drops after a certain frequency

The Seven Attribution Models

NodeNarrative runs seven attribution models simultaneously on the same knowledge graph. Each model answers a different question, and comparing them reveals insights that any single model would miss.

1. First-Touch Attribution

Credits the first interaction in the journey. Answers: “What’s filling the top of funnel?”

Best for evaluating awareness campaigns. If your Facebook prospecting ads consistently appear as first touches in high-value journeys, they’re doing their job even if they rarely get last-click credit.

2. Last-Touch Attribution

Credits the final interaction before conversion. Answers: “What’s closing the deal?”

Best for evaluating bottom-funnel performance. Brand search, retargeting ads, and abandoned cart emails typically dominate here.

3. Linear Attribution

Distributes credit equally across all touchpoints. Answers: “What does the average journey look like?”

A useful baseline. If a channel has 15% of touches but only 5% of first/last credit, it’s an assist channel that other models undervalue.

4. U-Shaped (Position-Based) Attribution

Assigns 40% of credit to the first touch, 40% to the last touch, and splits the remaining 20% equally across middle interactions. Answers: “Which channels start and close deals?”

Best for businesses with strong brand awareness and clear conversion channels. U-Shaped attribution acknowledges both discovery and closing, while still giving proportional credit to mid-funnel nurturing touchpoints.

5. Time-Decay Attribution

Assigns exponentially increasing weight to touchpoints closer in time to the conversion. Answers: “What’s driving action right now?”

Best for short sales cycles and promotional campaigns. A touchpoint one day before conversion gets significantly more credit than one from two weeks ago. Particularly useful for evaluating urgency-driven marketing like flash sales and limited-time offers.

6. Shapley Value Attribution

Borrowed from cooperative game theory, Shapley values calculate each channel’s marginal contribution: what happens to the conversion rate when you add or remove that channel from the mix. This is the model that reveals true incremental impact.

Key insight: Shapley values are the only model that satisfies fairness axioms from game theory. If a channel contributes nothing, it gets nothing. If two channels contribute equally, they get equal credit. No other attribution model makes this guarantee.

7. Markov Chain Attribution

Models customer journeys as probabilistic state transitions. For each touchpoint, it calculates the removal effect, the percentage of conversions that would disappear if that touchpoint didn’t exist.

Markov chains are particularly powerful for identifying critical path touchpoints. A channel might only appear in 10% of journeys, but if removing it would eliminate 25% of conversions, it’s punching well above its weight.

Graph-Based Attribution in Practice

Here’s what this looks like for a real Shopify store spending $50,000/month on marketing across five channels.

ChannelLast-TouchShapley ValueMarkov ChainInsight
Meta Ads42%28%31%Over-credited by last-touch
Google Search31%24%22%Slightly over-credited
Email8%18%20%Massively under-credited
Organic Content4%16%15%The hidden workhorse
Direct/Brand15%14%12%Roughly accurate

The store was about to cut their email marketing budget because last-touch said it was only driving 8% of revenue. Shapley values and Markov chains both show it’s actually influencing 18-20%, making it the assist channel that turns Meta and Google clicks into conversions.

What Makes This Different from Other Attribution Tools

Most attribution platforms claim to go “beyond last-click.” But there’s a spectrum:

Rules-based tools (GA4, most Shopify apps) apply fixed formulas. Better than single-touch, but they can’t model channel interactions.

Algorithmic tools (some enterprise platforms) use machine learning on aggregated data. Better at finding patterns, but they operate on channel-level summaries rather than individual journeys. They’re a black box, and you can’t inspect why they credited a specific channel.

Knowledge Graph-based tools (NodeNarrative) model every individual journey as a connected network, then run multiple attribution algorithms on the complete graph. You can inspect any customer’s path, see exactly how credit was calculated, and understand why the model reached its conclusions.

Key insight: Transparency isn’t just a nice-to-have. When you’re making budget decisions based on attribution data, you need to understand why the model says what it says. “Trust our algorithm” isn’t good enough when your brand’s marketing budget and overall success is on the line.

Getting Started

NodeNarrative connects to your Shopify store in minutes. The knowledge graph builds automatically as customer journeys flow in, and you’ll see your first attribution insights within days if not sooner.

Here’s the typical timeline:

  1. Day 1: Connect Shopify store and marketing platforms
  2. Day 2-3: Knowledge graph begins populating with journey data
  3. Week 1: First attribution reports across all seven models
  4. Week 2-4: Sufficient data for statistically significant Shapley values and Markov chain insights

No data science team required. No months-long implementation. No black-box algorithms you can’t inspect.

Frequently Asked Questions

What is knowledge graph-based attribution?

Knowledge Graph-based attribution uses a graph database like Neo4j to model customer journeys as interconnected networks of touchpoints. Instead of applying fixed rules to isolated clicks, it maps relationships between every ad impression, email open, site visit, and purchase, revealing how channels actually influence each other.

How does knowledge graph-based attribution differ from rules-based models?

Rules-based attribution applies fixed formulas (first-touch, last-touch, linear) to isolated touchpoints. Knowledge Graph-based attribution maps the full network of interactions, finding that channels like email and organic search often have outsized influence that rules-based models systematically undercount.

Is knowledge graph-based attribution suitable for Shopify stores?

Yes. NodeNarrative is purpose-built for Shopify with native integration that captures every touchpoint from first visit to purchase. Most Shopify stores see actionable insights within the first week of connecting their store.

What is a knowledge graph in marketing attribution?

A knowledge graph is a database that stores information as entities (customers, touchpoints, campaigns) and relationships between them. In attribution, this means every interaction is connected to every other interaction for the same customer, creating a complete journey map rather than a flat list of events.

How accurate is knowledge graph-based attribution compared to GA4?

Knowledge Graph-based attribution achieves 95%+ accuracy by modelling the full journey network. GA4 uses last-click by default and its data-driven model operates on aggregated channel data, missing individual journey relationships. The difference is most visible for upper-funnel channels like content marketing and organic social.

knowledge-graph neo4j attribution methodology shopify

See Your Real Attribution Data

Start your 14-day free trial. No credit card required. See what knowledge graph-based attribution reveals about your marketing.