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.rbfile:
activate :hotjar do |hj|
hj.hotjar_id = '1337' # Replace with your site's ID
end- Add the helper method to your layout:
<%= hotjar_tag %>