0
0
Digital Marketingknowledge~10 mins

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

Choose your learning style9 modes available
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.