Testen, ob AI-Crawler JavaScript ausführen können
Viele KI-Crawler führen kein JavaScript aus, weshalb ChatGPT-Seiteninhalte unter Umständen gar nicht sieht. Mit einem Skript lässt sich in einem Befehl prüfen, wie die eigene Website von AI-Crawlern wahrgenommen wird.

Offenlegung: Ich arbeite an Get AI Vizible, einem Tool, das verfolgt, wie KI-Assistenten Marken erwähnen. Für das Folgende wird es nicht benötigt: Das Skript nutzt ausschließlich die Python-Standardbibliothek. Dieser Beitrag wurde von einem KI-Agenten für unser Team entworfen; das Skript wurde vor der Veröffentlichung gegen Live-Websites und in Offline-Tests ausgeführt.
Wenn Ihre Website eine im Client gerenderte App ist, besteht eine gute Chance, dass ChatGPT Ihre Inhalte nie gesehen hat. Gesehen hat es ein leeres <div id="root"></div>.
Alles, was nicht in Ihrer ursprünglichen HTML-Antwort steht, existiert aus Sicht der meisten KI-Assistenten also überhaupt nicht auf Ihrer Seite. Das betrifft Preise, die per API-Aufruf geladen werden, FAQ-Antworten in einem clientseitigen Accordion und Produktbeschreibungen, die von React gerendert werden.
Das Verhalten von Crawlern ändert sich, daher sollten Sie dies von Zeit zu Zeit anhand aktueller Quellen erneut prüfen. Die eigenen Seiten zu testen ist allerdings günstig.
Der schnellste Check besteht darin, Ihre Seite so abzurufen, wie es ein Crawler tut, und nach einem Satz zu suchen, der Ihnen wichtig ist:
curl -s -A "GPTBot" https://example.com/pricing | grep -i "per month" Vollbildmodus aktivieren Vollbildmodus beenden Keine Ausgabe bedeutet, dass der Satz nicht im rohen HTML enthalten ist. Das ist ein guter Anfang, aber grep findet auch Text innerhalb von <script>-Tags und HTML-Kommentaren, die ein Modell, das die Seite als Dokument liest, möglicherweise nicht als Inhalt behandelt.
Dieses Skript ruft eine Seite mit dem User-Agent GPTBot ab, entfernt Skripte, Styles, <noscript>-Blöcke und Kommentare und meldet, was übrig bleibt. Außerdem prüft es Ihre robots.txt auf die gängigen KI-User-Agents:
python ai_view.py https://yoursite.com/pricing "per month" "Free plan" Vollbildmodus aktivieren Vollbildmodus beenden Hier ist die Ausgabe für eine von mir getestete, serverseitig gerenderte Seite:
https://getvizible.online -> HTTP 200, 272.226 Bytes HTML, 3.817 ohne JavaScript lesbare Wörter title: AI Visibility Tool for ChatGPT & Gemini | Get AI Vizible first words: AI Visibility Tool for ChatGPT & Gemini | Get AI Vizible Get AI Vizible Features How it works Pricing... found "AI visibility" MISSING "Plans start at" robots.txt: GPTBot allowed OAI-SearchBot allowed ChatGPT-User allowed ClaudeBot allowed PerplexityBot allowed CCBot allowed Vollbildmodus aktivieren Vollbildmodus beenden Die Zeile MISSING ist der nützliche Teil. Der Ausdruck existiert auf einer anderen Seite, nicht auf der Startseite. Genau so etwas sollte man wissen, bevor man annimmt, dass ein Assistent ihn zitieren kann.
Eine im Client gerenderte Seite sieht ganz anders aus. Die Testsuite enthält eine typische Single-Page-App-Hülle, und das Skript reduziert sie auf nur noch den <title>: null Wörter tatsächlicher Inhalte.
Eine Feinheit aus der Vercel-Studie: Inhalte innerhalb des ursprünglichen HTML, etwa ein JSON-Blob oder gestreamte Daten von Server-Komponenten, können dennoch erfasst werden, weil Modelle auch Nicht-HTML-Text lesen können. Verlassen Sie sich darauf aber nicht. Text im HTML-Body ist die einzige Form, die jeder Crawler verarbeitet.
Das Skript ist kostenlos auf GitHub als Teil von ai-log-tools verfügbar, neben zwei Skripten zur Log-Analyse: Das eine prüft, ob "GPTBot"-Zugriffe tatsächlich von OpenAI stammen, das andere zählt Besuche, die von KI-Assistenten gesendet werden.
Wie hoch war Ihr Wortzählerstand? Ich bin gespannt, wie viele Websites immer noch leere Hüllen ausliefern.
Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.
Original (Englisch) anzeigen
Disclosure: I work on Get AI Vizible, which tracks how AI assistants mention brands. Nothing below needs it: the script uses only the Python standard library. This post was drafted by an AI agent for our team; the script was run against live sites and offline tests before publishing.
If your site is a client-side rendered app, there's a good chance ChatGPT has never seen your content. It's seen an empty <div id="root"></div>.
So whatever text isn't in your initial HTML response is, for most AI assistants, not on your page at all. That includes prices loaded by an API call, FAQ answers in a client-side accordion, and product descriptions rendered by React.
Crawler behaviour changes, so re-check this against current sources from time to time. Testing your own pages is cheap, though.
The fastest check is to fetch your page the way a crawler does and search for a sentence you care about:
curl -s -A "GPTBot" https://example.com/pricing | grep -i "per month" Enter fullscreen mode Exit fullscreen mode No output means the sentence isn't in the raw HTML. That's a good start, but grep also matches text inside <script> tags and HTML comments, which a model reading the page as a document may not treat as content.
This script fetches a page with a GPTBot user agent, strips scripts, styles, <noscript> blocks and comments, and reports what's left. It also checks your robots.txt for the common AI user agents:
python ai_view.py https://yoursite.com/pricing "per month" "Free plan" Enter fullscreen mode Exit fullscreen mode Here's the output for a server-rendered page I tested:
https://getvizible.online -> HTTP 200, 272,226 bytes of HTML, 3,817 words readable without JS title: AI Visibility Tool for ChatGPT & Gemini | Get AI Vizible first words: AI Visibility Tool for ChatGPT & Gemini | Get AI Vizible Get AI Vizible Features How it works Pricing... found "AI visibility" MISSING "Plans start at" robots.txt: GPTBot allowed OAI-SearchBot allowed ChatGPT-User allowed ClaudeBot allowed PerplexityBot allowed CCBot allowed Enter fullscreen mode Exit fullscreen mode That MISSING line is the useful part. The phrase exists on another page, not the homepage. That's exactly the kind of thing you want to know before assuming an assistant can quote it.
A client-side rendered page looks very different. The test suite includes a typical single-page-app shell, and the script reduces it to just the <title>: zero words of actual content.
One nuance from the Vercel study: content inside the initial HTML, such as a JSON blob or streamed server-component data, may still be picked up, because models can read non-HTML text. Don't rely on it. Text in the HTML body is the only form every crawler handles.
The script is free on GitHub as part of ai-log-tools, next to two log-analysis scripts: one checks whether "GPTBot" hits really come from OpenAI, the other counts visits sent by AI assistants.
What did your word count come out as? I'm curious how many sites are still serving empty shells.