WhatsApp Opt-In Management: Consent Records, Opt-Outs and Proof
CONTENTS10 sections
Before sending a WhatsApp campaign, the question to answer is not “does this person have consent?” but this: for which channel did this person give permission, to which wording, when and where, and was it withdrawn later? A single “Yes” column in a customer list cannot answer that. A consent event log can, because it writes every opt-in and every opt-out as its own row; the send list is then built only from people whose latest event is an opt-in. This page shows how to build that record; it is not legal advice.
Do service messages and marketing messages need the same permission?
They can be treated differently, but which side each message falls on is for your lawyer: the rules come from your national law (in the EU, GDPR and the ePrivacy rules) and from WhatsApp’s own policy.
WhatsApp’s side applies everywhere. The WhatsApp Business Messaging Policy (last updated 23.09.2026, read 01.11.2026) allows a business to contact people on WhatsApp only if two conditions are met: they gave you their phone number or username, and they gave opt-in permission confirming that they want to receive later messages from you. Opt-out requests must be respected whether they arrive on WhatsApp or anywhere else. The policy’s best-practice section recommends separate opt-in by message category. I found no exception for business customers in the policy text; it sets the opt-in condition for everyone (I read only this policy), so a local exemption for dealers does not remove it.
Marketing permission and the legal basis for processing personal data are separate questions too; ask your lawyer whether one covers the other.
Example: of 702 “Yes” rows, only 246 can prove campaign consent
The company, IDs and all figures are fictional and checked in a Python script. A distributor of agricultural machinery spare parts sends dealers and farm customers campaigns, stock news and service reminders. The customer list is one Excel sheet: 1,240 rows, each with a person, a phone number and a “WhatsApp consent” column. A pre-harvest parts campaign is about to go out to everyone filtered as “Yes”. The marketing coordinator checks each row against forms, show sheets and chats:
| What the 702 “Yes” rows really hold | Rows |
|---|---|
| Wording covers campaigns, form and date on file (wording v2) | 246 |
| Source unknown; no form, date or proof | 284 |
| Wording covers stock and service news only (v1) | 112 |
| Consent came from the email newsletter form, not WhatsApp | 46 |
| Person said “stop sending”; set to No, later back to Yes | 9 |
| Opt-out came from the person’s second number; this row stayed open | 5 |
Fourteen people appear twice, so there are 1,226 distinct people. During the year 37 people opted out: 23 were closed correctly, 9 flipped back to “Yes” when a dealer’s updated list was pasted over the sheet, and 5 stayed open on a twin row.
Result: the filter would have messaged 702 people. For 172 of them there is no consent or the wording does not cover campaigns (9 + 5 + 46 + 112); for 284 there may be consent, but it cannot be proven. Only 246 hold provable campaign consent.
Which fields does a consent record need?
A consent record answers “who, for which address and channel, to which wording, where, when and with what proof” in one row. The fields I suggest:
- Contact ID: one ID per person; someone with two phones is still one person.
- Number: the phone the permission was given for.
- Channel: WhatsApp, SMS and email kept apart. An opt-out on one channel cannot be applied correctly if channels share a cell.
- Type: Opt-in or Opt-out.
- Wording version: the version of the consent text the person agreed to (v1, v2); the text itself is stored with its date on a separate sheet.
- Source: web form, dealer form, trade show form, WhatsApp reply, phone.
- Date-time: the day is not enough; record the time too (see below).
- Proof: form submission number, scan of the signed sheet, screenshot.
- Recorded by: the person who entered the row.
Overwriting a withdrawn opt-in with “No” also deletes the record of when consent existed, which some laws require you to keep.
Where does a single “Yes” column break?
Each example row shows one way a single column fails:
- No channel: 46 opt-ins from the email newsletter form were entered as WhatsApp “Yes”.
- No wording version: after the consent form changed, nobody separated the 112 people who agreed to the old text, which does not cover campaigns.
- No source: for 284 rows nobody knows where the “Yes” came from. Messaging them to ask for permission looks like a fix, but in some legal systems a consent request sent as a message is itself restricted; ask your lawyer first.
- Opt-outs get overwritten: a “No” cell returns to “Yes” with the next copy and paste (9 people), and the date and channel of the opt-out are lost.
- Two numbers for one person: K-0412 and K-0588 are the same farmer; the opt-out came from the second number and was entered on K-0588, so the campaign would still reach the first number on K-0412 (5 people).
A consent event log in Excel: columns and formulas
A solid setup has one rule: an event row is never edited or deleted; every change is a new row. The “Events” sheet (rows 2 to 1000):
A Event ID · B Contact ID · C Number · D Channel · E Type · F Date-time · G Wording version · H Source · I Proof · J Recorded by · K Key · L Order check · M Latest key
- K2, key (contact × channel):
=B2&"|"&D2 - L3, order check (L2 holds the first-row version, below):
=IF(ISNUMBER(F3),IF(F3<MAX($F$2:F2),"Out of order",""),"No date"). Flags a row dated earlier than an event above it. - M2, latest key (for Excel 2016/2019):
=IF(COUNTIF(K2:K$1000,K2)=1,K2,""). The key stays only on the last row for that contact × channel.
Before building a list, sort the table by column F from oldest to newest (Data > Sort). Read column L before sorting; afterwards it is always empty. A date stored as text sorts after numbers and looks newest, so L2 is =IF(ISNUMBER(F2),"","No date").
On the “Campaign” sheet, column A holds each Contact ID once. In Microsoft 365 and Excel 2021 or later:
B2 =XLOOKUP($A2&"|WhatsApp",Events!$K$2:$K$1000,Events!$E$2:$E$1000,"No record",0,-1)
C2 =XLOOKUP($A2&"|WhatsApp",Events!$K$2:$K$1000,Events!$C$2:$C$1000,"",0,-1)
D2 =XLOOKUP($A2&"|WhatsApp",Events!$K$2:$K$1000,Events!$G$2:$G$1000,"",0,-1)
Argument order: lookup value, lookup array, return array, if not found, match mode (0 for exact), search mode (-1: last to first). In a sorted table, the first match from the bottom is the newest event.
XLOOKUP is missing in Excel 2016 and 2019. There, use column M, where each key appears only on its last row:
B2 =IFERROR(INDEX(Events!$E$2:$E$1000,MATCH($A2&"|WhatsApp",Events!$M$2:$M$1000,0)),"No record")
C2 and D2 follow the same pattern from columns C and G. COUNTIF and MATCH treat *, ? and ~ in a Contact ID as wildcards, so avoid them. If the latest event is an Opt-out, a blank Wording (or Number) cell shows 0; append &"" to the C2 and D2 formulas. Then:
- E2, does the wording cover campaigns:
=IFERROR(INDEX(Versions!$B$2:$B$20,MATCH(D2,Versions!$A$2:$A$20,0)),"No"). On the “Versions” sheet, A is the version and B is “Yes/No”. - F2, goes on the list:
=IF(AND(B2="Opt-in",E2="Yes"),"Yes","No")
In the example, 246 of the 1,226 people end up with “Yes” in column F, and both routes agree for every person. The 284 rows with an unknown source are not in the log; the formula returns “No record” and keeps them off the list until proof is found. Edge cases tested in the script:
- Opt-in and opt-out on the same day: K-0733 opted in at a trade show at 10:05 and wrote “stop sending” on WhatsApp at 17:30. The opt-out was entered that evening, the trade show form the next morning. Unsorted, both formulas return “Opt-in”; column L flags the trade show row “Out of order”; after sorting, the result is “Opt-out”.
Limits: Excel cannot stop anyone changing or deleting a row, and a list already uploaded to a sending tool does not receive a later opt-out.
When is an Excel log enough, and when does an application start?
What decides it is not the number of contacts but how many places consent comes from and how many people edit the list.
| Route | Enough when | Limit |
|---|---|---|
| Single “Yes” column | Never, where proof is needed | No channel, wording version, opt-out history or proof |
| Excel consent event log | One owner, a few consent sources, a few campaigns a month | Deleted rows leave no trace; no check at send time; İYS registration separate |
| Application to be built | Consent comes from dealers, trade shows and web forms; opt-outs arrive on several channels | Written scope, server, maintenance |
For the Excel log row’s conditions I would not recommend an application. When dealers collect consent, show forms are entered weeks later and opt-outs arrive by WhatsApp, phone and email, Excel’s assumption that nobody changes a row stops holding.
Consent records in the application to be built
In the application to be built, consent is an event record that cannot be deleted, not a cell. The items below are scope that can be built to your needs; the scope is agreed in writing at the first step.
- Consent forms: separate source labels for web, dealer and trade show; wording version tied to the form; no pre-ticked box.
- Opt-outs from any channel: WhatsApp reply, phone note, email; the opt-out row records channel and time, and the opt-in row stays.
- Check at send time: the sending workflow, not a list file, asks for the latest status right before each message; an opt-out received while a message is queued stops it. Template and pricing details of the official Business Platform connection are on the WhatsApp Business API setup page.
- Merging contacts: opt-outs survive when two records for one person are merged; a person approves the merge.
- To-be-verified list: records with an unknown source wait separately and do not enter a campaign until proof is added.
- Registers: sending consent and opt-outs to a national consent register, where one applies, is assessed within the scope.
Roles can be set up like this: the marketing coordinator enters opt-ins and opt-outs but cannot delete rows; a dealer uploads consent forms for its own customers only; a manager approves the campaign list. Who made each change stays in the record change history.
AI suggests, it does not decide: if an incoming WhatsApp message says something like “stop sending”, it can flag a possible opt-out; a person confirms the opt-out row.
The server (VPS) can be opened in your company’s name. Consent and event records are yours and can be exported to Excel or CSV at any time. For small and mid-sized teams there is no per-user licence; the cost is the server and maintenance. Source code sits in a repository you can access, with run instructions, a dependency list and known limits. The general way of working is on the custom web apps for your team page.
The first meeting is paid. If you bring your current consent forms and the column headers of your customer list, we can write the event log fields from there: contact page.
If you are in Turkey
Law No. 6563 (art. 6) requires prior consent for commercial electronic messages, with narrow exceptions (maintenance and use messages; merchants with an opt-out right, art. 6/3). The Regulation on Commercial Communication and Commercial Electronic Messages (Official Gazette 15.07.2015/29417, last amended 28.08.2020/31227) adds that a sender registers with İYS, the national message management system, and recipients without İYS consent cannot be messaged (art. 5/2-3; see also arts. 6/5-6); consent cannot be requested by sending a commercial message (art. 7/4); consent obtained outside İYS is the business’s to prove and must be registered there within three business days (art. 7/10-11), and unregistered consent counts as invalid (art. 7/12). An Excel log does not replace that registration. An opt-out cancels consent for its channel (art. 9/1), sending stops within three business days (art. 10) and consent records are kept three years after consent ends (art. 13/2). Art. 7/6 extends consent given to one party to a dealership or agency agreement to the other, limited to that agreement’s goods, services or brand; under art. 9/2 an opt-out sent to one counts for both and must be passed on. I read the current texts on mevzuat.gov.tr on 01.11.2026; how they apply is for your lawyer.
Points I have not verified
- The formulas were not run in Excel; their logic was imitated and tested in Python. Function names and the argument order of XLOOKUP and MATCH come from Microsoft’s function pages (read 01.11.2026).
- I have not assessed how WhatsApp messages fit any specific national definition of commercial electronic messages; ask your lawyer.
Frequently Asked Questions
If someone only declines campaigns, can I still send service reminders?
In the record I suggest, an opt-out closes the whole WhatsApp channel, because the Meta policy asks businesses to respect requests to stop WhatsApp communication. If the person clearly declines only campaigns, that is a category opt-out, and the key becomes contact × channel × category. Whether a service reminder contains promotion and needs consent is for you and your lawyer to decide.
What do we record when a dealer sends us consent it collected?
The dealer’s name goes in as the source, and the dealer’s form number or scan as proof. Whether consent collected by a dealer covers your business depends on the applicable law and your dealer contract; your lawyer can tell you.
How long is a withdrawn consent kept?
That depends on the law that applies to you; the Turkish rule is in the section above. Because no row is deleted in the log, the opt-out date stays on record; whether the retention clock starts there is for your lawyer.
How do I work?
Work-hour packages
Tell me about your business and what you need on WhatsApp or by phone; we agree on a work block of somewhere between 5 and 40 hours and I start doing what is needed. What you get is not a calendar window: it is net working hours spent directly on your business. I can use 40 hours working three days straight, or deliberately spread it out and finish it over a year: whatever the work calls for. I do not spend my time estimating how long something will take, I spend it doing the work; every hour I spend leaves a lasting result in your business. We keep going for as long as you find it useful.
Why not monthly?
Does a 40-hour block mean one week?
On a fixed monthly fee both sides are watching the wrong thing: you watch a fixed cost, the other side watches how many more contracts like this they can line up. Working by the hour puts us both in front of the same thing: the real value of the work that got done. I know not having an upfront answer to "how much will this cost in total?" is the natural cost of this model. But instead of paying a fixed fee for months to a setup that is not producing results, you only pay for the qualified time spent on your work: and you see exactly where that time went, start to finish. That is why my clients keep coming back.
