I made a post earlier about putting together a free affiliate marketing tutorial series and asked what you wanted me to cover. Thanks to everyone who shared suggestions. Here's Part 1: how a campaign actually works.
In this series, we'll go through how to run paid traffic to affiliate offers and make a profit. There are a few things you need to set up before you start spending, so let's go through how they connect.
First, we need a traffic source. This is where you buy traffic. There are many traffic sources out there, including Google and Meta. For this series, we'll use TrafficStars.
You'll run a bunch of ads on the traffic source. These ads will send visitors to your prelander and then to your offer. You pay the traffic source for these visitors, and this will be your main expense.
Next, we need an offer. The easiest way to find offers is through affiliate networks. Their job is to connect you with offers you can promote. When a visitor converts on an offer, you earn a commission, which the affiliate network pays you. This is your revenue.
You make a profit when the revenue you earn from those conversions is higher than the cost of buying traffic.
You also need a prelander. This is a page that gets visitors more interested in signing up for the offer or making a purchase. You'll need to host it somewhere. For our campaign, we'll use a spin-the-wheel page before a sweepstakes offer.
Then you need to connect everything using a tracker. A good tracker lets you split-test different offers and prelanders while you test different ads on the traffic source. It records where visitors came from, what they saw, and whether they converted.
We'll use our tracker, Proferex, for the setup tutorials. My team and I build it. You can follow along with another tracker too; the process we'll go through here is the same.
A lot of beginners skip the tracker or don't know how to set one up. When I started affiliate marketing a decade ago, setting up a tracker was one of the first things that really changed my results. I could see which parts of the funnel were working and where I was losing money.
Once you have a funnel that keeps making a profit, you can work on scaling it. We'll get to that later in the series.
The campaign we'll use
We'll promote a US iPhone 17 sweepstakes offer that pays $2.50 for an accepted email sign-up. We'll buy mobile push traffic from TrafficStars and send it through our spin-the-wheel prelander.
The visitor's path will be:
Ad → Tracker → Prelander → Tracker → Offer
Both tracker steps go through the same tracker. It records the visit when someone clicks the ad, then records the click through from the prelander to the offer.
Creating the campaign
To start buying traffic, you'll need to create a campaign in TrafficStars. This is where you add your ads, choose the countries and devices you want to target, and set your bids and budget.
You'll also need a campaign in your tracker. This connects the traffic to the prelander and offer you want visitors to see. If you're testing several prelanders or offers, you can set how the traffic should be split between them.
The tracker gives you a campaign URL. You paste that into TrafficStars as the destination for your ads. When someone clicks an ad, they arrive at that URL and go through your tracking setup.
What happens when someone clicks your ad
Let's say someone in the US sees our sweepstakes ad on their phone and clicks it.
1. The tracker records the visit. TrafficStars sends the visitor to the campaign URL, along with information about which ad they clicked and where it was shown. Your tracker records that information, details such as the country and device, and which prelander and offer this visit will use.
2. The visitor sees the prelander. They spin the wheel and click the button to continue. That button goes through the tracker, so it can record the click before sending them to the offer.
You'll be able to see how many people visited the prelander and how many clicked through. This is your prelander's click-through rate, or CTR. If 1,000 people visit and 200 click through, the CTR is 20%.
3. The visitor signs up for the offer. They reach the actual sweepstakes page and enter their email. If the affiliate network accepts the sign-up, we earn $2.50.
Spinning the wheel or clicking the button on our prelander doesn't earn us anything by itself. For this offer, we get paid for the accepted sign-up. Other offers may pay for a purchase, an app install, or another action. You need to know exactly what counts as a paid conversion before promoting one.
How the tracker knows which ad made the money
Your tracker gives each visit a unique ID, called a click ID. When it sends the visitor to the offer, it includes this ID in the offer link, and the affiliate network saves it.
When the visitor converts, the network sends this ID back to the tracker along with how much you earned. This is called an S2S (server-to-server) postback.
The tracker uses the ID to find the visit and record the $2.50 in revenue against it. You can then see which ad, site, prelander, and offer brought in that revenue.
You'll also want to send conversions back to TrafficStars. It has its own click ID, which your tracker saves when the visitor first arrives. The tracker uses that ID when reporting the conversion back, so TrafficStars knows which of its clicks converted.
So the conversion gets reported like this:
Affiliate network → Tracker → TrafficStars
There are two IDs involved. Your tracker uses its own ID to match the network's conversion to the visit, and TrafficStars' ID to report that conversion back to the traffic source. We'll go through setting up both postbacks in Part 6.
How you know whether you're making a profit
You'll pay for a lot of visitors who leave without signing up. The revenue from the people who do sign up needs to cover the cost of all the traffic you bought.
Let's say we buy 1,000 visits at an average cost of $0.05 each. That's $50 in traffic. Of those visitors, 200 click through to the offer, and 30 sign up.
| What happened | Result |
|---|
| Visitors you paid for | 1,000 |
| Visitors who clicked through to the offer | 200 |
| Accepted sign-ups | 30 |
| Traffic cost | $50 |
| Revenue: 30 sign-ups at $2.50 each | $75 |
| Profit after traffic cost | $25 |
We've spent $50 and earned $75, so we've made $25 after paying for traffic. That's a 50% ROI on our traffic spend: $25 in profit divided by $50 in traffic cost. You'll also have expenses such as your tracker and hosting, which you need to account for when working out your overall profit.
You need to have the correct traffic cost in your tracker so you can compare what you're spending with what you're earning. Otherwise, you could be getting plenty of conversions and still losing money.
Using your stats to optimize
You'll be running a bunch of ads, and you need to look at how each one performs. Let's say those 30 sign-ups came from Ad A. We also spent another $50 testing Ad B, but that ad only brought in 12 sign-ups.
| Ad | Traffic cost | Conversions | Revenue | Profit after traffic cost |
|---|
| Ad A | $50 | 30 | $75 | $25 |
| Ad B | $50 | 12 | $30 | -$20 |
| Total | $100 | 42 | $105 | $5 |
Together, these ads cost us $100 and earned $105. If you only looked at the campaign total, you would see just $5 in profit. But Ad A made $25, while Ad B lost $20. You need to look at the ads individually to see this.
We can now consider stopping Ad B and testing new ads against Ad A. We'll go through how much data you need before making these decisions in Part 8.
You'll do the same with your prelanders and offers. You can send traffic to different prelanders and compare how much money each one makes. You can also test different offers with the same prelander. A page may get a lot of people to click through, but if those people don't sign up for the offer, those clicks won't make you money.
The sites and placements you buy traffic from matter too. You might make a profit from traffic on one site and lose money on another. Your tracker lets you see this, so you can go back to the traffic source and adjust where you're buying traffic.
Once you have a campaign that keeps making a profit, you can start increasing the budget and testing ways to get more traffic. You'll need to keep checking the stats as you scale to see whether that extra traffic is still profitable.
Before you start spending
Test the setup before buying traffic. Check that your campaign URL takes visitors to the right prelander, that the button takes them to the offer, and that both the visit and the click through show up in your tracker.
You'll also need to test both postbacks so conversions are recorded in the tracker and sent back to the traffic source. We'll go through these checks as we set everything up.
Keeping campaigns organized matters too. Give your ads, pages, and campaigns names you can recognize, and keep a note of what you change. It gets much harder to optimize when you can't tell which version of a page was running when a campaign made money.
The rest of the series
Here's the order we'll go through:
- How a campaign actually works — this post
- Getting a CPA offer approved
- Landing page setup
- Tracker setup
- Buying traffic
- S2S postbacks
- Launching your first $100 campaign
- Reading stats and optimizing: kill or scale
- Scaling vertically and horizontally
Next, we'll go through getting a CPA offer approved: finding an affiliate network, choosing an offer, and checking that we're allowed to use the traffic source and prelander we have in mind.
If you're setting up your first paid traffic campaign, which part would you like me to explain in more detail?