0
0
Digital Marketingknowledge~10 mins

Social media analytics and KPIs 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 identify the key metric that measures the number of times a post is seen.

Digital Marketing
metric = "[1]"  # This metric counts how many times content is displayed
Drag options to blanks, or click blank then click option'
Aimpressions
Bengagement
Cclicks
Dfollowers
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing impressions with engagement or clicks.
2fill in blank
medium

Complete the code to calculate the engagement rate as a percentage.

Digital Marketing
engagement_rate = (engagements / [1]) * 100  # Calculate engagement rate
Drag options to blanks, or click blank then click option'
Aimpressions
Bclicks
Cshares
Dfollowers
Attempts:
3 left
💡 Hint
Common Mistakes
Using impressions or clicks instead of followers in the calculation.
3fill in blank
hard

Fix the error in the KPI calculation to correctly measure click-through rate (CTR).

Digital Marketing
ctr = (clicks / [1]) * 100  # Calculate click-through rate
Drag options to blanks, or click blank then click option'
Aimpressions
Bshares
Cengagements
Dfollowers
Attempts:
3 left
💡 Hint
Common Mistakes
Using followers or engagements instead of impressions in the denominator.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps each post to its engagement rate if the post has more than 1000 impressions.

Digital Marketing
engagement_rates = {post: ([1] / impressions) * 100 for post, impressions, [2] in posts_data if impressions > 1000}
Drag options to blanks, or click blank then click option'
Aengagements
Bclicks
Cfollowers
Dshares
Attempts:
3 left
💡 Hint
Common Mistakes
Using followers instead of engagements for the rate.
Incorrect variable unpacking causing errors.
5fill in blank
hard

Fill all three blanks to create a filtered dictionary of posts with a high CTR (greater than 5%).

Digital Marketing
high_ctr_posts = {post: ([1] / [2]) * 100 for post, [3] in posts_data.items() if ([1] / [2]) * 100 > 5}
Drag options to blanks, or click blank then click option'
Aclicks
Bimpressions
Cdata
Dengagements
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up clicks and impressions.
Incorrect unpacking of dictionary items.