Bird
Raised Fist0
Digital Marketingknowledge~10 mins

Key metrics (impressions, clicks, CTR, conversions, CPA, ROAS) in Digital Marketing - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to calculate the Click-Through Rate (CTR) given clicks and impressions.

Digital Marketing
ctr = (clicks / [1]) * 100
Drag options to blanks, or click blank then click option'
Aimpressions
Bconversions
Ccost
Drevenue
Attempts:
3 left
💡 Hint
Common Mistakes
Using conversions instead of impressions in the denominator.
Forgetting to multiply by 100 to get a percentage.
2fill in blank
medium

Complete the code to calculate Cost Per Acquisition (CPA) given total cost and number of conversions.

Digital Marketing
cpa = total_cost / [1]
Drag options to blanks, or click blank then click option'
Aclicks
Bimpressions
Cconversions
Drevenue
Attempts:
3 left
💡 Hint
Common Mistakes
Dividing by clicks instead of conversions.
Using revenue in the denominator.
3fill in blank
hard

Fix the error in the formula to calculate Return on Ad Spend (ROAS).

Digital Marketing
roas = [1] / total_cost
Drag options to blanks, or click blank then click option'
Arevenue
Bconversions
Cimpressions
Dclicks
Attempts:
3 left
💡 Hint
Common Mistakes
Using clicks or conversions instead of revenue in the numerator.
Dividing cost by revenue instead of revenue by cost.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps each metric to its formula string.

Digital Marketing
{'CTR': '[1]', 'CPA': '[2]'}
Drag options to blanks, or click blank then click option'
Aclicks / impressions * 100
Btotal_cost / conversions
Cconversions / clicks
Drevenue / total_cost
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up formulas for CTR and CPA.
Using revenue or conversions incorrectly.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension filtering metrics with positive values.

Digital Marketing
{metric: value for metric, value in data.items() if value [1] 0 and metric != '[2]' and metric != '[3]'}
Drag options to blanks, or click blank then click option'
A>
Bclicks
Cimpressions
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' instead of '>' for the value check.
Confusing metric names in the exclusions.

Practice

(1/5)
1. Which metric shows how many times your ad was displayed to users?
easy
A. CPA
B. Clicks
C. Conversions
D. Impressions

Solution

  1. Step 1: Understand the meaning of impressions

    Impressions count how many times an ad is shown to users, regardless of interaction.
  2. Step 2: Compare with other metrics

    Clicks count interactions, conversions track actions, CPA measures cost per action, so they don't represent views.
  3. Final Answer:

    Impressions -> Option D
  4. Quick Check:

    Impressions = number of times ad is seen [OK]
Hint: Impressions = ad views, not clicks or actions [OK]
Common Mistakes:
  • Confusing clicks with impressions
  • Thinking conversions count views
  • Mixing CPA with impressions
2. Which formula correctly calculates Click-Through Rate (CTR)?
easy
A. CTR = (Clicks / Impressions) x 100
B. CTR = (Conversions / Clicks) x 100
C. CTR = (Impressions / Clicks) x 100
D. CTR = (CPA / ROAS) x 100

Solution

  1. Step 1: Recall CTR definition

    CTR measures the percentage of people who clicked an ad after seeing it, so it's clicks divided by impressions.
  2. Step 2: Check the formula options

    Only CTR = (Clicks / Impressions) x 100 correctly divides clicks by impressions and multiplies by 100 to get a percentage.
  3. Final Answer:

    CTR = (Clicks / Impressions) x 100 -> Option A
  4. Quick Check:

    CTR = clicks ÷ impressions x 100 [OK]
Hint: CTR = clicks divided by impressions times 100 [OK]
Common Mistakes:
  • Swapping clicks and impressions
  • Using conversions instead of clicks
  • Confusing CPA or ROAS with CTR
3. If an ad had 10,000 impressions, 500 clicks, and 50 conversions, what is the CPA (Cost Per Acquisition) if total spend was $1,000?
medium
A. $20
B. $50
C. $10
D. $5

Solution

  1. Step 1: Understand CPA formula

    CPA = Total Spend ÷ Number of Conversions. Here, spend is $1,000 and conversions are 50.
  2. Step 2: Calculate CPA

    CPA = 1000 ÷ 50 = 20 ($20).
  3. Step 3: Recalculate carefully

    1000 ÷ 50 = 20, so CPA is $20.
  4. Final Answer:

    $20 -> Option A
  5. Quick Check:

    CPA = spend ÷ conversions = 1000 ÷ 50 = 20 [OK]
Hint: CPA = total spend divided by conversions [OK]
Common Mistakes:
  • Dividing by clicks instead of conversions
  • Mixing up CPA with ROAS
  • Incorrect division calculation
4. A campaign shows 2,000 clicks and 100 conversions with a total spend of $500. The reported CPA is $10. What is the error in this calculation?
medium
A. CPA should be $20, not $10
B. CPA should be $50, not $10
C. CPA should be $5, not $10
D. CPA is correctly calculated as $10

Solution

  1. Step 1: Calculate correct CPA

    CPA = Total Spend ÷ Conversions = 500 ÷ 100 = 5.
  2. Step 2: Compare with reported CPA

    The reported CPA is $10, which is double the correct value, so it's an error.
  3. Final Answer:

    CPA should be $5, not $10 -> Option C
  4. Quick Check:

    CPA = 500 ÷ 100 = 5 [OK]
Hint: CPA = spend divided by conversions; check division carefully [OK]
Common Mistakes:
  • Using clicks instead of conversions
  • Misreading total spend
  • Ignoring correct division
5. An advertiser spent $2,000 on a campaign that generated $8,000 in revenue. If the campaign had 40 conversions, what is the ROAS and CPA? Choose the correct pair.
hard
A. ROAS = 0.25, CPA = $200
B. ROAS = 4, CPA = $50
C. ROAS = 4, CPA = $200
D. ROAS = 0.25, CPA = $50

Solution

  1. Step 1: Calculate ROAS

    ROAS = Revenue ÷ Spend = 8000 ÷ 2000 = 4.
  2. Step 2: Calculate CPA

    CPA = Spend ÷ Conversions = 2000 ÷ 40 = 50.
  3. Final Answer:

    ROAS = 4, CPA = $50 -> Option B
  4. Quick Check:

    ROAS = 8000 ÷ 2000 = 4, CPA = 2000 ÷ 40 = 50 [OK]
Hint: ROAS = revenue/spend, CPA = spend/conversions [OK]
Common Mistakes:
  • Mixing revenue with conversions
  • Swapping ROAS and CPA formulas
  • Incorrect division order