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