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
0
votes
1 answer

how to use ahoy email with api only application?

I am using ahoy email in my rails API only application, and I cant able to track the open and click event. Even record is not created in the ahoy table. I don't know how to debug
RAM PRATHIP
  • 13
  • 1
  • 8
0
votes
1 answer

Can't make ahoy track views on my listings

I'm trying to track views, clicks of listings in ecommerce store made in rails. I need to add a column in events table which has data of listing such as listing_id, name(listings).every listing has unique track data(no of visits,click track). Tried…
rocky
  • 45
  • 8
0
votes
1 answer

Uninitialized constant Ahoy::QueryMethods - Ahoy Gem

I'm using the Ahoy Gem (https://github.com/ankane/ahoy) to track visits and events. When I try to use their where_event method to query the event model as described in the docs I get this error: [191] pry(main)> Ahoy::Event.where_event("Reach",…
0
votes
1 answer

Open tracking not working with Rails ahoy_email gem

I am using ahoy_email gem in Rails and I am unable to make simple open tracking work, and I don't know how to debug it. The message record is being generated when email is sent: #
0
votes
0 answers

Ahoy visits not created with after_validation :geocode uncommented

I have integrated Ahoy into our platform and it works great for tracking events etc. I am now trying to extend the functionality with enabling geocoding. The issue I am running into is as soon as I uncomment the after_validation :geocode line,…
gwnp
  • 1,127
  • 1
  • 10
  • 35
0
votes
1 answer

Rails 5.2 & Ahoy 2 - "undefined method `visitor_token' for nil:NilClass"

I'm running Rails 5.2 and the awesome Ahoy gem, with mongoid as the ORM. In the homepage controller, I'm calling current_visit.visitor_token, which is generating the following error: MONGODB | ds111336.mlab.com:11336 | heroku_1f375nv7.find | STARTED…
benrs44
  • 3
  • 2
0
votes
1 answer

How to setup Ahoy.user_method for different models

I'm new to Ruby on Rails, using Ahoy to track visits and events in my app. I have 2 different devise models, how do I set up Ahoy.user_method to each one? My devise models are PlayerLog and CoachLog. Should I set this up like this: Ahoy.user_method…
0
votes
1 answer

Rails serialization error for async geocoding with ahoy gem using mongoid

I have a Rails 5 app, running both a postgresql DB for application data and MongoDB (mongoid) for analytics, generated by the fantastic ahoy gem. Everything works great until I switch to asynchronous geocoding in config/initializers/ahoy.rb, which…
0
votes
1 answer

where_properties function and like keyword together in ahoy

Is it possible to use LIKE keyword and where_properties function together or something similar. Because i need to create query like this. Ahoy::Event.where(name: "$click").where_properties("'href' LIKE '%#{brochure.id}%'").count.size
Emre
  • 119
  • 2
  • 8
0
votes
2 answers

ahoy events Post error in rails

I started code rails recently and I need to figure out this problem. I use this function especially for my project. So i customize name and properties variables. ahoy.track(name, properties); In local there is no problem but in the live version…
Emre
  • 119
  • 2
  • 8
0
votes
2 answers

like Operator in ahoy events

I started code rails recently and I need to figure out this problem. %td = Ahoy::Event.where(name: "viewed_brochure").where_properties(brochure_id: brochure.id, time: like 'Mon%').count this should be show the number of Mondays in database. But…
Emre
  • 119
  • 2
  • 8
0
votes
1 answer

ActiveRecord AssociationTypeMismatch in rails 4 app, but works fine in version 5

I was working on a ruby on rails 4 app , in which I installed a gem called 'ahoy' for usage analytics. It is giving an error of " ActiveRecord::AssociationTypeMismatch (User(#70304630869100) expected, got Hash(#6226260))" at visit.rb. class Visit…
Wings2fly
  • 887
  • 1
  • 11
  • 31
0
votes
1 answer

Ahoy gem not storing location data in Visit

I have the ahoy_matey gem installed in my rails 4.2.6/ruby 2.3.1 application and placed the ahoy.trackAll(); and the //= require ahoy code in my application.js. For some reason, none of the location data is being saved to the Visit. Does anybody…
rebbailey
  • 714
  • 1
  • 7
  • 16
0
votes
1 answer

Ruby on Rails - How to set up Ahoy Gem

Im setting up Ahoy gem into my application, but there are some options that I don't understand where to add. This is what I have done currently: 1) Added gem "ahoy_matey" to my Gem File and ran Bundle install & restarted my server 2) Added //=…
user7383466
0
votes
1 answer

How to record the current tenant?

I am building a SaaS app based on Ruby on Rails. Tenants have sub-domains. The visit belongs to User, which is taken from the #current_user. Additionally I would also like to associate the visit with the current tenant. In my case it would…
Ziyan Junaideen
  • 3,270
  • 7
  • 46
  • 71