devise_marketable 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDE2ZWYxNTdkOWQ1MzBkODkyMjZhN2YzZWEzYTZjYTI4NjE0ODIyOA==
4
+ NDkwZDc4YmY2NjY5MDM4MGE5NjI5ODAyNTc1Y2FmM2NmMWY5NzQ2NQ==
5
5
  data.tar.gz: !binary |-
6
- M2JkMjJjNjg4MjMxNGQ0ZmEwOGZjZGZhOTkyYmEzZjBiZGY4NTliZQ==
6
+ ZDk1MGMyNDRmMDgzNjRmNDk3NDY3MjRmMTNkOTQzMWU4MzZhZDljYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NGUyNGUwYWY0NzM4ZjJkNzcxMTAyYzRjZGM2NDkyYWRiMTk1YjMzZDM4NjA0
10
- MGFiNmFmYjY5OWZjNThlMTFiZjRjMTVlYjRkMjQ1YmUzMDk3ZTg3NWJkMmJh
11
- M2I3YWFiMTc0NDgwMWU1NTJhOGI0ZjMzZjRiMjhiODNlZWRhYzQ=
9
+ MDg4YjM5MjE0NzRkYTQ0YjVhNjQwMTZkOWE1ZDJjM2ZiYmE1YTBhZWE5NWQ0
10
+ NmFiNDBmM2RhZjJiYWZlMWZjMjI3MDBiNDFjN2Q4YWY1OWFhNGE2ODVkMjE2
11
+ NWFiNzkyMjRiZWNjMjNhN2JiNWJjZThjMTg2NTJlNjgzZDFiOGY=
12
12
  data.tar.gz: !binary |-
13
- OWMyNWQ3MTNlNzAyMzJkNTcwYzlhMWE1NzE2ZTM0NTZiNTE0MzgwZGQ5NzU1
14
- ODhlODRlYTgzM2U1MGU5ZDQwODdiYzVlYmE2MjY3ZGY4YjZhYjFiZWZjNTZl
15
- YWI0MzJlZDFiYmY0ZDE2ZThlOTkyY2Q4NDQwYjZjNDcxMWZlNTQ=
13
+ N2Y1YTNmMDEzNjMzZjYxNmIxOGFkZjBkM2MzYWI2YjMwZGVjZWViOWViODM2
14
+ ZWZhOTI4MWMxMmEyZWM5OGZlYWNkMDA3NDZmNTgxZmIyYTBjMWIwZGIyN2Vm
15
+ ZDU3NWRmYTE2ZmU3YmI4Mjk1NTY5MmJiZjZjYjAwZGNiOGU5YjE=
data/README.md CHANGED
@@ -1,24 +1,81 @@
1
- Devise Marketable
2
- ===========
1
+ Marketable for Devise
2
+ ===================
3
3
 
4
- An easy way to store the common marketing data you need to judge the performance of marketing campaigns (e.g. referring_url and landing_url)
4
+ > If this person turns out to be our best customer, we want to know where they came from.
5
+
6
+ > **Mike McDerment**, CEO of FreshBooks
7
+
8
+ Marketable lets [Devise](https://github.com/plataformatec/devise) users easily store where your user came from and where they were going in your Rails app.
5
9
 
6
10
 
7
11
  ## Background
8
12
 
13
+ Mike McDerment is part of that small handful of entrepreneurs who have tremendously inspired my work. He started a web app, and even past 30 years old, was cranking away at in his parents' basement for 3 years. Plenty of smart people told him what he was working on was stupid and would fail. And, yet, he continued. Today, FreshBooks is a very successful company.
14
+
15
+ Mike is a huge proponent of tracking where your customers came from and where they were going. With this data, you can figure out what kind of marketing is working and what's not.
16
+
17
+ By "marketing", I'm referring to everything related to getting customers, not just spending money on advertising. If you get an influx of new users, wouldn't you want to know if they came from a blog post you wrote, or someone mentioned you on Reddit? If you found out Reddit is your best source of new paying customers, then you've figured out where to best allocate your resources to get even more customers.
18
+
19
+ It's super easy to capture this data, but most of us don't, because it's even more friction to getting features done for our customers. Or we rely on 3rd party analytics tools. Some are great, but what happens when you want to switch analytics tools or do something custom they can't do.
20
+
21
+ I created Marketable to automatically track the most basic and important marketing data we should be tracking alongside our User data (using Devise) in our own database. (And so that I could add it to [**Draft**](http://draftin.com), a tool I've created to help people [**write better**](http://draftin.com).)
22
+
23
+
24
+ ## Installation
25
+
26
+
27
+ 1) Add 'devise_marketable' to your Gemfile.
28
+
29
+ ```
30
+ gem 'devise_marketable'
31
+ ```
32
+
33
+ 2) Run `bundle install`
34
+ 3) Add the marketing fields to your user table:
9
35
 
