A WeChat website integration connects fewer things than the phrase suggests. WeChat (微信) lets a brand own two properties inside the app, an account and a Mini Program, and both live on Tencent’s platform. Three things cross over to your website: one login that recognises the same person everywhere, your web pages opening inside WeChat, and links from one property to another. All three depend on one thing: a domain with an ICP filing (ICP备案).
Your website stays the property you control outright, code and hosting included. The account and the Mini Program talk to it only through domains you register with WeChat. Everything below comes from WeChat’s own developer documentation and from China’s Ministry of Industry and Information Technology (工信部), read on 5 November 2026.
| Property | Where it runs | What it needs from your website | How it knows a user |
|---|---|---|---|
| Official Account (公众号) | Inside WeChat: articles, a chat thread | Nothing, unless its menu links to your pages | An openid for that account |
| Service Account (服务号) | Inside WeChat, plus your pages in it | An ICP-filed domain for login and the JS-SDK | An openid for that account |
| Mini Program (小程序) | Inside WeChat, in its own framework | ICP-filed HTTPS domains for data and pages | An openid for that program |
| Your website | Any browser, in or out of WeChat | Its own ICP filing and mainland hosting | Your logins, plus WeChat |
Three properties, one brand, and who owns each account
A brand that takes WeChat seriously ends up with three properties: an account, a Mini Program and the website it already had. WeChat’s developer documentation now lists the account in two kinds, the Official Account (公众号) and the Service Account (服务号). The difference matters for your website, because only one of them can sign visitors in on your pages.
Each property is registered on its own and gets its own ID. To WeChat, a follower of your account and a user of your Mini Program are two strangers with two different openids. What ties them together is a fourth account that rarely comes up until a developer asks for it: the Weixin Open Platform (微信开放平台) account.
Website applications, mobile apps, Mini Programs, Official Accounts and Service Accounts bound to the same Open Platform account share one unionid per user. The openid differs from app to app. Source: Weixin Open Platform (微信开放平台), last edited 19 March 2026. https://developers.weixin.qq.com/doc/oplatform/open/intro
Ownership matters here, because the binding is exclusive.
“一个公众号/小程序账号只可以绑定在一个开放平台账号下”: an Official Account or a Mini Program can be bound to one Open Platform account only (our translation). Source: Weixin Open Platform (微信开放平台), account management, last edited 4 July 2026. https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/product/Open_Platform_Account_Management
So register the Open Platform account under your own company, with your own administrator, before anyone builds anything. If a contractor (an agency like ours included) opens it under its own name, the key to your user records sits in an account you don’t hold. Ask who holds it at the first meeting.
What an Official Account replaces
For readers in China, we treat the Official Account (公众号) as your newsletter and part of your blog. Articles publish inside WeChat, and a menu at the foot of the account can send people to your pages.
What it can’t do is sign those people in on your website. WeChat keeps web login inside its own browser for one account type.
Web authorisation is available to verified Service Accounts (已认证的服务号); other account types, Mini Programs and website applications cannot use it. Verified government and media accounts are the exception. Source: WeChat Service Account documentation (服务号), last edited 4 July 2026. https://developers.weixin.qq.com/doc/service/guide/h5/auth.html
The same goes for the JS-SDK, the toolkit that lets a page opened inside WeChat set its own share card or call the phone’s scanner and location. WeChat describes it as a toolkit for web pages inside WeChat, and ties it to domains you list in the account settings.
The JS-SDK is bound to up to five “JS secure domains” (JS接口安全域名), with no IP addresses or ports, and each domain must pass ICP filing verification. Source: WeChat Service Account documentation (服务号), JS-SDK, last edited 4 July 2026. https://developers.weixin.qq.com/doc/service/guide/h5/jssdk.html
For publishing, the Official Account does the job. Pages that need to know who’s reading them inside WeChat need more: a verified Service Account and a filed domain. “Verified” means WeChat certification (微信认证), and WeChat’s own table says the qualification half of that check is the part that grants the interfaces. The Chinese copy itself is its own job, covered in our China website localisation guide.
Mini Program or mobile web: where the line sits
A Mini Program (小程序) is a separate application. Its pages are written in WeChat’s WXML templates and WXSS styles, with JavaScript for the logic, and they run inside WeChat. Your mobile site’s HTML and CSS don’t carry over. The page layer gets built again.
Mini Program code is made of JSON configuration, WXML templates, WXSS styles and JavaScript logic. Source: WeChat Mini Program documentation (小程序), framework guide, last edited 10 September 2026. https://developers.weixin.qq.com/miniprogram/dev/framework/
What can carry over is everything behind the pages. A Mini Program fetches data only from server domains registered in advance, over HTTPS, and each of those domains must be ICP-filed. If your website already serves an API from a filed domain, the Mini Program can call it.
A Mini Program can only communicate with server domains set in advance. They must use HTTPS, cannot be IP addresses or localhost, and “域名必须经过 ICP 备案” (the domain must have an ICP filing). Source: WeChat Mini Program documentation (小程序), network, last edited 21 August 2026. https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html
It can also show your web pages directly, through a component called web-view, provided the pages sit on a business domain (业务域名) you register. Same rule again.
Business domains for web-view pages must use HTTPS and “需经过ICP备案” (must have an ICP filing). Source: WeChat Mini Program documentation (小程序), business domain, last edited 23 July 2026. https://developers.weixin.qq.com/miniprogram/dev/framework/ability/domain.html
A Mini Program, then, replaces your mobile site for people who reach you through WeChat: a QR code on a box, a link in an article, a share in a group chat. Search traffic and anyone outside the app still land on the website.
There’s a lighter option than a Mini Program: your mobile site itself, opened in WeChat’s browser from the account menu, with a verified Service Account adding login and share cards. Design rules for pages opened in WeChat’s browser are in our guide to mobile-first design in China. Who builds a Mini Program, and what goes into one, is on our WeChat page.
WeChat login on your own website
WeChat login does the job Google sign-in does on sites elsewhere. It runs on two separate paths, and a site that wants it everywhere needs both.
On a desktop browser, login goes through a website application (网站应用) on the Open Platform (微信开放平台). You open a developer account, get the application approved, then apply for WeChat Login and pass that review too. The login page shows a QR code. The visitor scans it with WeChat on their phone and comes back to your site with a code that your server trades for a token.
Before integrating, register a developer account on the Open Platform and hold an approved website application with its AppID and AppSecret, then apply for WeChat Login and pass review. Website applications use only scope=snsapi_login, and the redirect domain must match the one given at review. Source: Weixin Open Platform (微信开放平台), website login guide, last edited 25 June 2026. https://developers.weixin.qq.com/doc/oplatform/Website_App/WeChat_Login/Wechat_Login.html
Inside WeChat’s own browser, the same page signs people in through the verified Service Account instead. It asks either silently (snsapi_base, which returns only the openid) or with a prompt (snsapi_userinfo, which adds the nickname and avatar). The callback has to land on the domain set in the account.
Web authorisation offers two scopes: snsapi_base, with no prompt and only the openid, and snsapi_userinfo, with a prompt and the user’s profile, even if they don’t follow the account. Since 20 October 2021 the profile no longer returns gender or region. Source: WeChat Service Account documentation (服务号), last edited 4 July 2026. https://developers.weixin.qq.com/doc/service/guide/h5/auth.html
That gives you two openids for one person. The unionid joins them, as long as the website application and the Service Account sit under the same Open Platform account.
For apps under the same Open Platform account, a user’s unionid is the same. WeChat advises developers to store it so user information can be matched across apps. Source: Weixin Open Platform (微信开放平台), UnionID, last edited 25 June 2026. https://developers.weixin.qq.com/doc/oplatform/Website_App/WeChat_Login/Authorized_Interface_Calling_UnionID.html
Make the unionid the key in your user table, and every property you bind can recognise the same customer.
Sharing, and what changes when a link leaves WeChat
Paste a link to your page into a WeChat chat and it shows as a card. Your
page can set the card’s title and image, plus a line of description,
through the JS-SDK’s share interfaces, wx.updateAppMessageShareData and
wx.updateTimelineShareData. That control comes with conditions.
The JS-SDK share interface is available to verified subscription accounts and verified Service Accounts. Unverified accounts of either type do not have it. Passing the qualification part of WeChat certification is enough to get the interfaces. Source: WeChat Service Account documentation (服务号), JS-SDK permission table, last edited 4 July 2026. https://developers.weixin.qq.com/doc/service/guide/h5/jssdk.html
Copy the same URL into an email or open it in Safari and the WeChat layer disappears. The JS-SDK and the Service Account login stop working, and the page behaves like any other. So build every page to work without WeChat, then add the WeChat features on top for visitors inside the app.
Mini Programs go the other way. A Mini Program page has no ordinary web
address. To send someone there from an email or a text message, your server
generates a URL Link, which opens the Mini Program in WeChat. Outside the
app it goes through an official landing page first, and only published
Mini Programs registered to an organisation can make one. From your own
pages inside WeChat, a verified Service Account can add a button,
wx-open-launch-weapp, on pages under its JS secure domain.
URL Link opens a Mini Program page from text messages, email, web pages and inside WeChat. It works only for published Mini Programs and is open to non-individual Mini Programs. Opened outside WeChat, it goes through an official H5 page by default. Source: WeChat Mini Program documentation (小程序), URL Link, last edited 16 June 2026. https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/url-link.html
The wx-open-launch-weapp tag is available to verified Service Accounts on pages under their JS secure domain, and to verified non-individual Mini Programs on their cloud static hosting domain. Source: WeChat Service Account documentation (服务号), open tags, last edited 7 July 2026. https://developers.weixin.qq.com/doc/service/guide/h5/opentag.html
What a WeChat website integration builds twice
The short list of duplicated work is mostly front end and registration. Data and content can sit in one place, and so can the customer record.
| Piece | Shared across site and WeChat | Built separately | The rule behind it |
|---|---|---|---|
| API and database | Yes, on an ICP-filed HTTPS domain | No | Mini Program server domains |
| Content pages | Yes, shown in a Mini Program through web-view | No | Business domains, ICP-filed |
| Page templates and styling | No | HTML and CSS, then WXML and WXSS again | Mini Program framework |
| Login registration | No | A website app for desktop, a Service Account | Two login paths |
| Customer identity | One unionid, if all sit under one Open Platform | No | UnionID binding |
| Filing paperwork | Identity documents, filed once | The Mini Program’s own app filing | MIIT notice 105 of 2023 |
The front end is where the hours go. A Mini Program that shows web-view pages for everything saves the rebuild, and ends up as a frame around your website. We’d split it: pages people use often rebuilt in WXML, policy and article pages shown through web-view.
There’s one trap in the shared column. A page your Mini Program or Service Account opens is still your page, loading on a mainland connection. Whatever it embeds has to load in China too.
GreatFire read https://www.youtube.com as blocked, 100% of the last 5 conclusive tests failed in mainland China, last tested 1 November 2026, and https://www.instagram.com as blocked, 100% of the last 2 conclusive tests, last tested 3 October 2026. Source: GreatFire, November 2026. https://en.greatfire.org/https/www.youtube.com and https://en.greatfire.org/https/www.instagram.com
Swap a YouTube embed for Tencent Video (腾讯视频) or Bilibili (哔哩哔哩) before the page goes into WeChat, and drop the Instagram widget.
The website side: entity, filing and hosting still apply
Every bridge above runs through a domain with an ICP filing (ICP备案): the login callback, the JS secure domain, the Mini Program’s server and business domains. That filing belongs to your website, and WeChat doesn’t do it for you.
The filing itself needs a mainland company or a mainland resident as the filing entity, and a mainland server. On Alibaba Cloud (阿里云), that means an aliyun.com account rather than the international alibabacloud.com one, and a server bought for at least three months.
alibabacloud.com accounts do not support ICP filing applications. Filing needs an aliyun.com account and a filing entity that is an enterprise registered in the Chinese mainland or a mainland resident. Source: Alibaba Cloud (阿里云) help centre, 20 August 2026. https://help.aliyun.com/en/icp-filing/basic-icp-service/product-overview/icp-filing-application-for-enterprises-outside-the-chinese-mainland
The filing is made against a mainland ECS instance or Simple Application Server on a subscription of three months or longer. Source: Alibaba Cloud (阿里云) help centre, 4 November 2026. https://help.aliyun.com/en/icp-filing/basic-icp-service/user-guide/icp-filing-server-access-information-check
The site stays closed while its first filing is reviewed.
A first filing and a new-site filing require the website to stay inaccessible during review. Source: Tencent Cloud (腾讯云), ICP filing review FAQ, 21 August 2026. https://cloud.tencent.com/document/product/243/19650
Alibaba Cloud publishes its own timings for that review. They’re the only timings in this piece, because WeChat publishes no review times we could source.
Alibaba Cloud’s initial review takes 1 to 2 working days and the provincial Communications Administration (省级通信管理局) review generally 1 to 20 working days. The public security filing (公安备案) is due within 30 days of the site opening. Source: Alibaba Cloud (阿里云), ICP filing overview, 26 August 2026. https://help.aliyun.com/zh/icp-filing/basic-icp-service/user-guide/icp-filing-application-overview
We plan three to six weeks, assuming the mainland entity already exists. The Mini Program then files as an app. A company that already holds a website filing doesn’t resubmit its identity, it only adds the app’s details.
Apps, including Mini Programs and quick apps, file with the provincial Communications Administration before they start operating. An operator that already holds a website filing only adds the app’s information and does not resubmit its identity details. Source: Ministry of Industry and Information Technology (工信部), notice 工信部信管〔2023〕105号, 21 July 2023, published 4 August 2023. https://www.miit.gov.cn/zwgk/zcwj/wjfb/tz/art/2023/art_920db564162e4312916a01bed6540ad8.html
Whoever builds the WeChat side, the filing and the hosting stay with the website and with the web agency in China that runs it.
WeChat and your website: common questions
Do we need a Mini Program if we already have a mobile site?
A Mini Program (小程序) earns its place only if people reach you inside WeChat and you want them to stay there, from QR codes on packaging or shares in group chats. It rebuilds the page layer in WeChat’s framework. If most of your visitors arrive from search or from outside China, the mobile site already does the job.
Can the website and the Mini Program share one customer account?
Yes, through the unionid. Bind the Mini Program, the Service Account and the website application to one Open Platform account, and WeChat gives the same person the same unionid in each. Store it as the key in your own user table. Without the binding, you get a separate openid per property and no way to match them.
Does WeChat login work when someone opens our site outside WeChat?
On a computer, yes (WeChat documents the QR flow for PC): the visitor scans a QR code with WeChat on their phone, once you’ve registered a website application on the Open Platform. The Service Account login and the JS-SDK work only inside WeChat’s own browser. Build each page so it works without either, and treat the WeChat features as a layer for visitors inside the app.
Who should own the Open Platform account?
Your company, with your own administrator. An Official Account or a Mini Program can be bound to one Open Platform account only, and that account holds the link between your user records. If a contractor has already registered it, have it moved into your name before any login work starts.
Need help with this?
ChinaWebFoundry handles WordPress projects in China end to end. If any of this feels like more than you want to tackle alone, get in touch.
Talk to Us