Skip to content

A fast, lightweight app to create shortened UTM links for visually pleasing tracking URLs

Notifications You must be signed in to change notification settings

joshteng/utmlinkbuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UtmLinkBuilder

a UTM link builder and shortener for your marketing needs

  1. Create links like this easily: http://mywebsite.com/?utm_campaign=sunday-offer&utm_source=facebook&utm_medium=cpc
  2. Shorten that long ugly UTM link for sharing http://yoururlshortenerdomain/r/fwefubo443 (buy a short domain to host this app)
  3. Track performance of each link with total clicks and unique clicks

Stack: node.js, sails.js, redis, mongoDB

Default Configuration:

Session store: redis
Database: mongoDB

To deploy (heroku)

  1. Sign up for MongoHQ and note your DB_URL with the right username and password
  2. Sign up for Redis (RedisToGo, RedisCloud, etc+) and note your redis endpoint and password and port
  3. Create a new heroku app heroku create
  4. Push git push heroku master
  5. Set environment variables: DB_URL, REDIS_ENDPOINT, REDIS_PORT, REDIS_PASSWORD, ROOT_URL (your domain along with http:// or https:// for eg. http://utm.io)
  6. Enjoy! heroku open

Details

Your MongoDB URL should look like this: mongodb://<username>:<password>@troup.mongohq.com:10081/<db_name>

To do

  1. Protect from mass assignment (userId field for Link, admin field for User)! (mashalling request parameters http://irlnathan.github.io/sailscasts/blog/2013/09/24/building-a-sails-application-ep17a-marshalling-request-parameters/)
  2. Multi-user account. A user has many accounts. An account has many users. Follow Mailchimp's model. Links belong to accounts instead of users.
  3. API - user, links, clicks
  4. Write some test!
  5. Improve on flash error message display
  6. more...

Feature ideas

  1. CPA information for each campaign (Pull data through API from google adwords and facebook ads)(action here is click through, but can add sophisticated JS SDK that can be embedded on the destination site for specific goal tracking such as making a purchase, download an ebook, sign up etc+)
  2. multi domain

Help Needed! Fork!

  1. If you're a developer, please fork away, help me out with the todos and submit pull request! Or do a code review, raise issues and leave comments. Thanks!
  2. If you're a marketer, you may leave ideas by raising issues.
  3. If you growth hack, this might be thoroughly useful, would really appreciate input, feedback and contribution!

About

A fast, lightweight app to create shortened UTM links for visually pleasing tracking URLs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published