ankane / searchjoy

Search analytics made easy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails API Only Support

Tybot204 opened this issue · comments

I think a good addition to this gem would be Rails 5 API only support. As it stands now, this gem requires Sprockets and ActionView to be included in your project. I would love to be able to remove both from my application, as I use Searchjoy for tracking searches and conversions, but don't use the interface provided to view this information.

It would be an even bigger bonus if the option made the Searchjoy routes return JSON instead of an HTML page, but that can always be added at a later time.

Hey @Tybot204, Searchjoy doesn't depend on Sprockets, but one its dependencies does. I've updated Chartkick to remove the dependency: ankane/chartkick@8708020

Add this to your Gemfile and you should be good:

gem "chartkick", github: "ankane/chartkick"
ezoic increase your site revenue