Retargeting and remarketing in Digital Marketing - Time & Space Complexity
Start learning this pattern below
Jump into concepts and practice - no test required
When running retargeting and remarketing campaigns, it is important to understand how the time and effort needed grow as your audience size increases.
We want to know how the work involved changes when you target more users.
Analyze the time complexity of the following campaign process.
// For each user in the audience list
for user in audience_list:
# Check if user visited the website
if user.visited_website:
# Show personalized ad
show_ad(user)
# Else, do nothing
This code checks each user to see if they visited the website and then shows them a personalized ad if they did.
- Primary operation: Looping through each user in the audience list.
- How many times: Once for every user in the list.
As the number of users grows, the number of checks and ads shown grows at the same rate.
| Input Size (n) | Approx. Operations |
|---|---|
| 10 | 10 checks and possible ads |
| 100 | 100 checks and possible ads |
| 1000 | 1000 checks and possible ads |
Pattern observation: The work grows directly with the number of users.
Time Complexity: O(n)
This means the time to run the campaign grows in a straight line as the audience size grows.
[X] Wrong: "Showing ads to more users only takes a little more time because ads are automated."
[OK] Correct: Even automated ads require checking each user's data, so more users mean more work and time.
Understanding how campaign effort grows with audience size helps you plan better and shows you can think about efficiency in marketing tasks.
"What if we grouped users by behavior first and then showed ads to groups instead of individuals? How would the time complexity change?"
Practice
Solution
Step 1: Understand the goal of retargeting and remarketing
These strategies focus on visitors who already showed interest but did not complete a purchase.Step 2: Compare options to the goal
Only To bring back visitors who showed interest but didn't buy matches this goal, while others focus on unrelated website improvements or new visitors.Final Answer:
To bring back visitors who showed interest but didn't buy -> Option AQuick Check:
Retargeting = bring back interested visitors [OK]
- Confusing retargeting with attracting new visitors
- Thinking it improves website speed or design
Solution
Step 1: Identify tracking methods in retargeting
Retargeting uses a small code snippet or pixel placed on the website to track visitors.Step 2: Eliminate unrelated options
Options A, B, and C do not involve tracking visitors for ads.Final Answer:
Using a small tracking code or pixel on the website -> Option BQuick Check:
Tracking code = retargeting method [OK]
- Confusing tracking with unrelated website changes
- Thinking email spam is retargeting
Solution
Step 1: Analyze the scenario
The user visits but does not buy, then sees ads later for the same store.Step 2: Match scenario to marketing strategies
Showing ads to previous visitors is retargeting, not SEO, email, or content marketing.Final Answer:
Retargeting -> Option DQuick Check:
Ads to past visitors = Retargeting [OK]
- Confusing retargeting with SEO or email campaigns
- Thinking content marketing shows ads to past visitors
Solution
Step 1: Identify key setup for retargeting
Retargeting requires a tracking pixel on the website to collect visitor data.Step 2: Evaluate possible errors
If no ads show, missing the pixel is the most likely cause. Other options do not prevent ads from showing.Final Answer:
The tracking pixel was not added to the website -> Option CQuick Check:
Missing pixel = no retargeting ads [OK]
- Blaming website traffic volume
- Thinking HTTPS blocks retargeting
- Assuming ad design affects ad delivery
Solution
Step 1: Understand the target audience
The company wants to reach visitors who added items to cart but did not complete purchase.Step 2: Match strategy to audience
Retargeting ads focused on cart abandoners specifically target this group, unlike generic ads, emails, or SEO.Final Answer:
Retargeting ads focused on cart abandoners -> Option AQuick Check:
Target cart abandoners = retargeting ads [OK]
- Using broad ads instead of focused retargeting
- Confusing email newsletters with retargeting
- Thinking SEO targets specific past visitors
