Sub topic 4
Calculating Engagement Rate and Setting a Baseline
Assume you already have a LinkedIn account, several published posts, and basic comfort with percentages. You should also know where to open a post’s analytics page and understand that LinkedIn may use different metric names or layouts for different account types.
Engagement rate helps you compare posts that received different amounts of attention. A simple version divides total engagements by impressions:
\[ \text{engagement rate} = \frac{\text{reactions}+\text{comments}+\text{reposts}+\text{clicks}} {\text{impressions}} \]
An engagement is an action someone takes on your content. Impressions count how many times LinkedIn displayed the post. Because one member can see a post more than once, impressions are not the same as unique people.
Calculate the rate
Suppose a post has:
- 2,000 impressions
- 60 reactions
- 8 comments
- 4 reposts
- 28 clicks
The post has 100 total engagements. Its engagement rate is 100 divided by 2,000, or 5%.
def engagement_rate(impressions, reactions, comments, reposts, clicks):
"""One common definition: total engagements divided by impressions."""
if impressions == 0:
return 0.0
return (reactions + comments + reposts + clicks) / impressions
rate = engagement_rate(
impressions=2000,
reactions=60,
comments=8,
reposts=4,
clicks=28,
)
print(f"{rate:.1%}") # 5.0%This is a comparison measure, not a universal LinkedIn score. LinkedIn may display its own engagement-rate calculation, and its definition may include additional actions. When recording results, write down which fields you included.
Set a baseline from your own posts
An outside “good” rate is often a poor target. Results vary with audience size, topic, format, timing, and account history. Your own recent performance gives you a more useful baseline.
A baseline is a reference point for comparison. Calculate the rate for several similar posts, then use the median. The median is the middle value after sorting the values. It is less affected by one unusually successful or unsuccessful post than an average.
from statistics import median
posts = [
{"name": "post_a", "impressions": 1200, "engagements": 54},
{"name": "post_b", "impressions": 3400, "engagements": 102},
{"name": "post_c", "impressions": 800, "engagements": 48},
{"name": "post_d", "impressions": 2100, "engagements": 63},
]
rates = {p["name"]: p["engagements"] / p["impressions"] for p in posts}
baseline = median(rates.values())
for name, rate in rates.items():
label = "above" if rate > baseline else "at or below"
print(f"{name}: {rate:.1%} ({label} median {baseline:.1%})")For a meaningful comparison, use a consistent group. For example, compare four text posts from the past month, rather than combining a short text post, a video, and an announcement from different periods.
Interpret the comparison
If a post is above your baseline, ask what may have contributed: a clearer opening, a more relevant topic, a stronger question, or a different posting time. Do not assume that one result proves a cause. A single post can be affected by chance or by an audience outside your intended group.
If a post is below the baseline, inspect the same factors without treating the result as a verdict on your personal brand. Keep the comparison fair, record the context, and change one variable at a time in your next test.
Exercise
A post has 1,500 impressions and 45 total engagements. Your baseline is 2.4%. Is the post above or below your baseline?
Show answer
Its engagement rate is 45 ÷ 1,500 = 3.0%, so it is above the 2.4% baseline.