Google Analytics Rails

screenshot of Google Analytics Rails

Rails 3 helpers to manage google analytics tracking. Mostly intended for small to medium websites.

Overview

Fast Universal Google Analytics setup for Rails is a gem designed for developers who want to easily implement Google Analytics on small to medium websites with straightforward analytics needs. This gem streamlines the integration process, enabling users to track website performance and user interactions effortlessly. With its user-friendly features, it assists developers in optimizing their sites and ensuring a seamless analytics experience.

What sets this gem apart is its focus on simplifying the setup process while maintaining compatibility with the latest Google Analytics standards. By following the provided guidelines, developers can upgrade seamlessly and take advantage of new event helpers and configuration options, making it a valuable tool in any Rails developer's toolkit.

Features

  • Easy Installation: Simply add the gem to your Gemfile and run a quick setup to get started with Google Analytics integration.

  • Multiple Tracker Support: Utilize the analytics_init function to manage submissions effectively when using multiple trackers.

  • Updated Event Helpers: Access new event helpers including ExperimentId and ExperimentVariation for advanced tracking capabilities.

  • Better Configuration Management: No need for extra array searching; use the new :setup config for cleaner event handling.

  • Removal of Deprecated Functions: Outdated functions like SetCustomVar are replaced with SetCustomDimension and SetCustomMetric to align with Universal Analytics.

  • Support for Different Environments: Customize settings for production, staging, or premium accounts through straightforward configuration within your Rails application.

  • Active Development: The gem is currently under active maintenance, so users can expect regular updates and improvements.