About this project
Adamant Analytics is a lightweight Server Side Includes (SSI) based solution that enables Google Analytics tracking without JavaScript execution or cookie usage. This makes it suitable for environments where client-side scripts are restricted or privacy compliance is important.
The tool works by embedding tracking code via SSI directives, which are processed server-side before the page is sent to the browser. Supported server platforms include Apache, Nginx, Tomcat, and IIS.
Configuration is handled through environment variables:
- GA_ACCOUNT: Sets the Google Analytics web property ID
- LOCAL_GIF: Specifies a path to a local utm.gif file if needed
- VISITOR_UA: Controls whether to derive a visitor ID from the User Agent string
- UTM_SOURCE, UTM_MEDIUM, UTM_CAMPAIGN: Set default UTM parameter values for source, medium, and campaign tracking
- UTM_TITLE: Sets the default utmdt value
- UTM_CHARSET: Defines the document character encoding
- USE_NOSCRIPT: When enabled, wraps the tracking code in a noscript tag
The project is licensed under Apache 2.0 and is published as part of the datamart/adamant repository.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.