### Sample Full robots.txt Setup for AI Citing
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
A comprehensive example of a robots.txt file that includes sitemap references, AI bot allowances, policy file references, standard search engine allowances, and blocking of competitive scrapers.
```robots.txt
# Sitemap reference
Sitemap: https://yourdomain.com/sitemap.xml
# AI crawling policy
LLM-Policy: https://yourdomain.com/llms.txt
# Content-List: https://yourdomain.com/llms-full.txt
# Allow trusted AI bots
User-agent: GPTBot
Allow: /
User-agent: ClaudeBot
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: Google-Extended
Allow: /
User-agent: CCBot
Allow: /
# Allow major SEO bots
User-agent: Googlebot
Allow: /
User-agent: Bingbot
Allow: /
# Allow social bots
User-agent: LinkedInBot
Allow: /
User-agent: Twitterbot
Allow: /
User-agent: facebookexternalhit
Allow: /
# Block competitive scrapers
User-agent: AhrefsBot
Disallow: /
User-agent: SemrushBot
Disallow: /
User-agent: MJ12bot
Disallow: /
# Catch-all fallback
User-agent: *
Disallow: /private/
Allow: /
```
--------------------------------
### Formatting Data with ChatGPT Prompt
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
An example prompt to guide ChatGPT in converting exported blog metadata (titles, URLs, dates, excerpts) into the specific Markdown list format required for the `llms-full.txt` file.
```Plain Text
Convert this list of blog titles, URLs, publish dates, and excerpts into a Markdown list for llms-full.txt format.
```
--------------------------------
### Example llms-full.txt Structure
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
Provides an example of an llms-full.txt file, demonstrating the inclusion of metadata like 'Published', 'Last Modified', and 'Excerpt' below each page link.
```markdown
## Blog Posts
- (https://ranjanmayank.in/blog/digital-marketing-interview-guide/) - Published: 2025-03-15 - Last Modified: 2025-03-20 - Excerpt: A curated list of 100+ Q&As to help professionals crack marketing interviews in 2025.
- (https://ranjanmayank.in/blog/answer-engine-optimization-guide/) - Published: 2025-05-22 - Last Modified: 2025-05-28 - Excerpt: A step-by-step strategy to appear in ChatGPT, SGE, Bing AI and mo
```
--------------------------------
### Example Markdown for Blog Post Links
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
An example of how to list blog posts using Markdown bullet syntax, featuring page titles, URLs, and concise one-line summaries for LLM understanding.
```markdown
## Blog Posts
- [Answer Engine Optimization Guide 2025](https://ranjanmayank.in/blog/answer-engine-optimization-guide/): A step-by-step strategy to appear in ChatGPT, SGE, Bing AI and more.
- [Digital Marketing Interview Guide 2025](https://ranjanmayank.in/blog/interview-guide/): 100+ questions and winning answers to prepare for top digital marketing interviews.
- [LinkedIn Profile Optimization Checklist](https://ranjanmayank.in/blog/linkedin-checklist/): A practical checklist to turn your LinkedIn profile into a lead magnet and job magnet.
```
--------------------------------
### Example Markdown for Website Title and Summary
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
An example illustrating the recommended Markdown structure for a website's title and summary, tailored for LLM interpretation and providing actionable insights.
```markdown
# ranjanmayank.in > Actionable insights on digital marketing, personal branding, career growth, and AI-powered content strategies — curated for professionals, creators, and marketers building their online presence.
```
--------------------------------
### Example llms-full.txt Content with Metadata
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
Provides a concrete example of how blog post links are structured with publication dates, modification dates, and excerpts in the `llms-full.txt` file. This demonstrates the application of the metadata format for enhanced AI understanding.
```Markdown
## Blog Posts - [Digital Marketing Interview Guide 2025](https://ranjanmayank.in/blog/digital-marketing-interview-guide/) - Published: 2025-03-15 - Last Modified: 2025-03-20 - Excerpt: A curated list of 100+ Q&As to help professionals crack marketing interviews in 2025. - [Answer Engine Optimization Guide 2025](https://ranjanmayank.in/blog/answer-engine-optimization-guide/) - Published: 2025-05-22 - Last Modified: 2025-05-28 - Excerpt: A step-by-step strategy to appear in ChatGPT, SGE, Bing AI and more — not just ranked, but referenced. - [Personal Branding Strategy for Professionals](https://ranjanmayank.in/blog/personal-branding-strategy/) - Published: 2025-02-10 - Last Modified: 2025-03-01 - Excerpt: A complete guide to building personal authority through LinkedIn, content, and visibility.
```
--------------------------------
### FAQPage Schema Markup Example (JSON-LD)
Source: https://ranjanmayank.in/blog/ai/answer-engine-optimization-guide/
Demonstrates how to use JSON-LD to mark up frequently asked questions for AI search engines. This structured data helps in surfacing content as featured snippets or AI-generated answers by clearly defining questions and their accepted answers.
```json
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is Answer Engine Optimization?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Answer Engine Optimization is the process of optimizing content so it can be featured in AI-generated search responses."
}
}
]
}
```
--------------------------------
### Blog Post Link: The Ultimate Guide to llms.txt
Source: https://ranjanmayank.in/blog/ai/answer-engine-optimization-guide/
This entry represents a link to a blog post titled 'The Ultimate Guide to llms.txt'. It includes the category 'Ai' and the publication date 'Jun 29'.
```HTML
[
](https://ranjanmayank.in/blog/ai/llm-txt-guide/)
#### [The Ultimate Guide to llms.txt (2025)](https://ranjanmayank.in/blog/ai/llm-txt-guide/)
[Ai](https://ranjanmayank.in/category/blog/ai/)
/
Jun 29
[
](https://ranjanmayank.in/blog/ai/how-to-rank-in-ai/)
```
--------------------------------
### FAQ Schema Markup Example (JSON-LD)
Source: https://ranjanmayank.in/blog/ai/answer-engine-optimization-guide/
Demonstrates how to implement FAQPage schema using JSON-LD. This markup helps search engines understand question-and-answer content, enabling it to be displayed in rich results and AI-generated summaries. Validation with tools like Google's Rich Results Test is recommended.
```json
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "What is Answer Engine Optimization?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Answer Engine Optimization (AEO) is a strategy focused on making content easily understandable and discoverable by search engines and AI models, aiming for inclusion in featured snippets and AI-generated answers."
}
}, {
"@type": "Question",
"name": "Why is structured data important for AEO?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Structured data provides context and relationships within content, helping search engines interpret it accurately. This markup is crucial for content to be eligible for rich results and AI summaries."
}
}]
}
```
--------------------------------
### Example Markdown for Content Sections (List)
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
Provides examples of Markdown H2 headings for organizing content sections, with variations for different website types like portfolios or course platforms.
```markdown
## Projects
## Case Studies
## Articles
```
```markdown
## Lessons
## Student Resources
## Webinars
```
--------------------------------
### Google Analytics Setup
Source: https://ranjanmayank.in/project/sales-boost-for-led-lights/
Configures Google Analytics tracking for the website using the gtag.js library. It initializes the dataLayer and sets up the tracking ID.
```javascript
window.dataLayer = window.dataLayer || [];
function gtag(){
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-WCSRY93HZZ', {} );
```
--------------------------------
### Blog Post Link: The Ultimate Guide to llms.txt
Source: https://ranjanmayank.in/blog/ai/how-to-rank-in-ai/
This entry represents a link to a blog post titled 'The Ultimate Guide to llms.txt'. It includes the category 'Ai' and the publication date 'Jun 29'.
```HTML
[
](https://ranjanmayank.in/blog/ai/llm-txt-guide/)
#### [The Ultimate Guide to llms.txt (2025)](https://ranjanmayank.in/blog/ai/llm-txt-guide/)
[Ai](https://ranjanmayank.in/category/blog/ai/)
/
Jun 29
[
](https://ranjanmayank.in/blog/ai/how-to-rank-in-ai/)
```
--------------------------------
### Example llms.txt Structure
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
Illustrates how to organize pages within an llms.txt file using headings and the specified Markdown bullet format for different content categories.
```markdown
## Blog Posts
- (https://ranjanmayank.in/blog/answer-engine-optimization-guide/): A step-by-step strategy to appear in ChatGPT, SGE, Bing AI and more.
- (https://ranjanmayank.in/blog/interview-guide/): 100+ questions and winning answers to prepare for top digital marketing interviews.
- (https://ranjanmayank.in/blog/linkedin-checklist/): A practical checklist to turn your LinkedIn profile into a lead magnet and job magnet.
```
--------------------------------
### Blog Post Link: The Ultimate Guide to llms.txt
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
A link to a blog post titled 'The Ultimate Guide to llms.txt (2025)', categorized under 'Ai'. It was published on June 29th. The content likely discusses AI and related topics.
```html
The Ultimate Guide to llms.txt (2025)
[Ai](https://ranjanmayank.in/category/blog/ai/)
/
Jun 29
```
--------------------------------
### Google Analytics Initialization
Source: https://ranjanmayank.in/services/personal-branding/
Initializes the Google Analytics data layer and configures the tracking ID 'G-WCSRY93HZZ'. This is a standard setup for website analytics.
```javascript
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-WCSRY93HZZ', {});
```
--------------------------------
### LinkedIn Connection Request Greeting Example
Source: https://ranjanmayank.in/blog/connection-request-on-linkedin/
An example of a polite and personalized greeting to start a LinkedIn connection request message. It emphasizes using the recipient's name correctly to set a positive tone and increase the chances of engagement.
```text
Hi [Name], I hope this message finds you well.
```
--------------------------------
### HTML Image Tag with Alt Text
Source: https://ranjanmayank.in/blog/ai/answer-engine-optimization-guide/
An example of an HTML `
` tag demonstrating best practices for image optimization, including descriptive alt text for accessibility and search engine understanding. This tag includes attributes like `decoding`, `src`, `alt`, and `title`.
```html
```
--------------------------------
### Basic HTML Navigation and Links
Source: https://ranjanmayank.in/services/personal-branding/
Includes basic HTML structure for navigation, a skip-to-content link, and an image link to the homepage. This represents the structural elements of the page.
```html
[Skip to content](#content)
[](https://ranjanmayank.in)
* [Home](https://ranjanmayank.in/)
* [About](https://ranjanmayank.in/about-me/)
* [Services](https://ranjanmayank.in/my-services/)
```
--------------------------------
### GA4 Custom Dimension Setup for Impression Value
Source: https://ranjanmayank.in/blog/ai/answer-engine-optimization-guide/
Configure custom dimensions in Google Analytics 4 (GA4) to track 'Impression Value' and measure brand visibility beyond clicks. This involves setting up custom dimensions in GA4 and potentially sending data from Google Search Console.
```APIDOC
GA4 Custom Dimension Configuration:
1. Navigate to Admin > Custom definitions.
2. Click 'Create custom dimensions'.
3. For 'Dimension name', enter 'ImpressionValue' or similar.
4. For 'Scope', select 'Event' or 'User' depending on tracking needs.
5. For 'Description', add 'Tracks brand visibility and AEO effectiveness'.
6. For 'Event parameter' (if scope is Event), enter a parameter name like 'impression_count' or 'visibility_metric'.
Google Search Console Integration:
- Ensure GA4 is linked to Google Search Console.
- Monitor 'Search Appearance > Rich Results' and 'Impressions' for top pages.
- Consider custom filters or segments in GSC to isolate zero-click snippet performance.
Tracking Zero-Click Snippets:
- Tag specific content or campaigns that aim for snippet inclusion.
- Analyze GA4 data for sessions/users attributed to these tagged items, correlating with GSC impression data.
```
--------------------------------
### Create llms.txt File Structure
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
Details the essential steps for creating the llms.txt file, including naming conventions, file location, and the initial structure for AI readability. This file acts as a lightweight, high-level guide for AI bots.
```Markdown
# YourWebsiteName > A quick summary of what your website is about.
## Guides ## Blog Posts ## Templates ## Resources
```
--------------------------------
### CSS for Animated Spinner Elements
Source: https://ranjanmayank.in/blog/ai/answer-engine-optimization-guide/
This CSS defines styles for animated spinner elements, likely used for loading indicators. It sets up a base animation for elements with class names starting 'the7-spinner-animate-', controlling their opacity over time to create a pulsing or fading effect. Specific delay classes are also provided for staggered animations.
```css
[class*="the7-spinner-animate-"] {
animation: spinner-animation 1s cubic-bezier(1,1,1,1) infinite;
x:46.5px;
y:40px;
width:7px;
height:20px;
fill:var(--the7-beautiful-spinner-color2);
opacity: 0.2;
}
.the7-spinner-animate-2 {
animation-delay: 0.083s;
}
.the7-spinner-animate-3 {
animation-delay: 0.166s;
}
.the7-spinner-animate-4 {
animation-delay: 0.25s;
}
.the7-spinner-animate-5 {
animation-delay: 0.33s;
}
.the7-spinner-animate-6 {
animation-delay: 0.416s;
}
.the7-spinner-animate-7 {
animation-delay: 0.5s;
}
.the7-spinner-animate-8 {
animation-delay: 0.58s;
}
.the7-spinner-animate-9 {
animation-delay: 0.666s;
}
.the7-spinner-animate-10 {
animation-delay: 0.75s;
}
.the7-spinner-animate-11 {
animation-delay: 0.83s;
}
.the7-spinner-animate-12 {
animation-delay: 0.916s;
}
@keyframes spinner-animation {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
```
--------------------------------
### Blog Post Link: The Ultimate Guide to llms.txt
Source: https://ranjanmayank.in/blog/digital-marketing-interview-guide/
This entry represents a link to a blog post titled 'The Ultimate Guide to llms.txt'. It includes the category 'Ai' and the publication date 'Jun 29'.
```HTML
[
](https://ranjanmayank.in/blog/ai/llm-txt-guide/)
#### [The Ultimate Guide to llms.txt (2025)](https://ranjanmayank.in/blog/ai/llm-txt-guide/)
[Ai](https://ranjanmayank.in/category/blog/ai/)
/
Jun 29
[
](https://ranjanmayank.in/blog/ai/how-to-rank-in-ai/)
```
--------------------------------
### llms-full.txt Content Format Example
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
Demonstrates the required Markdown format for listing blog posts in the `llms-full.txt` file. This format includes the URL, publication date, last modified date, and a concise excerpt for each entry, helping AI understand content freshness and relevance.
```Markdown
- (https:\/\/yourdomain.com\/post-url) - Published: YYYY-MM-DD - Last Modified: YYYY-MM-DD - Excerpt: Your one-line summary here.
```
--------------------------------
### Schema Markup for AI Understanding
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
Explains the benefits of using structured data, specifically FAQ and How-To schema, to help AI tools understand content purpose and eligibility for rich snippets or step-by-step formatting.
```APIDOC
Schema Markup:
Purpose: Enhance content understanding for AI tools and search engines.
Types:
- FAQPage: Helps answers become eligible for AI snippets or instant answers.
- HowTo: Improves visibility in visual results and 'steps' formatting in SGE or Bing.
Benefits:
- AI tools like Perplexity may use schema-enhanced metadata for accurate snippet sourcing.
- Improves content discoverability and presentation in AI-driven search results.
```
--------------------------------
### Markdown for Website Title and Summary
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
Demonstrates how to use Markdown's H1 and blockquote syntax to provide a concise title and summary for a website, aiding LLM comprehension and categorization.
```markdown
# YourWebsiteName > A quick summary of what your website is about.
```
--------------------------------
### Google Sign-In Integration
Source: https://ranjanmayank.in/services/personal-branding/
Handles Google Sign-In responses by sending credentials to the server for authentication. It initializes the Google Identity Services library and renders sign-in buttons on the page.
```javascript
async function handleCredentialResponse(response) {
try {
const res = await fetch('https://ranjanmayank.in/wp-login.php?action=googlesitekit_auth', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams(response)
});
if (res.ok && res.redirected) {
location.assign(res.url);
}
} catch (error) {
console.error(error);
}
}
google.accounts.id.initialize({
client_id: '552602240446-li2tvogrd4pj752pg5eabei4d6vmr75b.apps.googleusercontent.com',
callback: handleCredentialResponse,
library_name: 'Site-Kit'
});
document.querySelectorAll('.googlesitekit-sign-in-with-google__frontend-output-button').forEach((siwgButtonDiv) => {
google.accounts.id.renderButton(siwgButtonDiv, {
"theme": "outline",
"text": "signin_with",
"shape": "rectangular"
});
});
```
--------------------------------
### Answer Engine Optimization (AEO) 2025 Schema
Source: https://ranjanmayank.in/blog/ai/answer-engine-optimization-guide/
Structured data (JSON-LD) detailing the content of the Answer Engine Optimization (AEO) 2025 guide, including metadata, publication dates, author, and image information.
```APIDOC
{
"@context": "https:\/\/schema.org\/",
"@type": "WebPage",
"@id": "https:\/\/ranjanmayank.in\/blog\/ai\/answer-engine-optimization-guide\/#webpage",
"name": "Answer Engine Optimization (AEO) 2025: Complete Guide",
"url": "https:\/\/ranjanmayank.in\/blog\/ai\/answer-engine-optimization-guide\/",
"lastReviewed": "2025-06-22T22:40:55+05:30",
"dateCreated": "2025-06-10T14:44:16+05:30",
"inLanguage": "en-US",
"description": "Answer Engine Optimization (AEO) 2025 expert guide. Learn strategies, tools, schema tips & real-world examples to rank in Google SGE, ChatGPT & AI-driven search.",
"keywords": "AEO, Ai in SEO, Answer Engine Optimization, SEO, ",
"mainEntity": {
"@type": "Article",
"mainEntityOfPage": "https:\/\/ranjanmayank.in\/blog\/ai\/answer-engine-optimization-guide\/",
"headline": "Answer Engine Optimization (AEO) 2025: Complete Guide",
"description": "Answer Engine Optimization (AEO) 2025 expert guide. Learn strategies, tools, schema tips & real-world examples to rank in Google SGE, ChatGPT & AI-driven search.",
"keywords": "AEO, Ai in SEO, Answer Engine Optimization, SEO, ",
"datePublished": "2025-06-10T14:44:16+05:30",
"dateModified": "2025-06-22T22:40:55+05:30",
"author": {
"@type": "Person",
"name": "ranjanmayank",
"url": "https:\/\/ranjanmayank.in\/author\/ranjanmayank\/",
"sameAs": [
"https:\/\/ranjanmayank.in"
],
"image": {
"@type": "ImageObject",
"url": "https:\/\/secure.gravatar.com\/avatar\/5524d741b3bfa922b092751cf64c5306953b4aa83746116df2880c4bb9832761?s=96&d=mm&r=g",
"height": 96,
"width": 96
}
},
"publisher": {
"@type": "Organization",
"name": "Mayank Ranjan",
"url": "https:\/\/ranjanmayank.in",
"logo": {
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2024\/12\/cropped-Add_a_heading__1_-removebg-preview.png",
"width": "300",
"height": "50"
}
},
"image": [
{
"@type": "ImageObject",
"@id": "https:\/\/ranjanmayank.in\/blog\/ai\/answer-engine-optimization-guide\/#primaryimage",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/05\/ChatGPT-Image-May-22-2025-11_18_02-PM.webp",
"width": "1536",
"height": "1024",
"caption": "Answer Engine Optimization"
},
{
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/05\/ChatGPT-Image-May-22-2025-11_18_02-PM-1200x900.webp",
"width": "1200",
"height": "900",
"caption": "Answer Engine Optimization"
},
{
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/05\/ChatGPT-Image-May-22-2025-11_18_02-PM-1200x675.webp",
"width": "1200",
"height": "675",
"caption": "Answer Engine Optimization"
},
{
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/05\/ChatGPT-Image-May-22-2025-11_18_02-PM-1024x1024.webp",
"width": "1024",
"height": "1024",
"caption": "Answer Engine Optimization"
},
{
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/05\/2350b9b0-ffbd-4cf8-b0a7-4d7344fb313d_1600x1005-1024x643.webp",
"width": 1024,
"height": 643,
"caption": "Google Search Evolution Timeline"
},
{
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/06\/Add-a-heading-1024x576.webp",
"width": 1024,
"height": 576,
"caption": "User behaviour on Google, User Search Data"
},
{
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/06\/Screenshot-2025-06-09-133901-1024x410.webp",
"width": 1024,
"height": 410
},
{
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/06\/Add-a-heading-2-1024x576.webp",
"width": 1024,
"height": 576,
"caption": "SEO and AEO, AI seo"
},
{
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/06\/Zero-search-click-example-768x284.webp",
"width": 768,
"height": 284,
"caption": "Zero search click example"
},
{
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/06\/AEO-Optimization-Funnel-1024x576.webp",
"width": 1024,
"height": 576,
"caption": "AEO Optimization Funnel"
},
{
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/06\/AEO-Sucess-Mertices-1024x576.webp",
"width": 1024,
"height": 576,
"caption": "AEO Success Mertics"
},
{
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/06\/Common-Myths-vs.-Reality-for-AEO-and-SEO-1024x576.webp",
"width": 1024,
"height": 576,
"caption": "AEO and SEO myths"
},
{
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2025\/06\/Book-Free-Ai-SEO-Call-1024x341.webp",
"width": 1024,
"height": 341
}
]
},
"reviewedBy": {
"@type": "Organization",
"name": "Mayank Ranjan",
"url": "https:\/\/ranjanmayank.in",
"logo": {
"@type": "ImageObject",
"url": "https:\/\/ranjanmayank.in\/wp-content\/uploads\/2024\/12\/cropped-Add_a_heading__1_-removebg-preview.png",
"width": "300",
"height": "50"
}
},
"publisher": {
"@type": "Organization",
"name": "Mayank Ranjan",
"url": "https:\/\/ranjanmayank.in"
}
}
```
--------------------------------
### Google Tag Manager and Site Kit Initialization
Source: https://ranjanmayank.in/contact/
Initializes Google Tag Manager (GTM) and configures Google Site Kit. It sets up consent defaults, loads the GTM script, pushes page data to the dataLayer, and configures gtag events for tracking.
```javascript
window.gtmkit_settings = {"datalayer_name":"dataLayer","console_log":false};
window.gtmkit_data = {};
window.dataLayer = window.dataLayer || [];
if (typeof gtag === "undefined") {
function gtag(){
dataLayer.push(arguments);
}
gtag('consent', 'default', {
'ad_personalization': 'granted',
'ad_storage': 'granted',
'ad_user_data': 'granted',
'analytics_storage': 'granted',
'personalization_storage': 'granted',
'functionality_storage': 'granted',
'security_storage': 'granted',
'wait_for_update': 50
});
} else if ( window.gtmkit_settings.console_log === 'on' ) {
console.warn('GTM Kit: gtag is already defined');
}
/* Google Tag Manager */
(function(w,d,s,l,i){
w[l]=w[l]||[];
w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),
dl=l!='dataLayer'?'&l='+l:'';
j.async=true;
j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;
f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5X2Q42VR');
/* End Google Tag Manager */
const gtmkit_dataLayer_content = {"pageType":"page"};
dataLayer.push( gtmkit_dataLayer_content );
window.dataLayer = window.dataLayer || [];
function gtag(){
dataLayer.push(arguments);
}
gtag("set","linker",{"domains":["ranjanmayank.in"]});
gtag("js", new Date());
gtag("set", "developer_id.dZTNiMT", true);
gtag("config", "GT-T533C4CV", {"googlesitekit_post_type":"page"});
window._googlesitekit = window._googlesitekit || {};
window._googlesitekit.throttledEvents = [];
window._googlesitekit.gtagEvent = (name, data) => {
var key = JSON.stringify( { name, data } );
if ( !! window._googlesitekit.throttledEvents[ key ] ) {
return;
}
window._googlesitekit.throttledEvents[ key ] = true;
setTimeout( () => {
delete window._googlesitekit.throttledEvents[ key ];
}, 5 );
gtag( "event", name, { ...data, event_source: "site-kit" } );
};
```
--------------------------------
### TechArticle Schema for AEO Guide
Source: https://ranjanmayank.in/blog/ai/answer-engine-optimization-guide/
Provides structured metadata for a technical article about Answer Engine Optimization (AEO). It includes details like headline, description, keywords, author, publication dates, and related entities, enhancing discoverability for AI search.
```APIDOC
{
"@context": "https://schema.org",
"@type": "TechArticle",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://ranjanmayank.in/blog/answer-engine-optimization-guide/"
},
"headline": "Answer Engine Optimization (AEO) Guide 2025: Be the Answer, Not Just a Result",
"alternativeHeadline": "The Ultimate Guide to AI-Powered Search Optimization Using AEO Strategies",
"description": "This 3000+ word expert guide explains how to optimize your content for Answer Engine Optimization (AEO) in 2025. Learn strategies for AI search visibility across Google SGE, ChatGPT, schema, featured snippets, and more.",
"keywords": "Answer Engine Optimization, AEO vs SEO, AI-powered search, Google SGE, schema markup, ChatGPT SEO",
"inLanguage": "en",
"url": "https://ranjanmayank.in/blog/answer-engine-optimization-guide/",
"image": {
"@type": "ImageObject",
"url": "https://ranjanmayank.in/wp-content/uploads/2025/05/ChatGPT-Image-May-22-2025-11_18_02-PM.png",
"name": "AEO Optimization Banner Image – AI Search Strategy",
"description": "A blog banner visualizing the concept of AEO with AI-driven search UI and schema elements."
},
"datePublished": "2025-06-11T09:00:00+05:30",
"dateModified": "2025-06-12T10:30:00+05:30",
"author": {
"@type": "Person",
"name": "Mayank Ranjan",
"url": "https://ranjanmayank.in/",
"description": "Mayank Ranjan is a digital marketing strategist with 7+ years of experience in SEO, content marketing, and personal branding. He helps professionals and businesses build strong digital visibility through data-driven strategies and AI-powered content."
},
"publisher": {
"@type": "Organization",
"name": "Ranjan Mayank",
"url": "https://ranjanmayank.in/",
"logo": {
"@type": "ImageObject",
"url": "https://ranjanmayank.in/wp-content/uploads/2025/01/logo.png",
"width": 600,
"height": 60
}
},
"about": [
{
"@type": "Thing",
"name": "Answer Engine Optimization"
},
{
"@type": "Thing",
"name": "AI Search Optimization"
},
{
"@type": "Thing",
"name": "Search Generative Experience (SGE)"
},
{
"@type": "Thing",
"name": "Schema Markup"
},
{
"@type": "Thing",
"name": "ChatGPT Search"
},
{
"@type": "Thing",
"name": "Conversational SEO"
}
]
}
```
--------------------------------
### Google Sign-In Initialization and Rendering
Source: https://ranjanmayank.in/blog/ai/how-to-rank-in-ai/
This JavaScript code initializes the Google Identity Services library to enable Google Sign-In functionality. It configures the client ID, specifies a callback function to handle authentication responses, and renders Google Sign-In buttons on the page. The callback function processes the credential response, sends it to the server for authentication, and redirects the user upon success.
```JavaScript
async function handleCredentialResponse(response) {
try {
const res = await fetch('https://ranjanmayank.in/wp-login.php?action=googlesitekit_auth', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams(response)
});
if (res.ok && res.redirected) {
location.assign(res.url);
}
} catch (error) {
console.error(error);
}
}
google.accounts.id.initialize({
client_id: '552602240446-li2tvogrd4pj752pg5eabei4d6vmr75b.apps.googleusercontent.com',
callback: handleCredentialResponse,
library_name: 'Site-Kit'
});
document.querySelectorAll('.googlesitekit-sign-in-with-google__frontend-output-button').forEach((siwgButtonDiv) => {
google.accounts.id.renderButton(siwgButtonDiv, {
"theme": "outline",
"text": "signin_with",
"shape": "rectangular"
});
});
```
--------------------------------
### Google Identity Services API
Source: https://ranjanmayank.in/project/boosting-luxury-home-decor/
Provides methods for initializing and rendering Google Sign-In buttons, enabling users to authenticate with their Google accounts. The `initialize` method configures the client ID and callback for handling authentication responses, while `renderButton` displays the interactive sign-in button on the page.
```APIDOC
google.accounts.id.initialize(config)
- Initializes the Google Identity Services library.
- Parameters:
- config: An object containing initialization settings.
- client_id: string - The OAuth 2.0 client ID for your application.
- callback: function - The function to call when the user signs in.
- library_name: string - Optional. The name of the library being used.
google.accounts.id.renderButton(element, options)
- Renders a Google Sign-In button on a specified DOM element.
- Parameters:
- element: HTMLElement - The DOM element where the button will be rendered.
- options: object - Configuration options for the button.
- theme: 'outline' | 'filled_blue' | 'filled_black' - The visual theme of the button.
- text: 'signin_with' | 'signup_with' | 'continue_with' | 'signin' | 'signup' - The text displayed on the button.
- shape: 'rectangular' | 'pill' - The shape of the button.
- size: 'large' | 'medium' | 'small' - The size of the button.
- type: 'standard' | 'icon' - The type of button (standard text or icon only).
- logo_alignment: 'left' | 'center' - Alignment of the Google logo.
```
--------------------------------
### Page Loading Animation Styles
Source: https://ranjanmayank.in/blog/ai/answer-engine-optimization-guide/
CSS rules for controlling the display and animation of a page loading indicator.
```CSS
body #load {
display: block;
height: 100%;
overflow: hidden;
position: fixed;
width: 100%;
z-index: 9901;
opacity: 1;
visibility: visible;
transition: all .35s ease-out;
}
.load-wrap {
width: 100%;
height: 100%;
background-position: center center;
backgro
```
--------------------------------
### Apply Pullquote Styling
Source: https://ranjanmayank.in/blog/ai/answer-engine-optimization-guide/
Styles pullquote blocks to have a larger font size and adjusted line height for emphasis.
```CSS
:root :where(.wp-block-pullquote) {
font-size: 1.5em;
line-height: 1.6;
}
```
--------------------------------
### Elementor Specific Background Image
Source: https://ranjanmayank.in/blog/ai/answer-engine-optimization-guide/
Applies a specific background image to an Elementor element, likely for a hero section or banner.
```CSS
.elementor-1294 .elementor-element.elementor-element-83de905:not(.elementor-motion-effects-element-type-background),
.elementor-1294 .elementor-element.elementor-element-83de905 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
background-image: url("https://ranjanmayank.in/wp-content/uploads/2025/05/ChatGPT-Image-May-22-2025-11_18_02-PM.webp");
}
```
--------------------------------
### Create llms.txt File
Source: https://ranjanmayank.in/blog/ai/llm-txt-guide/
Instructions for creating the standard llms.txt file. This file should be named in lowercase with a .txt extension and placed in the root directory of your website. It serves as a high-level guide for AI bots to find and understand your content.
```APIDOC
File Creation Guide:
File Name:
llms.txt
Requirements:
- Must be in lowercase.
- No spaces or capital letters.
- Must have the .txt extension.
Location:
- Root directory of the website (e.g., alongside robots.txt).
Accessibility:
- Accessible at https://yourdomain.com/llms.txt
Purpose:
- Lightweight, high-level guide for AI bots.
- Signals content quality and intent.
- Facilitates AI discovery and citation.
```