Files
computer-playbook/roles/sys-front-inj-all
Kevin Veen-Birkenbach e54436821c Refactor sys-front-inj-all dependencies handling
Moved CDN and logout role inclusions into a dedicated '01_dependencies.yml' file for better modularity and reusability.
Added variable injection support via 'vars:' to allow flexible configuration like 'proxy_extra_configuration'.

See: https://chatgpt.com/share/68ee880d-cd80-800f-8dda-9e981631a5c7
2025-10-14 19:27:56 +02:00
..

Nginx Global Matomo & Theming Modifier Role 🚀

This role enhances your Nginx configuration by conditionally injecting global Matomo tracking and theming elements into your HTML responses. It uses Nginx sub-filters to seamlessly add tracking scripts and CSS links to your web pages.


Features

  • Global Matomo Tracking
    The role includes Matomo tracking configuration and injects the corresponding tracking script into your HTML.

  • Global Theming
    The role injects a global CSS link for consistent theming across your site.

  • Smart Injection
    Uses Nginx's sub_filter to insert the tracking and theming snippets right before the closing </head> tag of your HTML documents.

This will automatically activate Matomo tracking and/or global theming based on your configuration.


Author

Developed by Kevin Veen-Birkenbach 😎


Happy automating! 🎉