Skip to content

vicktornl/wagtail-analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wagtail Analytics

Version

A set of analytical features for your Wagtail CMS.

Dashboard

Features

  • Dashboard
  • Plausible, Google Analytics (GA4), Google Tag Manager and Site verification settings per site

Supported platforms

  • Plausible
  • Google Analytics (GA4)
  • Google Tag Manager

Requirements

Installation

Install the package

pip install wagtail-analytics

Add wagtail_analytics to your INSTALLED_APPS

INSTALLED_APPS = [
    ...
    "wagtail_analytics",
]

Run migrate

manage.py migrate

Include wagtail_analytics/head.html in the head of your templates (typically your base.html template)

<!DOCTYPE html>
<html>
    <head>
        {% include "wagtail_analytics/head.html" %}
        ...

Include wagtail_analytics/body.html at the top of your body

<body>
    {% include "wagtail_analytics/body.html" %}
    ...
WAGTAIL_ANALYTICS_PLAUSIBLE_API_KEY = "xxx"
WAGTAIL_ANALYTICS_GA_KEY_CONTENT = '{"type":"service_account","project_id":"...'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •