Mini program development//43 min read/航辰启星工程团队

Collecting User Data in a WeChat Mini Program: Privacy Guidelines Setup and a Compliance Checklist

Compliant data collection in a WeChat Mini Program comes down to three things: declaring every information type in the backend privacy guidelines, getting explicit consent before the user triggers the related feature, and declaring collection truthfully at review submission. Since 17 October 2023, the platform disables features whose information type is undeclared. Includes a feature-to-declaration table, fixes for three common violations, phone-number verification pricing, and a pre-launch checklist.

Collecting User Data in a WeChat Mini Program: Privacy Guidelines Setup and a Compliance Checklist

Compliant data collection in a WeChat Mini Program comes down to three things: declaring every information type you collect in the backend User Privacy Protection Guidelines, obtaining explicit consent through a popup before the user actually triggers the related feature, and stating truthfully at review submission whether the Mini Program collects personal data. Under the announcement published by the WeChat Official Accounts Platform in August 2023 and the official development guide, privacy checks have been mandatory since 17 October 2023 (originally 15 September 2023, postponed by the platform): features tied to undeclared information types are disabled outright, and calls also fail when the user has not agreed to the privacy policy — for Mini Programs that did not adapt their code, the platform shows its official consent popup automatically. This article gives a feature-to-declaration table, fixes for three common violations, phone-number verification pricing, and a pre-launch self-check checklist.

1. What the rules actually say: one timeline and three hard requirements

Three privacy checks: declare data use, get explicit consent, and submit accurately


The rules originate from the Announcement on Configuring Mini Program Privacy Protection Guidelines published by the WeChat Official Accounts Platform in August 2023. It requires developers of Mini Programs that handle personal information to report to WeChat that the user has read and agreed to the privacy guidelines before calling WeChat's privacy-related features. The official Mini Program Privacy Policy Development Guide records two key updates: the APIs opened for debugging on 22 August 2023, and on 14 September 2023 the platform postponed enforcement from 15 September to 17 October 2023 and added an official privacy consent popup. In other words, for any Mini Program launched or updated after 17 October 2023, privacy checks apply whether or not the code was adapted: adapted apps use their own popup, while unadapted ones get the platform's official consent popup on the first privacy-related call; if the user declines, calls made again within 10 seconds return a rejection error without another popup.

Broken down, there are three hard requirements; missing any one disables the related feature:

Hard requirement What it means Consequence if unmet
Backend declaration Declare each information type and its purpose in the User Privacy Protection Guidelines Undeclared information types are disabled outright by the platform
Explicit consent Before the user actually triggers the related feature, show a popup prompting them to read and agree to the privacy policy Without user consent, calls to the related features fail
Truthful review declaration At code review submission, truthfully state whether the Mini Program collects personal data in the User Privacy Protection Settings section A mismatch blocks review; already-live interface permissions may be revoked

One commonly misdiagnosed case: an older Mini Program whose code has not changed for months suddenly gets reports that authorization login does nothing. Usually the code is not at fault — platform-side enforcement or a missing declaration is. The official development guide lists two typical errors: one says the privacy type for that feature is not declared in the guidelines (a supplementary declaration takes effect in about 5 minutes); the other occurs when the developer selected "no privacy collection" at submission, or never declared the privacy policy, and the platform revoked the interface permission. For both, check the backend declaration and the submission option before checking the code.

2. Which features count as collecting user information: the mapping table

WeChat Mini Program features mapped to privacy disclosures


The test is not "whether I think it is private" but the mapping published in the official Introduction to Mini Program User Privacy Protection Guidelines: whenever a feature in the table is used, the corresponding information type must be declared. WeChat also auto-lists mandatory declarations based on the features the submitted version actually calls. Here are the most common cases in business projects:

Feature in the Mini Program Information type to declare
One-tap phone number retrieval (login/binding) Collecting your phone number
Nickname entry, avatar upload Collecting your nickname and avatar
Location, nearby stores, delivery range Collecting your location / Collecting your chosen location
Shipping address, invoicing Collecting your address / Collecting your invoice information
Image upload, video selection, file transfer Collecting your selected photos or videos / Collecting your selected files
Voice messages, video calls, camera capture Accessing your microphone / Accessing your camera
Saving images or videos to the album, writing contacts or calendar entries Using your album (write-only) permission / Using your contacts (write-only) permission / Using your calendar (write-only) permission
Reading the clipboard (token recognition, etc.) Reading your clipboard
Bluetooth device connection, step count Accessing your Bluetooth / Collecting your WeRun step count

Two supplementary rules. First, information collected through custom forms (for example, asking users to type their name and phone number) must also be declared: in replies to similar review cases, the platform directs developers to add a custom information type in the guidelines and state its purpose, so "we did not call a WeChat feature" is not an exemption. Second, the guidelines must also state the purpose of use, the retention period, and contact details; the platform reviews whether the stated purpose is genuine. Empty phrases like "to improve user experience" will not pass; write concrete purposes such as "to contact you about order delivery".

3. Three common violations: the fixes named by the platform

Three common consent mistakes and what to do instead


In its rules on non-compliant collection of user privacy (published in the developer community as the Code of Conduct and Rectification Guide for Collecting User Privacy), the WeChat Official Accounts Platform names three common violations, each with cases and fixes. These are also common reasons for review rejection and live capability bans:

  • Implied consent. A pre-ticked checkbox, "logging in means you agree", or a popup with only an Agree button all count as violations. Fix: provide explicit Agree and Decline options, or let the user tick the box themselves; never pre-tick it.
  • Requesting authorization before the user experiences the feature. Triggering an authorization popup on launch, chaining multiple authorization dialogs, or forcing login on the home page all count as violations. Fix: show the full feature pages first, and request authorization only when the user actually uses the corresponding feature; never demand consent to all permissions at once. Mini Programs intended for specific personnel only must display a clear usage-scope note on the home page.
  • Refusing service when authorization is declined. Where the information is not essential to the service or there is no reasonable use case, exiting the Mini Program or showing an undismissable authorization dialog after the user declines counts as forced authorization. Fix: declining one authorization may suspend only the related feature; everything else must remain usable.

The platform's stated response is graduated bans on the related capabilities, scaled to the severity of the violation. In other words, this is not a formality to fix at submission time; live Mini Programs are subject to the same handling. For companies commissioning development, these three rules belong in the acceptance criteria: authorization timing and post-decline behavior should be tested on a real device before sign-off.

4. Phone-number verification: compliance plus a running cost

Phone verification outcomes and the pre-launch allowance check


One-tap phone number retrieval is the most common login method in business Mini Programs, and it is governed by both privacy rules and pricing rules. Per the official Phone Number Quick Verification Component documentation: the capability is open only to Mini Programs registered under non-personal entities that have completed WeChat verification; since 28 August 2023 it is charged at CNY 0.03 per successful quick-verification call and CNY 0.04 per successful real-time verification call; each account gets a 1,000-call trial quota shared across release, trial, and development versions. Once the quota runs out and no resource pack has been purchased, users see "this feature has reached the current Mini Program's usage limit and is temporarily unavailable" — which looks exactly like "login suddenly stopped working".

Item Official rule
Availability Mini Programs under non-personal entities that have completed WeChat verification
Quick verification price CNY 0.03 per successful call (since 28 August 2023)
Real-time verification price CNY 0.04 per successful call (since 28 August 2023)
Trial quota 1,000 calls per account, shared across three versions; trial quota is consumed before resource packs
Free entities Government and non-profit organizations; public institutions with government/livelihood categories; public medical institutions and academic-education (school) categories
Billing point Charged when the user consents and the phone number is successfully returned; no charge if the user declines

Two practical suggestions for businesses. First, budget this cost: at roughly 1,000 successful phone-number retrievals per month, quick verification costs about CNY 30/month; higher-volume projects should buy resource packs in advance and watch expiry dates, since unused quota expires with the pack. Second, you are not locked into this component: the platform leaves the choice to developers based on their business scenario, and SMS codes or user-entered numbers are allowed alternatives, with SMS costs borne by you. Trigger the phone-number request only when the user genuinely needs to log in; that satisfies the "no authorization before experience" rule and saves calls at the same time.

5. Pre-launch self-check checklist

Pre-launch checklist: disclosures, consent, refusal behavior, and submission