36
+ ```
37
+ rails g devise_marketable YOUR_USER_MODEL
38
+ ```
10
39
 
40
+ YOUR_USER_MODEL is probably User. It's what you attach Devise to. (e.g. User, Admin, Account)
41
+
42
+ ```
43
+ rails g devise_marketable User
44
+ ```
45
+
46
+ 4) Run your migration
47
+
48
+ ```
49
+ rake db:migrate
50
+ ```
51
+
52
+ 5) Make your devise model "marketable"
53
+
54
+ ```
55
+ devise :database_authenticatable, ..., :marketable
56
+ ```
57
+
58
+ 6) Restart your server
11
59
 
12
- Installation
13
60
  ------------
14
61
 
15
- 1)
62
+ Devise will now automatically create 2 cookies for your users, the referring_url (where they came from) and the landing_url (where they were going). When the user registers with your application, the values in those cookies are stored alongside your user data.
16
63
 
64
+ That's it. You now have some very powerful data: where your best customers come from, what traffic sources are your most lucrative, what on your website converts the best, what people are most interested in, etc.
65
+
66
+ P.S. [**I'd love to meet you on Twitter: here**](http://twitter.com/natekontny).
67
+
68
+ <iframe src="https://draftin.com/share_buttons/new.html?url=http%3A%2F%2Fninjasandrobots.com%2Fmarketable_for_devise&title=Marketable%20for%20Devise" scrolling="no" frameborder="0" style="border:none; overflow:hidden;width:800px; height:21px; padding-left:50px" allowtransparency="true" ></iframe>
69
+
70
+
71
+ ---------------
17
72
 
18
73
  Feedback
19
74
  --------
20
75
  [Source code available on Github](https://github.com/n8/devise_marketable). Feedback and pull requests are greatly appreciated. Let me know if I can improve this.
21
76
 
22
- -----------
77
+ ---------------
78
+
79
+ [Here's a great short presentation from Mike on tracking user metrics](http://vimeo.com/10733370).
23
80
 
24
- P.S. [**I'd love to meet you on Twitter: here**](http://twitter.com/natekontny).
81
+ <iframe src="//player.vimeo.com/video/10733370" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["nate@cityposh.com"]
11
11
  spec.description = %q{A simple way to have Devise capture important marketing data.}
12
12
  spec.summary = %q{A simple way to have Devise capture important marketing data.}
13
- spec.homepage = ""
13
+ spec.homepage = "http://ninjasandrobots.com/marketable_for_devise"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -1,3 +1,3 @@
1
1
  module DeviseMarketable
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_marketable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - nate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-08 00:00:00.000000000 Z
11
+ date: 2013-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -70,7 +70,7 @@ files:
70
70
  - lib/devise_marketable/version.rb
71
71
  - lib/generators/devise_marketable/devise_marketable_generator.rb
72
72
  - lib/generators/devise_marketable/templates/migration.rb
73
- homepage: ''
73
+ homepage: http://ninjasandrobots.com/marketable_for_devise
74
74
  licenses:
75
75
  - MIT
76
76
  metadata: {}