Lektor Google Analytics

screenshot of Lektor Google Analytics

Integration of Google analytics with Lektor CMS

Overview

If you're using Lektor CMS and looking to integrate Google Analytics seamlessly, the lektor-google-analytics plugin is a game-changer. Designed to help site owners track and analyze their website traffic with ease, this plugin automates the incorporation of Google Analytics code into your rendered HTML files. With straightforward setup instructions and flexibility in functionality, it simplifies maintaining site analytics for those using the Lektor platform.

Not only does this plugin streamline the process of enabling Google Analytics, but it also offers customization options for advanced users. You can easily add the necessary tracking scripts to your templates without any hassle, making it an efficient choice for developers wanting to harness the power of analytics.

Features

  • Easy Integration: Quickly enable the plugin by adding a simple line to your project file, making Google Analytics setup hassle-free.

  • Automatic Code Inclusion: With the generate_google_analytics() function, the necessary tracking code is automatically included in all rendered HTML files.

  • Custom Configuration: Easily configure the plugin by creating a google-analytics.ini file in your project’s config folder, allowing you to input your unique Google Analytics ID.

  • Advanced Tracking Options: For advanced users, you can specify a custom-built Google Analytics tracking code by adjusting the GOOGLE_ANALYTICS_PROPERTY in your configuration file.

  • Default Settings: By default, the plugin uses auto settings, simplifying the configuration for the average user without the need for extensive knowledge.

  • Clear Documentation: The plugin comes with straightforward instructions for both basic and advanced usage, making it accessible for users of varying technical backgrounds.

  • Compatible with Lektor: Specifically designed for Lektor CMS, ensuring smooth functionality and a tailored experience for users of this platform.

google-analytics
Google Analytics

A website that uses Google Analytics to track website performance and user behavior. This includes features such as website traffic monitoring, conversion tracking, and audience segmentation to gain insights and optimize website performance.