← Back to Schema

How to add schema to your website

Schema markup is a small piece of code that tells Google and AI assistants exactly what your business does. It takes about 5 minutes to add. Follow the guide for your platform below.

Why this matters

Without schema, Google and AI tools like ChatGPT and Perplexity have to guess what your business does. With it, they read your name, location, services, and phone number directly — making it far more likely you get cited in AI-generated answers.

WordPress

  1. 1

    Copy your schema code

    Go to your CitedBy Schema page, click "Copy code", and keep it ready.

  2. 2

    Install a header/footer plugin

    In your WordPress dashboard go to Plugins → Add New and search for "Insert Headers and Footers" by WPBeginner. Install and activate it.

  3. 3

    Paste into the header

    Go to Settings → Insert Headers and Footers. In the "Scripts in Header" box, paste your schema code wrapped in a <script> tag:

    <script type="application/ld+json">
    [paste your schema code here]
    </script>
  4. 4

    Save and verify

    Click Save. Then visit Google's Rich Results Test and enter your homepage URL to confirm the schema is detected.

    Open Rich Results Test

Wix

  1. 1

    Copy your schema code

    Go to your CitedBy Schema page, click "Copy code", and keep it ready.

  2. 2

    Open the Custom Code panel

    In your Wix dashboard go to Settings → Custom Code (under the Advanced section).

  3. 3

    Add a new code snippet

    Click "Add Custom Code". Paste your schema code wrapped in a <script> tag. Set "Add Code to Pages" to All Pages, placement to Head, and name it "CitedBy Schema".

    <script type="application/ld+json">
    [paste your schema code here]
    </script>
  4. 4

    Apply and publish

    Click Apply, then publish your site. Use the Rich Results Test to verify.

    Open Rich Results Test

Squarespace

  1. 1

    Copy your schema code

    Go to your CitedBy Schema page, click "Copy code", and keep it ready.

  2. 2

    Open Code Injection

    In your Squarespace dashboard click "Website" → "Pages", then scroll the left menu to "Custom Code" → "Code Injection". (Other menus: Settings → Developer Tools, or Settings → Advanced. Can't use it? Code Injection needs Squarespace's Business/Core plan or higher — Personal and Basic don't include it.)

  3. 3

    Paste into the Header

    Paste your schema code wrapped in a <script> tag into the Header box.

    <script type="application/ld+json">
    [paste your schema code here]
    </script>
  4. 4

    Save and verify

    Click Save. Then use the Rich Results Test to confirm the schema is live.

    Open Rich Results Test

Other platforms

  1. 1

    Copy your schema code

    Go to your CitedBy Schema page, click "Copy code", and keep it ready.

  2. 2

    Find your site's <head> section

    Most website builders have a "Custom code", "Header scripts", or "Embed code" section in their settings. Look for these under Settings → Advanced or similar.

  3. 3

    Paste the schema

    Wrap your copied code in a <script> tag and paste it into the header section.

    <script type="application/ld+json">
    [paste your schema code here]
    </script>
  4. 4

    Verify it's working

    Use Google's Rich Results Test to confirm the schema is detected on your homepage.

    Open Rich Results Test

Skip the manual steps

Connect your WordPress site and CitedBy will push schema updates automatically every month — no copying and pasting required.

Connect WordPress