JS Snippet

Auto-Optimize with One Snippet

Add a lightweight JavaScript snippet to your site that automatically adds missing schema markup, optimizes meta tags, and tracks AI bot visits.

Active Optimizations

What the snippet will do on your site

5 optimizations
Missing Schema Markup

Auto-adds JSON-LD schema types your page is missing

Meta Tag Optimization

Enhances meta descriptions and Open Graph tags

FAQ Structured Data

Injects FAQPage schema for question-answer content

AI Bot Tracking

Monitors visits from GPTBot, ClaudeBot, PerplexityBot

Authority Signals

Adds Organization schema and author attribution

Pro Feature

The snippet only works with an active Pro subscription

Your Snippet Code

Site ID: rai_3al9y34y

<!-- CiteAI Auto-Optimizer -->
<script>
(function(r,a,i){
  r.CiteAI=r.CiteAI||{};r.CiteAI.siteId="rai_3al9y34y";
  var s=a.createElement("script");s.async=1;
  s.src="https://cdn.citeai.app/snippet/v1.js";
  a.head.appendChild(s);
  // Monitor AI bot visits
  var bots=["GPTBot","ClaudeBot","PerplexityBot","Google-Extended","Bingbot"];
  if(navigator.userAgent&&bots.some(function(b){
    return navigator.userAgent.indexOf(b)>-1;
  })){
    r.CiteAI.aiVisit=true;
    new Image().src="https://api.citeai.app/track?site=rai_3al9y34y&bot="+
      encodeURIComponent(navigator.userAgent);
  }
})(window,document);
</script>

Active subscription required

The snippet verifies your subscription status on each page load. If your subscription expires, the optimizations will stop until renewed. This ensures ongoing value for active subscribers.

Installation Instructions

Paste this code in your <head> tag, before the closing </head>:

<!-- CiteAI Auto-Optimizer -->
<script>
(function(r,a,i){
  r.CiteAI=r.CiteAI||{};r.CiteAI.siteId="rai_3al9y34y";
  var s=a.createElement("script");s.async=1;
  s.src="https://cdn.citeai.app/snippet/v1.js";
  a.head.appendChild(s);
  // Monitor AI bot visits
  var bots=["GPTBot","ClaudeBot","PerplexityBot","Google-Extended","Bingbot"];
  if(navigator.userAgent&&bots.some(function(b){
    return navigator.userAgent.indexOf(b)>-1;
  })){
    r.CiteAI.aiVisit=true;
    new Image().src="https://api.citeai.app/track?site=rai_3al9y34y&bot="+
      encodeURIComponent(navigator.userAgent);
  }
})(window,document);
</script>