Intel
Search analytics made easy
- track searches and conversions
- watch searches in real-time [coming soon]
- view searches with low conversions or no results [coming soon]
Get Started
Add this line to your application’s Gemfile:
gem "intel"
Create a table to keep track of searches.
rails generate intel:install
rake db:migrate
Use the track
option to track searches.
Item.search "apple", track: true
Want to track more attributes? Just add them to the searches
table with migrations and pass the values to the track
option.
Item.search "apple", track: {user_id: true, source: "web"}
It’s that easy!
View the Data [coming soon]
Add the dashboards to your config/routes.rb
.
mount Intel::Engine => "searches"
Be sure to protect the endpoint in production.
[show example]
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request