middleman-hotjar

Build Status Maintainability Test Coverage Gem Downloads Gem Version

Add Hotjar analytics tracking code to your Middleman site!

Installation

  1. Add it to your Gemfile:
gem middleman-hotjar
  1. Activate the extension in your config.rb file:
activate :hotjar do |hj|
  hj.hotjar_id = '1337' # Replace with your site's ID
end
  1. Add the helper method to your layout:
<%= hotjar_tag %>