Verify your domain with Google Search Console and Meta
Verify your Learnyst site in Google Search Console or Meta: paste the meta tag in Code Snippets and builder Header Code, or add a DNS TXT record.
Google Search Console and Meta ask you to prove that you own your website before they show you its data or let you manage it. The simplest way on Learnyst is to paste the verification meta tag they give you into Code Snippets. If you use your own custom domain, you can verify with a DNS record instead.
Before you start
- Know which address you are verifying: your school's
learnyst.comaddress or your custom domain. To use a custom domain, map it first (see Map your Learnyst school to your own domain). - Custom code is included in every Learnyst plan. See learnyst.com/pricing.
Which method to use
| Method | Works for | Where |
|---|---|---|
| Meta tag (recommended) | Google Search Console URL prefix properties; Meta, if it gives you a meta tag | Learnyst Code Snippets (and the website builder's Header Code) |
| DNS TXT record | Google Search Console Domain properties (required) and Meta | Your domain provider's DNS settings. Only for a domain you own. |
Google: the HTML tag method "Can be used for URL-prefix properties, but not Domain properties", and the DNS record is "required only for Domain property" (Google: Verify your site ownership).
Verify Google Search Console with a meta tag
- In Google Search Console, add a URL prefix property with your school address exactly as learners see it, starting with
https://. - Choose the HTML tag method and copy the meta tag. It looks like this:
<meta name="google-site-verification" content="your-code-from-search-console" />
- In Learnyst, go to Grow > Marketing > Integrations > Code Snippets.
- Click Site Footer Code (or Site Body Code; both load inside the page
<head>). Paste the meta tag on its own line, at the start of the box, and click Save changes. A meta tag doesn't need<script>tags. - If your home page is a website builder page, also paste the tag in Websites & Apps > Website > The all new Learnyst website builder > View Pages > More > Website Settings > Custom Code > Header Code, click Save, and publish your pages again. Google checks your "non-logged-in home page" (Google: Verify your site ownership).
- Back in Search Console, click Verify.


Leave the meta tag in place after you are verified. Google treats removing an owner's HTML tag as a way to unverify that owner (Google: Verify your site ownership).
After verifying, submit your sitemap in Search Console. To create it, see Generate a sitemap.xml and add it to your school SEO settings. You can also link Search Console to GA4 (Google: Connect Search Console to Google Analytics).
Verify your domain with Meta
Meta domain verification proves you own the domain your ads link to. Start in your Meta business portfolio and follow Meta's guide (Meta: Verify Your Domain from your business portfolio). Meta's developer documentation describes verifying through a DNS TXT record or an HTML file uploaded to your site's root folder (Meta: Domain Verification).
- If Meta gives you a meta tag (
<meta name="facebook-domain-verification" content="..." />), paste it in Learnyst the same way as the Google tag above: Site Footer Code or Site Body Code, plus the website builder's Header Code if your home page is a builder page. Then click Verify in Meta. - If you use your own domain, the DNS TXT record is usually the simplest choice; see below.
Verify with a DNS TXT record (custom domains)
- In Search Console, add a Domain property (for example
myschool.com), or in Meta choose the DNS option. Copy the TXT record value. - Sign in to the company where you manage your domain's DNS (where you mapped your custom domain), and add a new TXT record with that value.
- Go back to Google or Meta and click Verify. DNS changes can take time to apply, so if it fails, try again later.
Google: "To stay verified, don't remove the DNS record from your provider, even after verification succeeds." A Domain property also covers all subdomains and both http and https (Google: Verify your site ownership).
Common mistakes
- Wrong property type: trying the HTML tag on a Search Console Domain property. Use DNS for Domain properties, or add a URL prefix property.
- Address mismatch: verifying
https://www.myschool.comwhen learners usehttps://myschool.com, or the reverse. Use the exact address. - Tag only in Code Snippets when the home page is a builder page, or not publishing the builder pages again after adding it.
- Tag wrapped in
<script>tags or pasted inside another script. Paste the meta tag on its own line. - Removing the tag or TXT record after verifying, which can unverify you later.
- Trying DNS for a
learnyst.comaddress. You can only add DNS records to a domain you own; use the meta tag method instead.
If it doesn't work
- Google says the tag wasn't found: open your home page in a private window, view the page source and search for
google-site-verification. If it's missing, check that you clicked Save changes, and add the tag to the website builder's Header Code if your home page is a builder page. - The tag is found but verification fails: check that the content value matches the one Search Console shows now. If you started over, Google gives a new value.
- Meta tag method doesn't work or isn't offered: use the DNS TXT record on your custom domain.
What to do next
- Add tracking code to your Learnyst website
- Generate a sitemap.xml for your school
- Set up the Meta Pixel
- Tracking best practices for GA4, Google Tag Manager and Meta Pixel
If you have questions, contact us at support@learnyst.com.