Blog / Automation

Know Which Ad Brought Each WhatsApp Chat

When ads send people to WhatsApp, it is hard to tell which ad worked. A simple code in the pre-typed message fixes that. How to set it up and read the results.

Titus Kaleli · · 2 min read

Many Kenyan businesses now run Facebook, Instagram and TikTok ads that open WhatsApp instead of a website. It makes sense: customers would rather chat than fill in a form. The problem comes at the end of the month: twenty chats came in, five bought, but which ad were they from? Without that answer, you keep paying for ads that do not work.

The fix: a code in the first message

Every ad, post or poster gets its own pre-typed WhatsApp message ending in a short code:

  • Reel about braids: "Hi, I'd like to book braids. Code R1"
  • Photo ad for gel nails: "Hi, I'm interested in gel nails. Code R2"
  • Poster at the shop: "Hi, I saw your poster. Code P1"

When the chat arrives, the code tells you exactly where the customer came from. They can edit the text, but most send it as it is.

How to set it up

  1. Make a code list: a short sheet with each code, the ad or post, the date it started and its budget.
  2. Build the links: for a post or bio, a wa.me link with the pre-typed text (see how to make click-to-chat links). In Meta Ads Manager, choose the WhatsApp messaging option and set the pre-filled message for each ad.
  3. Label the chats: when a chat arrives, add a label for the code in WhatsApp Business.
  4. Mark the sales: when a customer pays, note the code next to the sale.

Reading the results

At the end of the week, count for each code: chats, sales and money spent. The number that matters is cost per sale, not cost per chat. An ad that brings fewer chats but more buyers is the better ad. Turn off the losers, give more budget to the winners, and test one new idea at a time.

Let the bot do the counting

Counting codes by hand works for a few chats a day. A WhatsApp bot can read the code automatically, tag the lead, answer the question the ad was about (a chat with code R1 gets braids prices, not the whole menu), and add every lead and sale to a sheet. Then a daily summary on WhatsApp can tell you which ad brought today's customers.

Want this on your own number?

SparkWorld builds WhatsApp bots for Kenyan businesses: they answer from your own rules, take bookings and orders, and hand the chat to your team when a person is needed. Chat with us on WhatsApp (0110 757 810), or read more about WhatsApp bots and automation.

Want this working in your business?

Book a discovery call →

More from the blog

Automation · · 1 min read

WhatsApp Bots for Gyms and Fitness Studios in Kenya

Answer membership questions, book classes, remind members when fees are due and win back people who stopped coming, all on your gym's WhatsApp number.

Automation · · 1 min read

WhatsApp Quotes and Orders for Hardware Shops

Contractors and fundis send hardware shops long lists on WhatsApp. How a bot can price a list from your stock, send a quote, take M-Pesa and arrange delivery.

You're offline. Some things won't load until you reconnect.
Chat on WhatsApp

SparkWorld

+254 110 757 810

Chat with us on WhatsApp

Before we open WhatsApp, leave your name and number.

Why we ask

  • On a computer, WhatsApp only opens if WhatsApp Web is linked to your phone, and you may not be logged in.
  • So we don't lose you: if the chat doesn't start, we'll message you first.
  • We only use your details to reply to you.
Skip and open WhatsApp now