Skip to content

Commit 5143870

Browse files
calderbuildclaude
andcommitted
Add WriteSonic AI SEO Fixer integration for enhanced SEO optimization
- Integrate WriteSonic AI SEO audit and optimization tool - Add production-only loading to avoid development environment conflicts - Implement async/defer loading for performance optimization - Add error handling with existence check before configuration - Load script after page load to prevent render blocking 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b159fc6 commit 5143870

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

_includes/head.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,25 @@
341341
<!-- Image Optimization and Lazy Loading -->
342342
<script src="{{ "/js/image-optimization.js" | prepend: site.baseurl }}"></script>
343343

344+
<!-- WriteSonic AI SEO Fixer -->
345+
{% if jekyll.environment == 'production' %}
346+
<script src="https://seo-fixer.writesonic.com/site-audit/fixer-script/index.js"
347+
id="wsAiSeoMb"
348+
type="application/javascript"
349+
async
350+
defer></script>
351+
<script id="wsAiSeoInitScript">
352+
window.addEventListener('load', function() {
353+
if (typeof wsSEOfixer !== 'undefined') {
354+
wsSEOfixer.configure({
355+
hostURL: 'https://seo-fixer.writesonic.com',
356+
siteID: '68c65938da5ef3d0569cec4a'
357+
});
358+
}
359+
});
360+
</script>
361+
{% endif %}
362+
344363
<!-- Service Worker Registration -->
345364
{% if jekyll.environment == 'production' %}
346365
<script>

0 commit comments

Comments
 (0)