• GitHub
  • Documentation
  • Discord
  • Tip
search
  • chevron_right Threads
  • label Dev Development

misago-ga or something else?

DmitriyM
Aug. 27, 2017
chat_bubble_outline 1
  • link
    DmitriyM
    Members 15 posts
    Aug. 27, 2017, 10:50 a.m. Aug. 27, 2017, 10:50 a.m.
    link

    I try to add Google Analytics code to forum. misago-ga doesn't work for me (TEMPLATE_MIDDLEWARES += throws AttributeError, TEMPLATE_MIDDLEWARES = does nothing).
    Last update of misago-ga was about 4 years ago. Does it work now?
    Secondly, as I understood from misago-ga sources, it appends GA code before </body>, but on misago-project.org GA is above (near <body>).
    How can I achieve this?

  • link
    rafalp
    Project Lead 2028 posts
    Aug. 27, 2017, 4:15 p.m. Aug. 27, 2017, 4:15 p.m.
    link

    Hey,

    Misago-GA was small addon that I've developed for Misago 0.3, but Misago 0.6 was full rewrite and doesn't support it.

    Misago comes with two empty templates for overriding: jumbotron.html and scripts.html. I've simply added my GA to first of those.

arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Tip
  • Terms of service
  • Privacy policy
powered by misago