Rack::TdJsSdk
TreasureataのJavaScript SDKとpageviewタグを自動で挿入します。
Usage
- Add
gem 'rack-td_js_sdk'
to Gemfile. - Add
config.middleware.use Rack::TdJsSdk, database: "foo", write_key: "..."
toconfig/application.rb
if use Rails4. - Run
rails s
!!
Installation
Add this line to your application's Gemfile:
gem 'rack-td_js_sdk'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rack-td_js_sdk
Contributing
- Fork it ( https://github.com/hisaichi5518/rack-td_js_sdk/fork )
- 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 a new Pull Request