Questions tagged [ahoy]

Ahoy provides a solid foundation to track visits and events in Ruby, JavaScript, and native apps.

Ahoy provides a solid foundation to track visits and events in Ruby, JavaScript, and native apps.

Works with any data store so you can easily scale.

http://ankane.github.io/ahoy/

70 questions
1
vote
1 answer

Tracking Ahoy custom event in Rails model

I'm not sure how to use custom event tracking in ahoy. I followed the documentation and added a ahoy.track "Viewed book", title: "Hot, Flat, and Crowded" in one of my models, but I get undefined local variable or method `ahoy' Are controllers the…
edhel
  • 183
  • 10
1
vote
0 answers

Ahoy Gem Causing No route matches [GET] "/undefined"

After installing the Ahoy Gem and adding ahoy.trackAll(); to my application.js, my application is continually redirected to /undefined. I've tried uninstalling and recreating the database, but no luck. Here's the server log. SQL (0.3ms) INSERT…
rockyroadster555
  • 313
  • 1
  • 4
  • 15
1
vote
1 answer

Ahoy is not recording events or visits

I have installed Ahoy to give some user analytics on my rails application. I am running rails 4.1.10 and using Postgres 9.3.10 I have added the gem to my gemfile: gem 'ahoy_matey' And I have run : rails generate ahoy:stores:active_record -d…
RenegadeAndy
  • 5,440
  • 18
  • 70
  • 130
1
vote
0 answers

Retrieve visits of Ahoy gem for analytics and kickchart

I would like to build a simple analytics section for a Rails 4.2 app. I consider using Ahoy gem that can store Visits and Events. I already managed to display a line-graphic the number of visitors using kickchart. For today`s visits…
Juan Artau
  • 357
  • 2
  • 13
0
votes
0 answers

store all http request, response with ahoy gem

I want made that all log will store database. therefore I try setup Ahoy gem in my Rails Api only Project. Ahoy is awesome gem. but there is not Best pratice on README.md of Ahoy github. i hope store http request header, reponse header and body with…
Changwoo Rhee
  • 179
  • 4
  • 11
0
votes
1 answer

Disable tracking for rails ahoy_email

I've recently upgraded to ahoy_email version 2.0.3 from 1.1.1 and i've been refactoring my code to work with the latest version but i'm having a bit of an issue with a piece of functionality i used to have. The problem is the following: I want to be…
0
votes
1 answer

Is there a way to update in even in the ahoy_events table or track an event over time?

We've been using Matomo for analytics tracking but have had tons of issues with their HTTP Tracking API and specifically the Media Analytics plugin. Their forums were no help and we received no help from the support email even though the Media…
Brandon Cordell
  • 1,308
  • 1
  • 9
  • 24
0
votes
1 answer

Rails ahoy_email gem url broken sometimes

For my work, I was using ahoy_email gem to help analysis email status. It works fine and very helpful. But sometime the url link were not successful redirect to correct url address. For example: Suppose my email has a link, google homepage…
yao
  • 53
  • 1
  • 6
0
votes
1 answer

How to uninstall ahoy gem

Ahoy gem is filling my database uncomfortably, so I was looking to uninstall it. Obviously, gem uninstall ahoy-matey. But afterward the gem was still there, along with all the models and etc. How can I delete its existence from my app, without…
superbot
  • 401
  • 3
  • 19
0
votes
1 answer

Rails Ahoy new visits not being created

Using Ahoy for Rails app. Existing visits do not seem to be expiring -- events are attached to visits that are 2, 3, or more days old (rather than to a new visit). For example, here's a visit from production, from Apr 7:
Luke Wilcox
  • 5
  • 1
  • 3
0
votes
1 answer

wrong number of arguments (given 0, expected 1) after deployment JROR

Ror Experts, I am having some kind of routing issue (I think so..). The Ahoy tracks visits and events in the development environment - running under webbrick server. When the application is deployed using warbler and published to apache tomcat…
WorkInProgress
  • 393
  • 6
  • 16
0
votes
1 answer

Rails + Ahoy gem + setting additional cookies

I have Ahoy integrated with a Rails app, working fine. I have introduced a new concept to the Visit model, a 'visitor_email', that is set if the user enters the site with a particular param in the URL (set in /initializers/ahoy.rb). That all works…
cdmccann
  • 142
  • 9
0
votes
0 answers

Ahoy Gem 'request' is often nil

I am trying to exclude a range of ip addresses from being tracked with the Ahoy gem. The docs give this example: Ahoy.exclude_method = lambda do |controller, request| request.ip == "192.168.1.1" end In the ahoy.rb initializer file I have: …
tomb
  • 1,374
  • 1
  • 13
  • 23
0
votes
1 answer

Rails Ahoy datastore track_visit not persisting

I'm using Rails 4.1.5 and Ahoy. I've added an additional field to the Visit model called 'visitor_email' (with a migration). I can manually create a Visit object with a visitor_email. In config/initializers/ahoy.rb, I'm subscribing to the…
cdmccann
  • 142
  • 9
0
votes
1 answer

Ahoy gem created mutually exclusive migration?

I tried to learn new stuff and use Ahoy gem for my private project. While doing research online, I encountered one repo with Rails 4.2 and Ahoy 1.6 and one thing struck me. Then I started googling and it seems like it's not a single repo issue…
Rigi
  • 2,870
  • 1
  • 9
  • 18