Skip to main content

Tracking Metrics with Ahoy and Blazer Discussion

General • Asked by Chris Oliver

Awesome episode! Thanks Chris!


Masud Rana Hossain

Awesome episode


this is great, good demo on ahoy and blazer!


great video, thank for sharing it !

Ahoy is a wonderfull gem when it comes to track !
I also use Ahoy::Event to track visit duration and sometimes to create heatmap of my page :p

more information if you want : http://www.tuto-ruby-gratui...

this is my free rails tutorial, it's in french but code is understandable :p

That's really cool, thanks for sharing!


If using the webpacker and the latest ahoy 2.0, my browser's console returns: "ahoy is not defined", but a ruby side are working good! Can I fix that?
application.js
import ahoy from "ahoy.js";

Any thoughts on the best way to get Longitude and Latitude as part of the tracking of visits from ahoy?  it defaults to city/state/country but blazer says it needs longitude and latitude for auto generating maps.

I haven't actually used it myself but you could try the Geocoder Gem and which will take an address and give you coordinates with Geocoder.coordinates(location)


Hey, Chris! It looks like a lot has changed with ahoy in the past two years. Any way you could update this?

I don't think a whole lot has changed. They have instructions for using it with Webpacker now, but it seems mostly the same to me. Are you talking about anything specific?

No, it turns out I have a Rails 5 app that uses Webpacker, and what I implemented was apparently causing confusion in my app. I took the Webpacker stuff out and it works fine now. Thanks, anyway!


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.