TikTok Ads Manager: Verifying Domains with TXT Records
Verifying your website ownership on TikTok Ads Manager using a TXT record proves to TikTok that you own the domain, which is essential for tracking events and running effective conversion campaigns. To complete this, you simply need to add a unique verification string provided by TikTok into your domain's DNS settings as a TXT record. Before making changes to your live DNS zone, you can use the TXT Lookup tool on XiaTools to verify your existing DNS propagation status and confirm your records are publicly visible.
Understanding TikTok Domain Verification
When you set up a TikTok Business Center or Ads Manager account, verifying your domain unlocks critical advertising features. Without domain verification, you may face limitations regarding event tracking, aggregated event measurement, and custom audience creation due to modern privacy constraints.
TikTok offers a few ways to verify ownership: uploading an HTML file to your root directory, adding a meta tag to your website's header, or creating a DNS TXT record. The DNS TXT record method is often preferred by network administrators and developers because it does not require modifying website code, installing plugins, or uploading files to your web server. It operates purely at the infrastructure level.
How DNS TXT Records Work for Verification
A TXT (Text) record is a type of resource record in the Domain Name System that allows domain administrators to associate arbitrary text text strings with a host. When TikTok attempts to verify your domain, its automated systems query the public DNS for your domain name, looking specifically for a TXT record containing a unique verification string that resembles tiktok-domain-verification=123456789abcdef. If the string matches what is generated in your Ads Manager dashboard, verification succeeds instantly.
Step-by-Step Guide to Adding a TikTok TXT Record
Completing the verification process involves generating the code inside TikTok Ads Manager, creating the record at your DNS provider, and triggering the verification check. While menu paths vary by provider, the underlying DNS concepts remain identical.
Step 1: Obtain Your Verification Code
- Log into your TikTok Ads Manager or Business Center account.
- Navigate to Tools and select Events.
- Choose Web Events and click on your pixel or data source.
- Go to the Settings tab and scroll down to the Domain Verification section.
- Click Verify Domain, enter your domain name (e.g.,
example.com), and select the DNS TXT verification method. - Copy the exact TXT record value provided by TikTok, which will look similar to
tiktok-domain-verification=ab78cd34ef56....
Step 2: Add the Record to Your DNS Provider
Log into the registrar or DNS hosting provider where your domain's nameservers are managed. Note that menu paths may differ slightly depending on your host.
| DNS Field | Value to Enter | Notes |
|---|---|---|
| Type | TXT |
Select TXT from the record type dropdown. |
| Host / Name | @ or leave blank |
Represents your root domain (example.com). Some providers require your full domain name. |
| Value / Target | tiktok-domain-verification=... |
Paste the exact string copied from TikTok Ads Manager. |
| TTL | Automatic or 3600 |
Lower TTL helps speed up propagation, but standard settings are fine. |
Here is an example of what your zone file entry will look like in standard BIND format:
example.com. 3600 IN TXT "tiktok-domain-verification=ab78cd34ef56789"
Step 3: Verify and Troubleshoot Propagation
DNS changes do not always update globally at the exact same second. Global propagation can take anywhere from a few minutes up to 24 hours, depending on your TTL settings and DNS provider caching.
You can query your newly created record from your local terminal using standard command-line tools to ensure it is returning the correct string before clicking verify in TikTok.
Using dig on Linux or macOS:
dig TXT example.com +short
Using nslookup on Windows PowerShell:
Resolve-DnsName -Name example.com -Type TXT
Expected sample output from a successful query:
"tiktok-domain-verification=ab78cd34ef56789"
Once the command-line query returns your TikTok verification string, return to TikTok Ads Manager and click the Verify button. Your domain status will switch from unverified to verified.
Common Mistakes and How to Fix Them
Even experienced engineers occasionally run into snags during domain validation. Review these common pitfalls if your verification fails:
- Incorrect Hostname Assignment: Entering
tiktok.example.comor adding extra characters into the host field instead of using@or leaving it blank for the root domain. Always ensure the record is attached to the exact apex domain or subdomain you registered in TikTok. - Quotation Marks in the Value Field: Some DNS control panels automatically wrap TXT values in quotes, while others require you to omit them. If your verification fails, check whether your provider added double quotes internally or if you duplicated them.
- Verifying Subdomains vs. Root Domains: If you registered
shop.example.comin TikTok Ads Manager, your TXT record must be placed on theshopsubdomain, not the rootexample.comdomain. - Aggressive DNS Caching: If you recently migrated DNS hosts, old nameservers might still be serving cached records. Check your local lookup against public DNS resolvers like Google (8.8.8.8) or Cloudflare (1.1.1.1).
Domain Verification Checklist
- Copied the exact verification string from TikTok Ads Manager.
- Logged into your authoritative DNS provider.
- Created a new
TXTrecord with typeTXT. - Configured the correct host (
@for root or specific subdomain). - Pasted the verification string accurately without extra spaces.
- Confirmed propagation using a command-line tool or online lookup.
- Clicked Verify inside TikTok Ads Manager.
By following these precise steps and ensuring your DNS records are correctly propagated, your TikTok Ads domain verification will complete smoothly, allowing you to run optimized ad campaigns without tracking interruptions.