Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

urchin_tracking_module

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urchin_tracking_module

  • 1.0.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Urchin Tracking Module

Add google analytics params to your URLs. It's the Google Analytics URL builder as a gem.

Installation

Add this line to your application's Gemfile:

gem 'urchin_tracking_module'

And then execute:

$ bundle

Or install it yourself as:

$ gem install urchin_tracking_module

Usage

require 'urchin_tracking_module'

UTM("http://example.com/#/welcome",
  utm_source: "newsletter_de",
  utm_medium: "email",
  utm_term:   "fashion+leather",
  utm_content: "Could be the subject line of your email",
  utm_campaign: "winter_2013" )
=> "http://example.com/?utm_source=newsletter_de&utm_medium=email&utm_term=fashion+leather&utm_content=Could+be+the+subject+line+of+your+email&utm_campaign=winter_2013#/welcome"

Contributing

Your thought's/improvements are welcome :)

  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

TODOs

  • remove bonusbox specific src param or make this kind of additions configurable.
  • UrchinTrackingModule.configure {|c| c[:utm_source] => 'my_app' } could have a configuration object instead of a hash, to become UrchinTrackingModule.configure {|c| c.utm_source = 'my_app' }

Code status

Build Status

License

This urchin_tracking_module project is released under the MIT License.

FAQs

Package last updated on 17 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc