fix: add GA gtag.js snippet to head for Search Console verification
Injects the raw Google Analytics snippet via theme override so Google Search Console can verify site ownership. Removes the duplicate Material built-in analytics config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
12
docs/overrides/main.html
Normal file
12
docs/overrides/main.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block extrahead %}
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VHRY2VKY9K"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-VHRY2VKY9K');
|
||||
</script>
|
||||
{% endblock %}
|
||||
@@ -69,9 +69,6 @@ extra:
|
||||
- icon: fontawesome/brands/medium
|
||||
link: https://alirezarezvani.medium.com
|
||||
name: Medium
|
||||
analytics:
|
||||
provider: google
|
||||
property: G-VHRY2VKY9K
|
||||
generator: false
|
||||
|
||||
extra_css:
|
||||
|
||||
Reference in New Issue
Block a user