Skip to content

About

Google Analytics plugin for Wheelhouse CMS

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Google Analytics Plugin for Wheelhouse CMS

This gem allows the Google Analytics tracking code to be easily added to your theme templates.

It has a number of benefits over statically adding the tracking code directly in your theme layout:

  • The tracking code can be easily changed by an Administrator within the Site Options
  • The tracking code is only added in production mode
  • The tracking code is not added when previewing pages in the admin

Installation & Usage

1. Add wheelhouse-google-analytics to your Gemfile:

gem "wheelhouse-google-analytics"

Then run bundle install.

2. Include the helper in your layout, just before the closing </body> tag:

  <%= google_analytics %>
</body>

3. Set the tracking code within Configuration -> Site Options.

About

Google Analytics plugin for Wheelhouse CMS

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages