Skip to content

joeyhofman123/wagtail-analytics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wagtail Analytics

Version

A set of analytical features for your Wagtail CMS.

Dashboard

Features

  • Google Analytics dashboard
  • Google Analytics, Google Tag Manager and Site verification settings per site

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_GA_KEY_CONTENT = '{"type":"service_account","project_id":"...'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 96.2%
  • Python 2.5%
  • HTML 1.1%
  • Other 0.2%