https://github.com/bnadlerjr/middleman-segment
A Middleman extension to handle generating your Segment tracking code.
https://github.com/bnadlerjr/middleman-segment
middleman-extension segmentio
Last synced: 3 months ago
JSON representation
A Middleman extension to handle generating your Segment tracking code.
- Host: GitHub
- URL: https://github.com/bnadlerjr/middleman-segment
- Owner: bnadlerjr
- Created: 2018-02-03T16:41:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-21T23:38:49.000Z (over 3 years ago)
- Last Synced: 2025-03-10T06:42:54.548Z (3 months ago)
- Topics: middleman-extension, segmentio
- Language: Ruby
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Middleman Segment
[](https://badge.fury.io/rb/middleman-segment)
[](https://gemnasium.com/github.com/bnadlerjr/middleman-segment)
[](https://travis-ci.org/bnadlerjr/middleman-segment)A [Middleman](https://middlemanapp.com/) extension to handle generating your Segment tracking code.
## Installation
Specify the dependency in your project's `Gemfile`:gem "middleman-segment", "~> 0.1.0"
## Usage
Activate the extension in your `config.rb`:activate :middleman_segment, write_key:
Include the Segment snippet in any of your templates (most likely in `layout.erb`):
<%= segment_tag %>
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request## License
Copyright (c) 2018 Bob Nadler, Jr.MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.