Skip to content

Small plugin that allows you to add Google Analytics to your Misago forum with zero template edits.

License

Notifications You must be signed in to change notification settings

rafalp/misago-ga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Misago Google Analytics

Small and simple plugin that adds Google Analytics tracking script to your Misago forum.

Installation

Put misagoga directory under your python path, then add following entries to your installation settings:

INSTALLED_APPS

'misagoga'

TEMPLATE_MIDDLEWARES

'misagoga.templatemiddleware.GoogleAnalyticsMiddleware'

After that, add path to misagoga templates to your TEMPLATE_DIRS.

Finally, set add following code to your config:

# Google Analytics ID
GOOGLE_ANALYTICS_ID = 'YOUR GOOGLE ANALYTICS ID'

Don't forget to replace "YOUR GOOGLE ANALYTICS ID" with your Analytics service ID, you'll find it your GA control panel.

Can't find INSTALLED_APPS or TEMPLATE_MIDDLEWARES?

This would mean you haven't installed any extensions to your Misago. To expose those settings, add following codes at the end of your settings.py:

INSTALLED_APPS += (
    'misagoga',
)

TEMPLATE_MIDDLEWARES += (
    'misagoga.templatemiddleware.GoogleAnalyticsMiddleware',
)

Same pattern goes for TEMPLATE_DIRS except it should already be defined in your settings.py

Authors

Rafał Pitoń

Copyright and license

This program comes with ABSOLUTELY NO WARRANTY.
This is free software and you are welcome to redistribute it under the conditions described in the license.

For the complete license, refer to LICENSE.md

About

Small plugin that allows you to add Google Analytics to your Misago forum with zero template edits.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages