0
0
Digital Marketingknowledge~30 mins

Why attribution shows what actually works in Digital Marketing - See It in Action

Choose your learning style9 modes available
Why Attribution Shows What Actually Works
📖 Scenario: You are a marketing analyst working for a small online store. You want to understand which advertising channels bring real customers so you can spend your budget wisely.
🎯 Goal: Build a simple model that shows how attribution helps identify the marketing channels that actually lead to sales.
📋 What You'll Learn
Create a dictionary called channels with exact keys and values representing marketing channels and their clicks
Create a variable called conversion_threshold set to the exact value 5
Use a dictionary comprehension called effective_channels to select channels with clicks greater than conversion_threshold
Add a final key-value pair to channels representing 'Referral' with 7 clicks
💡 Why This Matters
🌍 Real World
Marketers use attribution to understand which ads or channels lead to real sales, so they can spend money wisely.
💼 Career
Marketing analysts and digital marketers rely on attribution data to optimize campaigns and improve return on investment.
Progress0 / 4 steps
1
DATA SETUP: Create the marketing channels data
Create a dictionary called channels with these exact entries: 'Email': 10, 'Social Media': 3, 'Paid Search': 8, 'Organic Search': 12
Digital Marketing
Need a hint?

Use curly braces {} to create a dictionary with keys as channel names and values as clicks.

2
CONFIGURATION: Set the conversion threshold
Create a variable called conversion_threshold and set it to the number 5
Digital Marketing
Need a hint?

This number helps decide which channels are effective by clicks.

3
CORE LOGIC: Select effective channels using attribution
Use a dictionary comprehension called effective_channels to include only channels from channels where clicks are greater than conversion_threshold
Digital Marketing
Need a hint?

Use for channel, clicks in channels.items() and an if condition inside the dictionary comprehension.

4
COMPLETION: Add the 'Referral' channel to the data
Add a new entry to the channels dictionary with key 'Referral' and value 7
Digital Marketing
Need a hint?

Use square brackets to add a new key-value pair to the dictionary.