The checklist below is ordered "declare first, then consent, then submit". Work through it item by item before submitting. Items involving development work can be handed to the development team as-is.

  1. Has data collection been assessed? Using the table in section 2, list every information type the Mini Program actually uses, including custom-form collection.
  2. Is every type declared in the backend guidelines? Under Account Settings – Service Content Declaration – User Privacy Protection Guidelines, each type states a concrete purpose, with no mandatory item missing; if submission is blocked, update the guidelines on the information page under Version Management – Submit Code Review.
  3. Are retention period and contact details filled in? The retention period and the contact channel for users to exercise access/deletion rights must be real and valid.
  4. Does the privacy popup trigger before use? On the user's first trigger of a related feature, show the privacy policy prompt with explicit Agree and Decline options, never pre-ticked.
  5. Does declining degrade gracefully? Declining one authorization affects only the related feature; everything else stays usable, with no undismissable dialog.
  6. Is authorization timing reasonable? No forced login on launch, no bulk permission requests; Mini Programs for specific personnel show a scope note on the home page.
  7. Is the review declaration truthful? User Privacy Protection Settings at submission matches reality, and the guidelines match what the code actually calls.
  8. Is the phone-number quota sufficient? Check remaining trial quota, whether a resource pack is purchased, its expiry, and whether a fallback message exists for quota exhaustion.
  9. Are third-party plugins and agency development disclosed? Plugin and agency-developer information appears in the guidelines; confirm their processing behavior is truthfully disclosed.
  10. Has the full flow been tested on a real device? As a fresh user (after clearing authorization data), click through login, upload, and location paths to confirm popup, decline, and degradation behavior all match expectations.

6. Our approach

We build custom WeChat Mini Programs and treat privacy compliance as part of delivery: at scoping we map the feature list to the information types that need to be collected; during development we build the privacy popup and graceful degradation after a decline into the interaction; before submission we reconcile guideline declarations against actual code calls item by item; at acceptance we walk the authorization and decline paths on a real device. The full development-to-launch process is in the Mini Program development process; if you are still deciding between a Mini Program and other product forms, see how to choose a product form.

We do not promise "your capabilities will never be banned" — the platform judges actual behavior, and rules change. What we do promise: declarations match reality, authorization timing is compliant, declining degrades gracefully, and all three are written into the acceptance criteria. If an external team delivers the project, see how to accept outsourced work and software contract essentials for what privacy-compliance materials to collect and where to draw the boundaries.

Our Mini Program and enterprise-system development services are listed under custom development and system integration. If your Mini Program is hitting "authorization does nothing" or "login suddenly fails", bring the error screenshots and your backend guideline configuration, and let's talk about your project.

The platform rules cited in this article were verified in December 2026. WeChat's privacy and pricing rules change frequently; before submitting, defer to the actual requirements in the WeChat Official Accounts Platform backend and the latest official documentation.

FAQ

If my Mini Program collects no user information, do I still need the privacy guidelines?

If you use no features involving personal information and collect nothing through forms either, you may skip it. But the moment you use phone-number retrieval, location, album, microphone, or any similar feature, or ask users to type their name and phone number, you must declare the corresponding information types in the backend guidelines, or the platform disables those features. The test is the official mapping table, not subjective judgment.

My old Mini Program's code has not changed — why did authorization login suddenly stop working?

Three common causes: privacy enforcement became mandatory on 17 October 2023 and undeclared information types are disabled; the guidelines were updated with new information types and consent was never re-synced, so the newly added interfaces fail; or the phone-number component's 1,000-call trial quota ran out with no resource pack purchased. Check the backend declaration and submission option first, then the quota, then the code.

Can the privacy popup have only an Agree button?

No. The platform explicitly lists "popup with only an Agree option", "pre-ticked checkbox", and "logging in means you agree" as implied-consent violations. The compliant approach is explicit Agree and Decline options, or a user-ticked checkbox. After a decline, only the related feature may be suspended; everything else stays usable — no exiting or forced dialogs.

Why is phone-number retrieval charged, and can I avoid it?

Official rule: since 28 August 2023, the quick verification component costs CNY 0.03 per successful call and real-time verification CNY 0.04, with a 1,000-call trial quota per account. The platform leaves the choice to developers; SMS codes or user-entered numbers are allowed, with SMS costs borne by you. Government, non-profit, and certain other entities follow the official free rules.

What happens if I select the wrong option under User Privacy Protection Settings at submission?

Selecting "no privacy collection" while the code actually collects data — or having guidelines that do not match the code's calls — will block review; live Mini Programs may also have interface permissions revoked, which shows up as features suddenly failing. The fix is to add or correct the declaration in the backend (a supplementary declaration takes effect in about 5 minutes; if submission was blocked, update it on the information page under Version Management – Submit Code Review) and resubmit with the truthful collection status.

How should the Mini Program behave after a user declines authorization?

Per the official rectification guide: where the information is not essential to the service, declining one authorization may suspend the related feature, but unrelated features must remain usable; the Mini Program must not auto-exit, close, or show an undismissable authorization dialog forcing consent. In development, design a fallback path for every authorization point, and write "still usable after decline" into the acceptance test cases.

NEXT STEP

Talk to us about your project

Tell us what you need, when you need it, and which systems are involved. We reply within one business day with a scope assessment before any quote.