Skip to content

The WordPress plugin

What it does on your site: receiving posts and the optional visibility tracker.

  • Lesson 2 of 2
  • Beginner
  • 5 min read
  • 2:44 video
  • Checked against the product 2026-11-03

Listen to this lesson · 2:42

In shortThe AI Rank Lab WordPress plugin receives articles you publish from the AI content writer and turns them into WordPress posts: it creates or updates the post, downloads images into your media library, sets categories, tags and the featured image, and writes Yoast or All in One SEO meta. It authenticates with your API key and domain ID. Optionally, it can also add the AI Rank Lab tracking script to every page.

How to use it in AI Rank Lab

  1. Put it into practiceRead the lesson first; the next lessons in this course show the tools.
  2. Watch while you workEvery video also plays inside the dashboard, under Learn in the top bar.
  3. Turn it into a routineThese playbooks show where this fits in a repeatable workflow:

What the plugin does on your site

The plugin adds one REST endpoint to your site, /wp-json/airanklab/v1/publish, and an AI Rank Lab page in the WordPress admin. When you click Publish Now or a scheduled publish fires in AI Rank Lab, the article arrives at that endpoint and the plugin does the rest. It does nothing on its own: no post is created unless you publish from AI Rank Lab.

Part of the articleWhat the plugin does
Title, body, excerpt, slugCreates the post with the status you chose when connecting (published, draft or pending review)
The same article published againUpdates the existing post instead of creating a second one. It matches on the article's AI Rank Lab id, then on the slug
Images in the bodyDownloads them into your media library and points the post at the local copies
Featured imageDownloads it and sets it. If none is sent, it draws a simple title image (needs the PHP GD extension)
Categories and tagsAssigns them, creating categories that don't exist yet
AuthorUses the WordPress user with that name; otherwise the first administrator
Meta title, description, focus keywordWrites them to Yoast SEO and All in One SEO fields
Live URLReturns the post's permalink, which AI Rank Lab saves for citation tracking

Install and set it up

  1. InstallDownload airanklab.zip from Content → Publish → WordPress and webhooks (Download Plugin (.zip)). In WordPress go to Plugins → Add New → Upload Plugin, upload it and activate. It needs WordPress 5.0 or later and PHP 7.4 or later.
  2. Validate your API keyOpen AI Rank Lab in the WordPress admin menu, on the Settings tab. Paste your key into API Key and click Validate. Validation fills in the Domain ID for the AI Rank Lab domain that matches your site and ticks Activate Plugin. Click Save Settings.
  3. Connect it in AI Rank LabValidating already adds a webhook in AI Rank Lab. Open the WordPress and webhooks page and run Test Connection on it, or use Connect WordPress for a guided setup. Step by step: Connect WordPress.
  4. Watch the logsThe Publishing tab shows the plugin's Webhook URL and Webhook Debug Logs: every call, its status and HTTP code, errors and missing fields, with the API key hidden.

How it decides a publish is genuine

Each publish carries your API key, your domain ID and your domain. The plugin checks the key with AI Rank Lab on every publish, checks the domain ID matches the one saved when you clicked Validate, and checks the domain matches the WordPress site address (ignoring www). Only then does it create the post. Each publish carries your current key, so generating a new key in AI Rank Lab does not break a connected site.

The optional visibility tracker

Tick Enable visibility tracker system on the Settings tab and save, and the plugin adds the AI Rank Lab tracking script to every page of your site, using the Domain ID from validation. That is the same tracking tag you would otherwise paste by hand, so WordPress users don't need to edit their theme. Its data shows in the AI bot tracker. See Add your domain and install the tracking tag.

What the tracker can and can't see

The tracker is a JavaScript tag that runs in the visitor's browser. It records visitors that AI assistants send to your site and AI agents that run JavaScript. It does not count crawls by GPTBot, ClaudeBot or PerplexityBot, because those crawlers don't run the script. It is charged per tracked request; see the cost table.

Gotchas

  • Only one AI Rank Lab plugin per site. A second plugin, AI Rank Lab Publisher, uses the same publish address with a signed format. If both are active, publishes fail. Connect WordPress detects which one you run.
  • The domain must match. The plugin only accepts articles for the domain it was validated against. If you see a domain ID mismatch, click Validate again in WordPress, then Reconnect in AI Rank Lab.
  • Firewalls and security plugins can block /wp-json/airanklab/v1/. Allow that path if tests or publishes never arrive.
  • Test entries in the debug log saying required fields are missing are expected. The connection test sends an empty article so that nothing is created.
  • No PHP GD extension means no generated featured image. Generate a header image in the writer instead, or ask your host to enable GD.

Check yourself

1. You publish an article, edit its title in AI Rank Lab and publish it again. What does the plugin do?
2. You enabled the visibility tracker. Which of these will it count?
3. A publish fails with a domain ID mismatch. What should you do?

0 of 3 answered.

Progress is saved in this browser.

Screenshots and video come from an AI Rank Lab demo account. Where a screen needs data that account doesn't have, such as a connected Google account or real visitors, it shows fictional example.com data.

Transcript
In this lesson you'll see what the AI Rank Lab WordPress plugin actually does on your site. The plugin adds one publishing address to your site, and an AI Rank Lab page in your WordPress admin. It does nothing on its own. A post is only created when you publish from the AI content writer. When an article arrives, the plugin creates the post with the status you chose: published, draft, or pending review. If you publish the same article again, it updates the existing post rather than creating a copy. It downloads the images into your media library, sets the featured image, assigns categories and tags, and writes the meta title, description and focus keyword into Yoast or All in One SEO. Then it sends back the live address, which AI Rank Lab saves for citation tracking. Setting it up takes a few minutes. Download the zip from the WordPress and webhooks page in AI Rank Lab. In WordPress, upload it under Plugins, Add New, and activate it. Then open AI Rank Lab in the WordPress menu. On the Settings tab, paste your API key and click Validate. That fills in your domain ID and activates the plugin. Click Save Settings. Validating also adds a webhook in AI Rank Lab, so open the WordPress and webhooks page and run Test Connection. How does it know a publish is really from you? Every publish carries your API key, your domain ID and your domain. The plugin checks the key with AI Rank Lab every time, checks the domain ID, and checks the domain matches your site. Your current key is sent with each publish, so creating a new key doesn't break the connection. On the Publishing tab, you'll find the debug log. It lists every call, with its status and any errors. Test entries saying required fields are missing are normal. There's one optional extra: the visibility tracker. Tick it on the Settings tab and save, and the plugin adds the AI Rank Lab tracking script to every page, so you don't have to edit your theme. Be clear about what it sees. It's a script that runs in the browser, so it records visitors sent by AI assistants and agents that run JavaScript. It doesn't count crawls by bots like GPTBot or ClaudeBot. It's charged like the tracking tag. A few gotchas. Only run one AI Rank Lab plugin per site. Make sure your firewall allows the AI Rank Lab path. And if you see a domain ID mismatch, click Validate again in WordPress, then Reconnect in AI Rank Lab. That's the end of this course. You can now audit pages in your browser and publish straight to WordPress.

Put the lesson to work

Paste your site and get a free SEO, AEO and GEO audit with the fixes, then come back to the next lesson.