pypi wagtail-herald 0.4.0
v0.4.0: Analytics & Additional Features

latest releases: 0.12.1, 0.12.0, 0.11.1...
8 months ago

What's New

Google Tag Manager Integration

  • Add gtm_container_id field to SEOSettings with validation (GTM-XXXXXX format)
  • GTM script automatically included in {% seo_head %} output
  • GTM noscript fallback in new {% seo_body %} template tag

robots.txt Management

  • Add robots_txt field to SEOSettings for custom content
  • New robots_txt view with sensible defaults (allow all, include sitemap)
  • Easy integration via include('wagtail_herald.urls')

Custom Code Injection

  • Add custom_body_end_html field for HTML before </body>
  • Use cases: chat widgets (Intercom, Zendesk), deferred scripts, third-party integrations

New Template Tag

  • {% seo_body %} - Outputs GTM noscript fallback and custom body end HTML

Breaking Changes

Removed Fields

  • google_site_verification - Use GTM, DNS verification, or custom_head_html
  • bing_site_verification - Use GTM, DNS verification, or custom_head_html

Migration Guide

  1. Run migrations:

    python manage.py migrate
  2. Add {% seo_body %} to your base template:

    <body>
        {% seo_body %}
        <!-- your content -->
    </body>
  3. For robots.txt, add to urls.py:

    path('', include('wagtail_herald.urls')),

Full Changelog

v0.3.0...v0.4.0

Don't miss a new wagtail-herald release

NewReleases is sending notifications on new releases.