📖 Scenario: You manage a website with many articles. Over time, some articles lose visitors because their information becomes outdated or less relevant. This is called content decay.To keep your website healthy, you want to find which articles have lost visitors recently so you can update them.
🎯 Goal: You will create a simple data structure to hold article visitor counts over two months. Then, you will identify articles that lost visitors from the first month to the second month. Finally, you will mark those articles as needing updates.
📋 What You'll Learn
Create a dictionary named articles with article titles as keys and their visitor counts for the first month as values.
Create a dictionary named new_visitors with the same article titles as keys and visitor counts for the second month as values.
Create a list named decayed_articles that contains titles of articles where visitors decreased from the first to the second month.
Create a dictionary named update_status that marks each article as true if it has content decay, otherwise false.
💡 Why This Matters
🌍 Real World
Website managers track visitor numbers to keep content fresh and relevant. Identifying content decay helps prioritize updates to maintain or improve search rankings and user engagement.
💼 Career
SEO specialists and content managers use these techniques to monitor website health and improve content strategy.
Progress0 / 4 steps
1
Set up initial article visitor data
Create a dictionary called articles with these exact entries: 'How to Bake Bread': 1200, 'Gardening Tips': 900, 'Travel Guide': 1500, 'Tech News': 2000 representing visitor counts for the first month.
SEO Fundamentals
Hint
Use curly braces {} to create a dictionary with the exact article titles and visitor numbers.
2
Add visitor data for the second month
Create a dictionary called new_visitors with these exact entries: 'How to Bake Bread': 1100, 'Gardening Tips': 950, 'Travel Guide': 1400, 'Tech News': 2100 representing visitor counts for the second month.
SEO Fundamentals
Hint
Use a dictionary similar to articles but with the new visitor numbers.
3
Identify articles with content decay
Create a list called decayed_articles that contains article titles where the visitor count in new_visitors is less than in articles. Use a for loop with variables title and old_count to iterate over articles.items().
SEO Fundamentals
Hint
Use a for loop to compare visitor counts and add titles to the list when the count decreased.
4
Mark articles needing updates
Create a dictionary called update_status where each article title from articles is a key. The value should be true if the title is in decayed_articles, otherwise false. Use a dictionary comprehension with title for title in articles.
SEO Fundamentals
Hint
Use a dictionary comprehension to check if each title is in decayed_articles and assign true or false.
Practice
(1/5)
1. What does content decay mean in SEO?
easy
A. A drop in website traffic or rankings over time
B. A sudden increase in website visitors
C. Adding new pages to a website
D. Improving website loading speed
Solution
Step 1: Understand the term content decay
Content decay refers to when a webpage loses visitors or ranking positions gradually over time.
Step 2: Match the definition to the options
A drop in website traffic or rankings over time correctly describes this as a drop in traffic or rankings over time, while others describe unrelated concepts.
Final Answer:
A drop in website traffic or rankings over time -> Option A
Quick Check:
Content decay = drop in traffic/rankings [OK]
Hint: Content decay means losing visitors or rankings over time [OK]
Common Mistakes:
Confusing content decay with traffic increase
Thinking content decay means adding new content
Mixing up content decay with site speed issues
2. Which tool is commonly used to identify content decay by tracking keyword rankings?
easy
A. Keyword rank tracker
B. Google Analytics
C. Image editor
D. Text editor
Solution
Step 1: Identify tools for tracking keyword rankings
Keyword rank trackers monitor how keywords perform in search results over time.
Step 2: Match the tool to content decay detection
Keyword rank trackers help spot drops in keyword positions, indicating content decay. Google Analytics tracks traffic but not keyword ranks directly.
Final Answer:
Keyword rank tracker -> Option A
Quick Check:
Keyword rank tracker = tracks rankings [OK]
Hint: Use keyword rank trackers to spot ranking drops [OK]
Common Mistakes:
Choosing Google Analytics for keyword ranking data
Selecting unrelated tools like image or text editors
Confusing traffic data with keyword ranking data
3. You notice a page's traffic dropped 30% over 3 months but keyword rankings stayed the same. What is the likely cause?
medium
A. Content decay due to ranking loss
B. Keyword rank tracker error
C. Seasonal traffic change or external factors
D. Website redesign causing errors
Solution
Step 1: Analyze traffic and ranking data
Traffic dropped significantly but keyword rankings did not change, so ranking loss is unlikely the cause.
Step 2: Consider other reasons for traffic drop
Seasonal trends or external factors like marketing changes can reduce traffic without affecting rankings.
Final Answer:
Seasonal traffic change or external factors -> Option C
Quick Check:
Traffic drop + stable rankings = external cause [OK]
Hint: Stable rankings with traffic drop means external factors [OK]
Common Mistakes:
Assuming traffic drop always means content decay
Blaming keyword rank tracker without evidence
Ignoring external influences on traffic
4. A website owner sees a sudden drop in keyword rankings for a page. Which action will NOT help identify content decay?
medium
A. Checking Google Search Console for errors
B. Ignoring traffic data and focusing only on rankings
C. Reviewing recent content updates
D. Analyzing competitor content changes
Solution
Step 1: Understand methods to identify content decay
Checking errors, content updates, and competitor changes help find causes of ranking drops.
Step 2: Identify ineffective action
Ignoring traffic data misses important signals; focusing only on rankings limits understanding of decay.
Final Answer:
Ignoring traffic data and focusing only on rankings -> Option B
Quick Check:
Ignoring traffic data = not helpful [OK]
Hint: Always check traffic data, not just rankings [OK]
Common Mistakes:
Ignoring traffic data when diagnosing decay
Overlooking competitor content changes
Not checking for technical errors
5. You manage a blog where some posts show steady traffic decline and lower keyword ranks. What is the best approach to fix content decay?
hard
A. Reduce website loading speed to save resources
B. Delete old posts and create new ones only
C. Ignore the decline and focus on new content
D. Regularly update posts with fresh info and optimize keywords