Sys-front-inj-all Role¶
Description: No description available
Variables¶
author: Kevin Veen-Birkenbach
description: Core role for Nginx HTML injection of Matomo, theming, iFrame and JS snippets based on application feature flags.
license: Infinito.Nexus NonCommercial License
license_url: https://s.infinito.nexus/license
company: Kevin Veen-Birkenbach
Consulting & Coaching Solutions https://www.veen.world
galaxy_tags: [‘nginx’, ‘injector’, ‘matomo’, ‘theming’]
repository: https://s.infinito.nexus/code
issue_tracker_url: https://s.infinito.nexus/issues
documentation: https://s.infinito.nexus/code/tree/main/roles/sys-front-inj-all
min_ansible_version: 2.9
platforms: [{‘name’: ‘Any’, ‘versions’: [‘all’]}]
README¶
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 TrackingThe role includes Matomo tracking configuration and injects the corresponding tracking script into your HTML.
- Global ThemingThe role injects a global CSS link for consistent theming across your site.
- Smart InjectionUses Nginx’s
sub_filterto 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.