<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Manish Joshi on Medium]]></title>
        <description><![CDATA[Stories by Manish Joshi on Medium]]></description>
        <link>https://medium.com/@manishpersues?source=rss-9c0c16be50b0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*SBhrSv9rZuzAgfe9</url>
            <title>Stories by Manish Joshi on Medium</title>
            <link>https://medium.com/@manishpersues?source=rss-9c0c16be50b0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:51:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manishpersues/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Reddit SEO for AI Search: How to Get Your Brand Cited in ChatGPT, Gemini & Claude]]></title>
            <link>https://medium.com/@manishpersues/reddit-seo-for-ai-search-how-to-get-your-brand-cited-in-chatgpt-gemini-claude-989a6c30fc78?source=rss-9c0c16be50b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/989a6c30fc78</guid>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[ai-visibility-strategy]]></category>
            <category><![CDATA[ai-visibility]]></category>
            <dc:creator><![CDATA[Manish Joshi]]></dc:creator>
            <pubDate>Sat, 21 Feb 2026 11:42:10 GMT</pubDate>
            <atom:updated>2026-02-21T11:45:27.859Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="hero banner of reddit" src="https://cdn-images-1.medium.com/max/900/1*8CNygUIECuvA0swtDbjTSA.avif" /></figure><h3>The Shift From Search Rankings to AI Citations</h3><p>For the past two decades, search visibility meant ranking on Google. Today, a new layer has emerged. Users increasingly ask AI systems instead of search engines:</p><ul><li>“What’s the best CRM for startups?”</li><li>“Best IIT coaching center in Delhi?”</li><li>“Most reliable SaaS onboarding tool?”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OZSKBMOhqM_2k4o9d88-2w.png" /></figure><p>Instead of clicking ten blue links, they receive a summarized answer.</p><p>And if you look closely at many AI responses, you’ll notice something consistent. They often reference Reddit discussions. That’s not accidental. It reflects how AI models retrieve and prioritize information.</p><h3>Why Reddit Matters in the Age of AI Search</h3><p>Large Language Models (LLMs) rely on structured, publicly available, text-based discussions.</p><p>Reddit offers:</p><ul><li>Question-and-answer threads</li><li>Community validation through upvote</li><li>Long-form user experiences</li><li>Diverse opinions</li><li>Topical sub-communities</li></ul><p>From a machine-learning perspective, Reddit provides:</p><ol><li>Context-rich discussions</li><li>Multiple viewpoints on the same topic</li><li>Signals of trust (karma, upvotes, moderation)</li><li>Text that is easier to parse than video</li></ol><p>Compare this to a brand website, where messaging is controlled and promotional.</p><p>AI systems tend to value conversational consensus over self-claims. That’s why Reddit appears so frequently in AI-generated answers.</p><h3>How Reddit Content Becomes AI-Visible</h3><p>AI engines typically rely on retrieval-based systems layered over trained models. When answering a query, they:</p><ol><li>Identify relevant topic clusters.</li><li>Retrieve authoritative text sources.</li><li>Synthesize those sources into an answer.</li></ol><p>Reddit works well in this process because:</p><ul><li>Threads are indexed publicly.</li><li>Questions mirror real user queries.</li><li>Answers are naturally phrased.</li><li>Engagement signals highlight stronger responses.</li></ul><p>If your brand is consistently mentioned in relevant Reddit discussions, it increases the probability of retrieval during AI answer generation.</p><p>This is different from traditional SEO. It’s not just about ranking pages. It’s about becoming part of high-context conversations.</p><h3>Understanding Reddit’s Ecosystem Before Attempting Visibility</h3><p>Reddit is structured around subreddits topic-based communities with independent moderation and rules.</p><p>Each subreddit has:</p><ul><li>A specific audience</li><li>Cultural norms</li><li>Posting restrictions</li><li>Trust thresholds</li></ul><p>Two factors matter most:</p><h3>1. Karma (Reputation Score)</h3><p>Users earn karma when their posts and comments receive upvotes. Higher-karma accounts are perceived as more credible.</p><h3>2. Moderation Authority</h3><p>Moderators shape discussions and enforce quality standards. Their posts often carry stronger weight within the community.</p><p>Any strategy that ignores these trust mechanisms is likely to fail.</p><h3>Strategic Approaches to Reddit Visibility</h3><p>There are three primary ways brands attempt to gain presence on Reddit. Not all are equally sustainable.</p><h3>1. Organic Participation (Low Risk, Long-Term)</h3><p>This is the most durable strategy.</p><p>It involves:</p><ul><li>Identifying relevant subreddits</li><li>Monitoring ongoing discussions</li><li>Contributing helpful, non-promotional answers</li><li>Mentioning your brand only when contextually relevant</li></ul><p>This builds:</p><ul><li>Credibility</li><li>Karma</li><li>Natural brand associations</li></ul><p>Over time, consistent participation can lead to your brand being referenced organically by others. AI systems tend to favor authentic, discussion-based mentions.</p><h3>2. Authority-Based Participation (Moderate Risk, Higher Leverage)</h3><p>Some brands collaborate with established contributors or moderators to provide contextual insights. Because high-karma accounts carry stronger community trust, their mentions are more likely to gain engagement and visibility.</p><p>However, this approach requires:</p><ul><li>Sensitivity to subreddit rules</li><li>Transparency</li><li>Avoidance of manipulative patterns</li></ul><p>Reddit communities are highly responsive to inauthentic behavior.</p><h3>3. Community Control (High Risk, High Investment)</h3><p>In some cases, brands attempt deeper influence within specific subreddits by shaping discussions or supporting community growth. While this can create narrative positioning advantages, it carries:</p><ul><li>Ethical concerns</li><li>Reputation risk</li><li>Long-term sustainability questions</li></ul><p>From a strategic perspective, community manipulation rarely produces durable trust. And trust is ultimately what AI systems detect and amplify.</p><h3>Common Mistakes Brands Make on Reddit</h3><p>Many marketers approach Reddit like a social advertising platform. That mindset fails.</p><p>Reddit does not reward:</p><ul><li>Direct self-promotion</li><li>Repetitive brand mentions</li><li>Generic marketing language</li></ul><p>Reddit does reward:</p><ul><li>Specific experiences</li><li>Honest comparison</li><li>Transparency about affiliation</li><li>Useful, problem-solving answers</li></ul><p>If users perceive artificial behavior, discussions can quickly turn negative. And negative threads can also be indexed and referenced by AI systems.</p><h3>The Content Gap Most “Reddit SEO” Guides Ignore</h3><p>Most articles about Reddit marketing focus on:</p><ul><li>Driving referral traffic</li><li>Building backlinks</li><li>Running Reddit ads</li><li>Community engagement tactics</li></ul><p>Few discuss:</p><ul><li>AI retrieval behavior</li><li>Citation probability</li><li>How LLMs prioritize discussion-based content</li><li>The shift from ranking to referencing</li></ul><p>This is where the real opportunity lies. AI search is not link-driven in the traditional sense. It is context-driven. Brands that understand contextual visibility gain advantage.</p><h3>How to Build Sustainable AI Visibility Through Reddit</h3><p>A practical framework looks like this:</p><ol><li>Map subreddits aligned with your product category.</li><li>Study top-performing threads in those communities.</li><li>Identify common user pain points.</li><li>Contribute insights without promotional framing.</li><li>Track AI responses monthly to monitor citation patterns.</li><li>Diversify into other platforms simultaneously.</li></ol><p>Reddit should be part of your visibility strategy — not the entire strategy.</p><h3>The Future of AI Search and Platform Shifts</h3><p>Reddit currently benefits from being text-heavy and easily parsable.</p><p>However, AI systems are rapidly improving video understanding and transcript extraction.</p><p>As this improves:</p><ul><li>YouTube transcripts may gain more AI weight.</li><li>Short-form video captions could influence retrieval.</li><li>Multi-platform mentions will matter more.</li></ul><p>Brands that rely solely on Reddit visibility may lose advantage over time.</p><p>The future belongs to brands that:</p><ul><li>Encourage discussion</li><li>Build multi-platform authority</li><li>Create content worth referencing</li><li>Maintain consistency across ecosystems</li></ul><h3>Final Thoughts</h3><p>SEO used to be about rankings, AI visibility is about references. When users ask AI systems for recommendations, those systems look for patterns in public discourse. Reddit is currently one of the strongest sources of that discourse. The brands that succeed will not be the ones trying to control conversations. They will be the ones consistently contributing to them.</p><p>Because in AI search, authority isn’t declared.</p><p>It’s observed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=989a6c30fc78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Automate Schema Markup Using Google Tag Manager and ChatGPT (Without Developers or Plugins)]]></title>
            <link>https://medium.com/@manishpersues/how-to-automate-schema-markup-using-google-tag-manager-and-chatgpt-without-developers-or-plugins-679283334a42?source=rss-9c0c16be50b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/679283334a42</guid>
            <category><![CDATA[google-tag-manager]]></category>
            <category><![CDATA[json-schema]]></category>
            <dc:creator><![CDATA[Manish Joshi]]></dc:creator>
            <pubDate>Sun, 08 Feb 2026 10:34:47 GMT</pubDate>
            <atom:updated>2026-02-08T10:34:47.152Z</atom:updated>
            <content:encoded><![CDATA[<h3>If you’ve ever waited days (or weeks) for a developer to deploy structured data… this is for you.</h3><p>Schema markup is critical for SEO. It helps search engines understand your content and qualify for rich results. But traditionally, implementing schema requires:</p><ul><li>Developer bandwidth</li><li>CMS plugin dependencies</li><li>Template-level changes</li><li>Deployment cycles</li></ul><p>What if you could automate schema generation using <strong>Google Tag Manager</strong> and <strong>ChatGPT</strong> — without touching backend code?</p><p>This guide walks you through a practical, scalable workflow to automate Article schema generation using GTM and AI. And yes, it works.</p><h3>Why Automate Schema Markup?</h3><p>Before we jump into implementation, let’s align on why this matters.</p><h3>Benefits of Schema Automation</h3><ul><li>Faster deployment (minutes, not sprints)</li><li>No dependency on developers</li><li>No plugin conflicts</li><li>Custom logic tailored to your website</li><li>Better rich result eligibility</li></ul><p>If your website publishes blogs regularly, manual schema implementation becomes inefficient. Automation solves that.</p><h3>The Use Case: Automating Article Schema for Blog Pages</h3><p>Let’s say you want to generate dynamic Article schema for all blog posts under /blog/.</p><p>Here’s the workflow we’ll expand into a scalable method:</p><ol><li>Open a blog page</li><li>Inspect element</li><li>Copy the &lt;body&gt; HTML</li><li>Paste into ChatGPT</li><li>Ask ChatGPT to generate ES5-compatible JavaScript for GTM</li><li>Deploy script via Custom HTML tag</li><li>Test in Rich Results</li><li>Refine if necessary</li></ol><p>Now let’s break this down properly.</p><h3>Step-by-Step Workflow to Automate Article Schema</h3><h4>Step 1: Extract Page HTML</h4><p>Open a blog post on your site.</p><p>Right-click → Inspect → Copy the full &lt;body&gt; element.</p><p>You’re essentially giving ChatGPT the raw structure so it can understand:</p><ul><li>Headline</li><li>Author</li><li>Publish date</li><li>Featured image</li><li>Article body</li><li>Category (if available)</li></ul><p>This is the data layer we’ll extract dynamically.</p><h4>Step 2: Use ChatGPT to Generate Schema Extraction Script</h4><p><strong>Paste the HTML into ChatGPT and prompt:</strong></p><blockquote><em>“Create a custom JavaScript (ES5 version or below) compatible with Google Tag Manager that dynamically extracts headline, author, publish date, image, and article body, then generates valid JSON-LD Article schema and injects it into the page.”</em></blockquote><h4>Why ES5?</h4><p>Because GTM does not fully support modern ES6+ syntax in all environments.</p><h4>Step 3: Sample Generic ES5 Script Structure</h4><p>Below is a simplified example of what ChatGPT typically generates:</p><pre>&lt;script&gt;<br>(function() {<br>  function getText(selector) {<br>    var el = document.querySelector(selector);<br>    return el ? el.innerText.trim() : &#39;&#39;;<br>  }<br>function getAttr(selector, attr) {<br>    var el = document.querySelector(selector);<br>    return el ? el.getAttribute(attr) : &#39;&#39;;<br>  }<br>  var headline = getText(&#39;h1&#39;);<br>  var author = getText(&#39;.author-name&#39;);<br>  var publishDate = getAttr(&#39;meta[property=&quot;article:published_time&quot;]&#39;, &#39;content&#39;);<br>  var image = getAttr(&#39;.featured-image img&#39;, &#39;src&#39;);<br>  var articleBody = getText(&#39;.article-content&#39;);<br>  var schema = {<br>    &quot;@context&quot;: &quot;https://schema.org&quot;,<br>    &quot;@type&quot;: &quot;Article&quot;,<br>    &quot;headline&quot;: headline,<br>    &quot;author&quot;: {<br>      &quot;@type&quot;: &quot;Person&quot;,<br>      &quot;name&quot;: author<br>    },<br>    &quot;datePublished&quot;: publishDate,<br>    &quot;image&quot;: image,<br>    &quot;articleBody&quot;: articleBody<br>  };<br>  var script = document.createElement(&#39;script&#39;);<br>  script.type = &#39;application/ld+json&#39;;<br>  script.innerHTML = JSON.stringify(schema);<br>  document.head.appendChild(script);<br>})();<br>&lt;/script&gt;<br></pre><p><strong>This script:</strong></p><ul><li>Dynamically pulls data from the DOM</li><li>Builds valid JSON-LD</li><li>Injects schema into &lt;head&gt;</li></ul><p><strong>No backend required.</strong></p><h4>Step 4: Deploy via Google Tag Manager</h4><p><strong>Inside Google Tag Manager:</strong></p><ol><li>Create a new Tag</li><li>Choose <strong>Custom HTML</strong></li><li>Paste the script</li><li>Trigger → Page View → Some Pages</li><li>Condition → Page URL contains /blog/</li></ol><p>Publish container.</p><p>Done.</p><h4>Step 5: Validate Using Rich Results Test</h4><p><strong>Use:</strong></p><ul><li>Google Rich Results Test</li><li>Google Search Console</li></ul><p><strong>Paste the URL and verify:</strong></p><ul><li>Article detected</li><li>No missing required fields</li><li>No warnings (if possible)</li></ul><p><strong>If validation fails:</strong></p><ul><li>Refine selectors</li><li>Adjust date format (ISO 8601 required)</li><li>Ensure image URLs are absolute</li></ul><h3>Other Schema Types You Can Automate Using the Same Process</h3><p>The same Inspect → Extract → Generate → Deploy workflow can automate multiple schema types without developer or plugin dependency.</p><p>Examples include:</p><ul><li>FAQPage schema (from FAQ sections)</li><li>Person schema (from Author bio sections)</li><li>Product schema (from ecommerce product pages)</li><li>BreadcrumbList schema (from navigation breadcrumbs)</li><li>Organization schema (sitewide brand markup)</li><li>LocalBusiness schema (for location pages)</li><li>Service schema (for service landing pages)</li><li>Event schema</li><li>Review / AggregateRating schema</li><li>VideoObject schema</li><li>HowTo schema</li><li>JobPosting schema</li><li>Course schema</li><li>Recipe schema</li><li>WebPage variations (About, Contact, etc.)</li></ul><p>Once you understand how to extract consistent selectors from the DOM, nearly any structured data type can be automated using the same pattern.</p><h3>Making the Automation More Robust</h3><p>Here’s how you level this up.</p><h4>1. Add Fallback Logic</h4><p><strong>Example:</strong></p><pre>var author = getText(&#39;.author-name&#39;) || &#39;Editorial Team&#39;;</pre><p>Prevents schema errors if a field is missing.</p><h4>2. Use Dynamic Canonical URL</h4><pre>var canonical = document.querySelector(&#39;link[rel=&quot;canonical&quot;]&#39;).href;</pre><p><strong>Add:</strong></p><pre>&quot;url&quot;: canonical</pre><h4>3. Convert to BlogPosting (Recommended)</h4><p><strong>Instead of generic </strong><strong>Article, use:</strong></p><pre>&quot;@type&quot;: &quot;BlogPosting&quot;</pre><p>This improves semantic accuracy.</p><h4>4. Create Variables for Scalability</h4><p><strong>Instead of hardcoding selectors inside GTM:</strong></p><ul><li>Create DOM Variables</li><li>Map them inside your Custom HTML</li><li>Makes updates easier</li></ul><h3>Advanced Automation Strategy (Highly Recommended)</h3><p>Instead of copying &lt;body&gt; every time, build a reusable AI prompt template:</p><blockquote><em>“Based on the HTML structure below, create dynamic ES5 GTM script that extracts data using stable selectors and includes fallbacks.”</em></blockquote><p><strong>Save this template.</strong></p><p><strong>Now you can generate schema scripts for:</strong></p><ul><li>FAQ pages</li><li>Product pages</li><li>Category pages</li><li>Service pages</li></ul><p>All without plugins.</p><h3>Common Mistakes to Avoid</h3><p>Using ES6 arrow functions — — — — — → GTM may fail parsing</p><p>Relative image URLs — — — — — → Rich Results error</p><p>Wrong date format — — — — — → Must be ISO 8601</p><p>Injecting multiple schemas — — — — — → Can confuse Google</p><p>Hardcoding values — — — — — → Not scalable</p><h3>Performance &amp; SEO Considerations</h3><p><strong>Some SEOs worry:</strong></p><blockquote>“Will injecting schema via GTM affect crawling?”</blockquote><p>Google confirms JSON-LD injected via GTM is supported as long as:</p><ul><li>It renders before indexing</li><li>It’s visible in rendered HTML</li></ul><p><strong>Always verify in:</strong></p><ul><li>URL Inspection → View Crawled Page → HTML</li></ul><h3>Benefits vs Traditional Plugin-Based Schema</h3><p>Requires CMS access — — — — —&gt; No CMS modification</p><p>Limited customization — — — — → Fully customizable</p><p>Dev dependency — — — — → Independent</p><p>Slower iterations — — — — → Real-time updates</p><h3>When Should You NOT Use This?</h3><p><strong>Avoid this approach if:</strong></p><ul><li>Your site already has server-side schema</li><li>Your CMS natively generates accurate schema</li><li>Your dev team can deploy quickly</li></ul><p>This method is best for agile marketing teams.</p><h3>Scaling This Across Large Websites</h3><p><strong>For enterprise use:</strong></p><ol><li>Standardize selector naming conventions</li><li>Maintain schema templates library</li><li>Version control GTM containers</li><li>QA using staging environment</li><li>Monitor enhancements in Search Console weekly</li></ol><p>If you publish 50+ blogs per month, automation can save dozens of hours.</p><h3>Final Thoughts</h3><p>Schema markup should not be a bottleneck.</p><p><strong>By combining:</strong></p><ul><li>Google Tag Manager</li><li>ChatGPT</li><li>Smart DOM extraction logic</li></ul><p>You create a self-sufficient SEO automation system.</p><p>No waiting.<br>No plugins.<br>No dev tickets.</p><p><strong>Just scalable structured data implementation.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=679283334a42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-by-Step Guide: How to Track Users with Ad Blockers Using Google Tag Manager (GTM) and GA4]]></title>
            <link>https://medium.com/@manishpersues/step-by-step-guide-how-to-track-users-with-ad-blockers-using-google-tag-manager-gtm-and-ga4-5cc5bd674c22?source=rss-9c0c16be50b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cc5bd674c22</guid>
            <category><![CDATA[google-analytics-4]]></category>
            <category><![CDATA[google-tag-manager]]></category>
            <dc:creator><![CDATA[Manish Joshi]]></dc:creator>
            <pubDate>Sat, 21 Jun 2025 13:34:02 GMT</pubDate>
            <atom:updated>2025-06-21T13:34:02.603Z</atom:updated>
            <content:encoded><![CDATA[<p>In the digital marketing world, advertisements play a crucial role in monetization. However, with more users adopting ad blockers, it’s essential to ensure that your ads are seen by the right people. In this guide, we’ll walk you through how to use <strong>Google Tag Manager (GTM)</strong> and <strong>Google Analytics 4 (GA4)</strong> to detect whether your visitors are using ad blockers.</p><h4>1. Add a Small Script to Your Website</h4><p>To start, you’ll need a small JavaScript file that detects if the ad blocker is active. Here’s what you need to do:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*-ZSa5xyIWeLycJp7msI9QA.png" /><figcaption>javascript code to check for ad blockers</figcaption></figure><ul><li><strong>Create a new JavaScript file</strong> called <strong>ads.js</strong>. The file name is important because ad blockers typically block scripts with specific keywords like <strong>&quot;ads&quot;</strong> or <strong>&quot;advertisement&quot;</strong> in the name.</li><li><strong>The script content is simple</strong>: It pushes a variable to the <strong>dataLayer</strong> called adsallowed and sets its value to <strong>true</strong> when the script loads successfully.</li></ul><pre>window.dataLayer = window.dataLayer || [];<br>window.dataLayer.push({&#39;adsallowed&#39;: true});</pre><ul><li><strong>Why the name matters</strong>: Ad blockers specifically look for certain keywords in script file names. By naming your file ads.js, you ensure that ad blockers can identify it and potentially block it. If the script is blocked, the adsallowed variable will not be set to true.</li></ul><h4>2. Upload the Script to Your Server</h4><p>Once the <strong>ads.js</strong> file is created, upload it to your server. The process of uploading the script depends on your platform:</p><ul><li>For <strong>WordPress</strong>, you can use plugins that allow you to add scripts to the header. You can also add this script directly to your theme’s <strong>header.php</strong> file.</li></ul><h4>3. Add the Script to Your Website</h4><p>Now that the file is uploaded, include the script in the <strong>&lt;head&gt;</strong> section of your website so that it loads when the page is accessed. Make sure to replace yourdomain.com with your actual domain.</p><p>Example:</p><pre>&lt;script src=&quot;https://yourdomain.com/path/to/ads.js&quot;&gt;&lt;/script&gt;</pre><h4>4. Test the Script</h4><p>Before moving forward, it’s important to verify that the script is working correctly. Here’s how to test:</p><ul><li><strong>Preview</strong>: Open the page on your website and check the <strong>dataLayer</strong> using browser tools (right-click → Inspect → Console → DataLayer). You should see the adsallowed variable set to true.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q3XAYmI38iWrTqwiuPbu3g.png" /></figure><ul><li><strong>Enable an Ad Blocker</strong>: Next, enable your ad blocker and refresh the page. The <strong>dataLayer</strong> should no longer show the adsallowed variable, indicating that the ad blocker has prevented the script from loading.</li></ul><h4>5. Set Up Google Tag Manager (GTM)</h4><p>Now, let’s move to Google Tag Manager (GTM) to detect when the ad blocker is enabled.</p><p><strong>Step 1: Create a New Data Layer Variable</strong></p><figure><img alt="creating a data layer variable in google tag manager to check if the ad blocker is active" src="https://cdn-images-1.medium.com/max/1024/1*wBuGlI70KSyDrzOipQVHkw.png" /></figure><ol><li>Open your GTM container and create a new variable of the type <strong>Data Layer Variable</strong>.</li><li>Name the variable <strong>adsallowed</strong> to match the variable pushed into the <strong>dataLayer</strong> by your script.</li><li>Under the <strong>Data Layer Variable Name</strong>, input <strong>adsallowed</strong>.</li><li>If the variable is undefined (when the ad blocker is enabled), you can set a fallback value. For example, convert undefined values to <strong>false</strong>.</li><li>Save the variable.</li></ol><p><strong>Step 2: Create a Trigger for Ad Blocker Detection</strong></p><p>Next, you need to create a trigger in GTM that will fire when the ad blocker is enabled. This trigger will check if the adsallowed variable is set to true or false.</p><figure><img alt="creating a trigger in google tag manager to fire when the adsallowed variable if false" src="https://cdn-images-1.medium.com/max/1024/1*j2mu_bpfl3SabGoRLsJJ_A.png" /></figure><ol><li>Go to <strong>Triggers</strong> and create a new <strong>Page View Trigger</strong>.</li><li>Set the condition to check if the variable <strong>adsallowed</strong> is not equal to true.</li><li>Save the trigger.</li></ol><h4>6. Configure Google Analytics 4 (GA4) to Track Ad Blocker Users</h4><p>Once the trigger is set, you can pass this data to <strong>Google Analytics 4</strong> to track visitors with ad blockers.</p><figure><img alt="adding a new field to set called ads to GA4 config tag" src="https://cdn-images-1.medium.com/max/1024/1*qDWw0Ayfmv8iT8cfWWTJYQ.png" /></figure><p><strong>Step 1: Modify your GA4 Configuration Tag</strong></p><ol><li>In GTM, go to <strong>Tags</strong> and create a new <strong>GA4 Configuration Tag</strong>.</li><li>Add the <strong>Measurement ID</strong> for your GA4 property.</li><li>Under <strong>Fields to Set</strong>, add a new field named <strong>ads</strong> and set the value to the <strong>adsallowed</strong> variable that we created earlier.</li><li>Save the tag and link it to the trigger you set up earlier to fire when the ad blocker is detected.</li></ol><h4>7. Create an Event to Track Ad Blocker Users</h4><p>You can create an event to track users who have ad blockers enabled:</p><figure><img alt="creating a tag in GA4 to check if the user has ads blocked" src="https://cdn-images-1.medium.com/max/1024/1*TUvRPuWpj08EL1uKZotsOQ.png" /></figure><ol><li>Go to <strong>Tags</strong> in GTM and create a <strong>New Tag</strong> for the event.</li><li>Set the tag type as <strong>GA4 Event</strong> and choose the <strong>GA4 Configuration</strong> tag that you previously set up.</li><li>Under <strong>Event Name</strong>, you can name it something like <strong>ad_blocker_enabled</strong>.</li><li>Under <strong>Event Parameters</strong>, you can include the <strong>adsallowed</strong> variable to pass whether the ad blocker is enabled (false or true).</li><li>Link this tag to the trigger you created for when the ad blocker is detected.</li></ol><h4>8. Testing the Setup</h4><p>Finally, you should test the setup to ensure everything works as expected.</p><ol><li>Go to the GTM <strong>Preview Mode</strong> and refresh the page.</li><li><strong>Check the dataLayer</strong> to ensure the adsallowed variable is either set to true or false.</li><li>If an ad blocker is enabled, the trigger should fire and the <strong>GA4 event</strong> will be sent, allowing you to see whether the user has an ad blocker.</li></ol><h4>9. Analyze the Data in Google Analytics 4</h4><p>Once the setup is complete and data is flowing into GA4, you can use it to analyze your visitors:</p><ul><li>You can create custom <strong>audiences</strong> in GA4 to segment users who have ad blockers enabled and track their behavior.</li><li>Use this data to optimize your ad strategy, perhaps by offering incentives for users to disable their ad blockers.</li></ul><h3>Conclusion</h3><p>By following these steps, you’ll have a system set up to detect and track users who have ad blockers enabled using <strong>Google Tag Manager (GTM)</strong> and <strong>Google Analytics 4 (GA4)</strong>. This will provide you with valuable insights into how many of your visitors are not seeing your ads, helping you tailor your strategy accordingly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cc5bd674c22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ GA4 Cookie Format Upgrade: From GS1 to GS2 — Everything You Need to Know]]></title>
            <link>https://medium.com/@manishpersues/ga4-cookie-format-upgrade-from-gs1-to-gs2-everything-you-need-to-know-c38ca6fa8d62?source=rss-9c0c16be50b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c38ca6fa8d62</guid>
            <category><![CDATA[ga4-updates]]></category>
            <dc:creator><![CDATA[Manish Joshi]]></dc:creator>
            <pubDate>Sun, 18 May 2025 07:31:54 GMT</pubDate>
            <atom:updated>2025-08-09T06:32:41.397Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔍 GA4 Cookie Format Upgrade: From GS1 to GS2 — Everything You Need to Know</h3><figure><img alt="image showing the difference between GS2 &amp; GS1 formatting of GA4 cookie" src="https://cdn-images-1.medium.com/max/1024/1*sQxJQ_V6dBYvs9YfsH770w.png" /></figure><p>Insight Credits: <a href="https://www.linkedin.com/in/david-vallejo-sanz?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app">David Vallejo</a></p><p>Google Analytics 4 (GA4) has officially upgraded the session cookie structure from <strong>GS1</strong> to <strong>GS2</strong>, modernizing how it stores session data in cookies with the _ga_* prefix. While this change is invisible to most users, <strong>developers and analysts who parse cookies directly</strong> must pay close attention.</p><p>In this detailed post, we’ll walk you through:</p><ul><li>The <strong>key differences</strong> between GS1 and GS2</li><li>The <strong>reasons behind the update</strong></li><li>The <strong>fields involved</strong></li><li>And the <strong>actions you should take</strong></li></ul><h3>What Changed?</h3><p>The new GS2 cookie format:</p><ul><li>Applies only to <strong>GA4’s session-related cookies</strong>, not the base _ga cookie</li><li>Replaces the <strong>dot-delimited, position-based structure</strong> of GS1 with a <strong>flexible, prefixed key-value format</strong></li><li>Uses <strong>dollar signs (</strong><strong>$)</strong> as separators and includes <strong>descriptive single-letter prefixes</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*VaIgRQHOe9KLmCQM8-84gQ.png" /></figure><h3>Why Did Google Change the Format?</h3><h3>1. Improved Extensibility</h3><p>GS2 allows new fields to be added <strong>without breaking existing parsers</strong>, unlike GS1 which required every value to be in a specific position.</p><h3>2. Self-Documenting Structure</h3><p>Prefixes like s1746825440 (for Session ID) or t1746825440 (for Timestamp) clearly describe what each value represents.</p><h3>3. Version Control</h3><p>The format now starts with GS2, giving Google a <strong>clear way to version cookie formats</strong> and evolve toward future versions (GS3, GS4…).</p><h3>4. Data Optimization</h3><ul><li><strong>Empty values can be skipped</strong>, reducing payload size.</li><li><strong>Order doesn’t matter</strong>, so parsers can loop flexibly.</li><li>No need for placeholder values, unlike GS1.</li></ul><h3>5. Better Error Handling</h3><p>GS2 format allows parsers to:</p><ul><li>Ignore unknown tags</li><li>Handle missing values gracefully</li><li>Validate more effectively</li></ul><h3>6. Modern Serialization Style</h3><p>The prefix-value format mirrors:</p><ul><li><strong>URL query strings</strong></li><li><strong>JSON-like key-value pairs</strong></li><li>Modern web data practices</li></ul><h3>7. Alignment with Other Google Tracking</h3><p>Other cookies (e.g., <strong>GCLID</strong>) are adopting similar structures for consistency across Google’s ecosystem.</p><h4>Note:</h4><p>It’s important to note that <strong>GS1-formatted cookies may persist for a while</strong>, meaning that <strong>older cookies could still be active</strong> during the transition period. For developers, this means you must ensure your code is capable of handling both GS1 and GS2 formats in parallel, especially if you’re running custom integrations or parsing cookies manually.</p><p>During this coexistence phase, Google Analytics will send both GS1 and GS2 cookies for sessions, so your parsers should be flexible enough to handle these different formats. Failure to do so could result in <strong>broken integrations</strong>, missing session data, or incorrect attribution.</p><h3>Format Comparison: GS1 vs GS2</h3><h3>GS1 Example:</h3><pre>GS1.1.1746825440.14.0.17468254406.0.0.295082955</pre><p><strong>Structure:</strong></p><ul><li>Dot (.)-separated</li><li>Fixed positional values (e.g., session ID, timestamps, flags)</li><li>Harder to extend or parse flexibly</li></ul><h3>GS2 Example:</h3><pre>GS2.1.s1746825440$o14$g0$t1746825440$j60$l0$h295082955</pre><p><strong>Structure:</strong></p><ul><li>Prefixed values (e.g., s for session ID)</li><li>Separated by <strong>$</strong></li><li>Flexible, parsable, and extensible</li></ul><h3>Prefix Legend (GS2)</h3><p>PrefixMeaning sSession ID, oSession Number, gSession Engaged Flag, tLast Hit Timestamp, jJoin Timer, lEnhanced User ID Logged-in State, hEnhanced User ID (hash), dJoin ID (optional, may not always appear)</p><h3>Who’s Affected?</h3><p>You need to take action <strong>if any of the following apply</strong>:</p><ul><li>You <strong>directly parse GA4 cookies</strong> in your code</li><li>You <strong>send data via Measurement Protocol</strong> using values extracted from cookies</li><li>You have <strong>custom integrations</strong> with CRMs, analytics layers, or server-side tracking setups</li></ul><p>If you’re using <strong>standard GA4 tags or gtag.js</strong>, you’re fine. No action needed.</p><h3>What Parsing a GA4 Cookie Means?</h3><p><strong>Parsing GA4 cookies for custom integration</strong> means <strong>programmatically reading and extracting specific data</strong> from the GA4 cookies (like _ga, _ga_&lt;container-id&gt;, etc.) to use that data outside of Google Analytics — typically in <strong>custom setups</strong> or <strong>third-party platforms</strong>.</p><h3>Here’s what it actually involves:</h3><p><strong>Reading the cookie value</strong> from the browser using JavaScript or server-side logic.</p><ul><li>Example: Reading _ga_ABC123 and getting a string like<br> GS1.1.1716021046.1716021046.0.0.0</li></ul><p><strong>Breaking that string down</strong> (parsing) to extract useful values:</p><ul><li>Session ID</li><li>Timestamps</li><li>Client ID, etc.</li></ul><p><strong>Using that extracted data</strong> in other systems:</p><ul><li>Sending to a <strong>data warehouse</strong></li><li>Using it in <strong>server-side tagging</strong> setups</li><li>Feeding it into <strong>custom dashboards</strong></li><li>Matching analytics data with CRM or ad platform data for advanced attribution</li></ul><h3>Example Use Case:</h3><p>You’re doing <strong>server-side tracking</strong> and want to <strong>capture the GA4 Client ID</strong> or session data from cookies to send with server-side hits via <strong>Measurement Protocol</strong>.<br> To do this, your system must <em>parse</em> the GA4 cookie to get those values and include them in outbound requests.</p><h3>Why GS2 Matters Here:</h3><p>The format change from GS1 to GS2 affects <strong>how</strong> you parse the cookie string — because the structure, delimiters, and identifiers are different. If your code assumes GS1 and Google starts sending GS2, it could break your custom integration.</p><h3>Example: How to Parse the New GS2 Format</h3><pre>// ES6 Version<br>const parseGoogleStreamCookie = str =&gt; {<br>  const mapping = {<br>    s: &quot;sessionId&quot;,<br>    o: &quot;sessionNumber&quot;,<br>    g: &quot;sessionEngaged&quot;,<br>    t: &quot;lastHitTimestamp&quot;,<br>    j: &quot;joinTimer&quot;,<br>    l: &quot;enhancedUserIdLoggedInState&quot;,<br>    h: &quot;enhancedUserId&quot;,<br>    d: &quot;joinId&quot;<br>  };<br>  <br>  const [version, , data] = str.split(&#39;.&#39;);<br>  <br>  if (version === &#39;GS1&#39;) {<br>    const values = str.split(&#39;.&#39;).slice(2);<br>    const keys = [&#39;s&#39;, &#39;o&#39;, &#39;g&#39;, &#39;t&#39;, &#39;j&#39;, &#39;l&#39;, &#39;h&#39;, &#39;d&#39;];<br>    return Object.fromEntries(<br>      keys.map((k, i) =&gt; [mapping[k], values[i] || &#39;&#39;])<br>    );<br>  }<br>  <br>  return Object.fromEntries(<br>    data.replace(/%24/g, &#39;$&#39;).split(&#39;$&#39;)<br>         .map(s =&gt; [mapping[s[0]] || s[0], decodeURIComponent(s.slice(1))])<br>  );<br>};</pre><p>This will output a <strong>clean, key-labeled object</strong> with session values.</p><h3>What Should You Do?</h3><h3>1. Audit Your Code</h3><p>Check for logic that parses _ga_* cookies manually.</p><h3>2. Update Parsers</h3><p>Switch to parsing $-separated, prefixed formats. Use the parser code above as a base.</p><h3>3. Avoid Direct Cookie Parsing (if possible)</h3><p>Use <strong>GA4’s </strong><strong>gtag.get() or measurement ID-based dataLayer methods</strong> instead of reading cookies manually.</p><h3>4. Test in DevTools</h3><p>Use Chrome DevTools or a GA Debugger to inspect the values being set and confirm compatibility.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c38ca6fa8d62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Automated Article JSON‑LD Injection via Google Tag Manager (GTM)]]></title>
            <link>https://medium.com/@manishpersues/how-i-automated-article-json-ld-injection-via-google-tag-manager-gtm-0936af087fc0?source=rss-9c0c16be50b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/0936af087fc0</guid>
            <category><![CDATA[schema-markup]]></category>
            <category><![CDATA[google-tag-manager]]></category>
            <dc:creator><![CDATA[Manish Joshi]]></dc:creator>
            <pubDate>Sat, 19 Apr 2025 15:58:57 GMT</pubDate>
            <atom:updated>2025-04-19T16:05:06.486Z</atom:updated>
            <content:encoded><![CDATA[<p>Structured data is critical for helping search engines understand and surface your content. Rather than hard‑coding JSON‑LD into each template, I set up a <strong>single GTM tag</strong> that automatically pulls article details from the DOM and injects a valid &lt;script type=&quot;application/ld+json&quot;&gt; on every blog post. Here’s exactly how I did it—with help from ChatGPT’s o4‑mini‑high model—and how you can, too.</p><h3>1. The Challenge: Centralizing Article Schema</h3><p>Embedding JSON‑LD by hand in every article template:</p><ul><li>Is error‑prone</li><li>Requires developer work on your CMS</li><li>Makes updates a headache</li></ul><p>Using GTM solves all that: once the tag is live, it fires on any page matching your blog URL pattern and injects schema based on the page’s actual content.</p><h3>2. Gathering My Page’s HTML for ChatGPT</h3><ol><li><strong>Open the article in your browser</strong> (e.g. Chrome).</li><li><strong>Right‑click → Inspect</strong>, switch to the <strong>Elements</strong> panel.</li><li><strong>Locate the </strong><strong>&lt;body&gt; element</strong> that contains your article’s markup.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*gtShXLJZZXGY0VpvJyaoBQ.png" /></figure><ol><li><strong>Copy</strong> the entire &lt;body&gt; element (including nested headings, links, images, badges, etc.).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*AqYuY0bRQ7mYCTdc-NgAqw.png" /></figure><ol><li><strong>Paste</strong> that HTML snippet into my ChatGPT prompt, so it could see my site’s actual structure and CSS classes.</li></ol><p>By doing this, I gave ChatGPT full context on:</p><ul><li>Which selectors held the headline, author link, date, image, section badge, and so on</li><li>The exact class names used in my template</li></ul><h3>3. Prompting ChatGPT with the o4‑mini‑high Model</h3><p>In my GTM container, I opened ChatGPT and prefaced my prompt:</p><blockquote><em>“Using the </em><strong><em>OpenAI o4‑mini‑high</em></strong><em> model, here’s my page’s </em><em>&lt;body&gt; HTML. Please write a Custom HTML snippet for GTM that:</em></blockquote><ul><li>Scrapes headline, alt‑headline, author, dates, image, section badge, keywords, description, URL</li><li>Builds a perfectly valid JSON‑LD Article object</li><li>Injects it into the &lt;head&gt; on DOM ready</li><li>Adds an easy‑to‑find id on the script for debugging</li><li>Logs progress to the console</li></ul><blockquote><em>Ignore the specific values; focus on the selectors and structure.”</em></blockquote><p>Within seconds, ChatGPT returned a fully annotated script that:</p><ul><li>Parsed dates like “February 26, 2025” to ISO format</li><li>Pulled in my static publisher info (logo URL, dimensions)</li><li>Wrapped everything in a self‑executing function</li><li>Logged steps with [SchemaInjector] … prefixes</li></ul><h3>4. Reviewing &amp; Refining the Script</h3><p>I pasted the ChatGPT output into my GTM <strong>Custom HTML</strong> tag and added a trigger for Page URL contains /articles/. In browser Console I saw:</p><pre>[SchemaInjector] init  <br>[SchemaInjector] building schema…  <br>[SchemaInjector] injected schema: { … }</pre><p>To inspect the actual JSON‑LD:</p><ol><li>Open <strong>DevTools → Elements</strong></li><li>Expand &lt;head&gt; and search for id=&quot;injectedSchema&quot;</li><li>Verify the injected &lt;script type=&quot;application/ld+json&quot;&gt; block contained exactly my article’s data</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*ceGfep3nSd4P4-7VHSxV4g.png" /></figure><h3>5. Creating a Generalized, Templatized Version</h3><p>Once the custom script worked, I asked ChatGPT to produce a <strong>config‑driven</strong> version so anyone could:</p><ul><li>Swap out selectors under a CONFIG object</li><li>Define their own publisher name/logo</li><li>Reuse the same tag across different sites</li></ul><p>ChatGPT delivered a snippet like this:</p><pre>&lt;script&gt;<br>(function() {<br>  // === CONFIG ===<br>  var CONFIG = {<br>    headlineSelector:    &#39;.POST_HEADING_SELECTOR&#39;,<br>    altHeadlineSelector: &#39;.ALT_HEADLINE_SELECTOR&#39;,<br>    authorSelector:      &#39;.AUTHOR_LINK_SELECTOR&#39;,<br>    dateSelector:        &#39;.DATE_TEXT_SELECTOR&#39;,<br>    imageSelector:       &#39;.MAIN_IMAGE_SELECTOR&#39;,<br>    sectionSelector:     &#39;.CATEGORY_BADGE_SELECTOR&#39;,<br>    keywordsMetaName:    &#39;keywords&#39;,<br>    descriptionMetaName: &#39;description&#39;,<br>    publisherName:       &#39;YOUR PUBLISHER NAME&#39;,<br>    publisherLogoUrl:    &#39;YOUR_LOGO_URL&#39;,<br>    publisherLogoWidth:  500,<br>    publisherLogoHeight: 136,<br>    scriptId:            &#39;gtm-schema&#39;<br>  };<br>function toISODate(text) {<br>    var d = new Date(text);<br>    if (isNaN(d)) return null;<br>    return d.toISOString().split(&#39;.&#39;)[0] + &#39;+00:00&#39;;<br>  }<br>function textOf(sel) {<br>    var el = document.querySelector(sel);<br>    return el ? el.textContent.trim() : &#39;&#39;;<br>  }<br>function attrOf(sel, attr) {<br>    var el = document.querySelector(sel);<br>    return el ? el.getAttribute(attr) : &#39;&#39;;<br>  }<br>function inject() {<br>    var headline    = textOf(CONFIG.headlineSelector);<br>    if (!headline) return;<br>    var schema = {<br>      &#39;@context&#39;:            &#39;https://schema.org&#39;,<br>      &#39;@type&#39;:               &#39;Article&#39;,<br>      headline:              headline,<br>      alternativeHeadline:   textOf(CONFIG.altHeadlineSelector) || headline,<br>      author: {<br>        &#39;@type&#39;: &#39;Person&#39;,<br>        name:    textOf(CONFIG.authorSelector),<br>        url:     document.querySelector(CONFIG.authorSelector)?.href || &#39;&#39;<br>      },<br>      datePublished:        toISODate(textOf(CONFIG.dateSelector)),<br>      dateModified:         toISODate(textOf(CONFIG.dateSelector)),<br>      publisher: {<br>        &#39;@type&#39;: &#39;Organization&#39;,<br>        name:    CONFIG.publisherName,<br>        logo: {<br>          &#39;@type&#39;:  &#39;ImageObject&#39;,<br>          url:      CONFIG.publisherLogoUrl,<br>          width:    CONFIG.publisherLogoWidth,<br>          height:   CONFIG.publisherLogoHeight<br>        }<br>      },<br>      image: {<br>        &#39;@type&#39;:  &#39;ImageObject&#39;,<br>        url:      document.querySelector(CONFIG.imageSelector)?.src || &#39;&#39;,<br>        width:    document.querySelector(CONFIG.imageSelector)?.naturalWidth || &#39;&#39;,<br>        height:   document.querySelector(CONFIG.imageSelector)?.naturalHeight || &#39;&#39;<br>      },<br>      articleSection:       textOf(CONFIG.sectionSelector),<br>      keywords:             attrOf(`meta[name=&quot;${CONFIG.keywordsMetaName}&quot;]`, &#39;content&#39;),<br>      description:          attrOf(`meta[name=&quot;${CONFIG.descriptionMetaName}&quot;]`, &#39;content&#39;),<br>      mainEntityOfPage: {<br>        &#39;@type&#39;: &#39;WebPage&#39;,<br>        &#39;@id&#39;:   location.href<br>      },<br>      isAccessibleForFree:  true,<br>      url:                  location.href,<br>      potentialAction: {<br>        &#39;@type&#39;:  &#39;ReadAction&#39;,<br>        target: [{<br>          &#39;@type&#39;:       &#39;EntryPoint&#39;,<br>          urlTemplate:  location.href<br>        }]<br>      }<br>    };<br>var s = document.createElement(&#39;script&#39;);<br>    s.type = &#39;application/ld+json&#39;;<br>    s.id   = CONFIG.scriptId;<br>    s.textContent = JSON.stringify(schema, null, 2);<br>    document.head.appendChild(s);<br>  }<br>if (document.readyState === &#39;loading&#39;)<br>    document.addEventListener(&#39;DOMContentLoaded&#39;, inject);<br>  else<br>    inject();<br>})();<br>&lt;/script&gt;</pre><h3>6. Full GTM Setup Walkthrough</h3><ol><li><strong>Login</strong> to GTM and select your container.</li><li><strong>Tags → New → Custom HTML</strong></li><li>Paste the <strong>templatized script</strong>.</li><li><strong>Triggering → New → Page View<br>Condition:</strong> <strong>Page URL contains </strong><strong>/articles/</strong> (adjust as needed).</li><li><strong>Save &amp; Publish</strong>.</li><li><strong>Preview</strong> the container, navigate to an article page, and confirm:</li></ol><ul><li>Tag fired on page load</li><li>Console logs appear</li><li>&lt;script id=&quot;gtm-schema&quot;&gt; shows up under &lt;head&gt;</li></ul><h3>7. Validating Your Structured Data</h3><ul><li><strong>Google Rich Results Test</strong> (<a href="https://search.google.com/test/rich-results">https://search.google.com/test/rich-results</a>):</li><li>Paste your article URL → “Test URL”</li><li>Confirm <strong>Article</strong> detected, no errors</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*9eWK8kpr5S3seispoY5RBA.png" /></figure><ul><li><strong>Lighthouse SEO audit</strong> in Chrome DevTools → Lighthouse → SEO</li><li><strong>Schema Markup Validator</strong> for detailed checks</li></ul><h3>8. Best Practices &amp; Maintenance</h3><ul><li><strong>Keep your selectors in </strong><strong>CONFIG up to date</strong> when your theme changes.</li><li><strong>Use clear GTM version names</strong> for easy rollback.</li><li><strong>Retain console logs</strong> for debugging in Preview mode.</li><li><strong>Extend the pattern</strong> for Product, Recipe, Event schema by swapping out the JSON‑LD object.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0936af087fc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>