minimum_viable_product 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c04cdeca4ddab934fbf6a9371eed7e9f0d80593e
4
- data.tar.gz: 771af531840b64e82a959f4d29e8b9d015154a24
3
+ metadata.gz: 600148a33923db315ebc78ba18ee77c4bd6faf35
4
+ data.tar.gz: b5971976894e8af19049d6942c5cdfb3e7f04f3e
5
5
  SHA512:
6
- metadata.gz: 71aef38053beeb39b09d7b41e40559f1b1ad5e6879a6b9460bf1e2f2684e966035ac763121e5e6d0532012c3e3dccf10d081ce76bcf6afb24ea75694eaa2acba
7
- data.tar.gz: 7fc75ad4aaa1dce765ba7e7b4891b81f63a57e03303f40e51161c0b7289414c04a1256ca22773ae63b5ab99016bbd612773c3860506f2ac40431595561f0b3ba
6
+ metadata.gz: 9c59761d58d8ae7b675f3d9468f1d7bffd152810e60132077cb20bbdf42701c1f5b52d7273fdc02ae32a1db9ca129fea196ae253af9f21f3d96076a0b9938d08
7
+ data.tar.gz: 65a80eb12215874b65d224046b578c68f032f1dbb0e0d6630314085185fb5e6ee54afc66b2d6d3adb8f6da665c7799cf9caed0c3e2a986930bc13c34e630e5e4
@@ -35,4 +35,21 @@ track = function(event, attributes, fn){
35
35
  analytics.track(event, attrs, fn)
36
36
  }
37
37
 
38
+ setupAutomaticTracing = function(){
39
+ _.each(arguments, function(e){
40
+ switch (e.toLowerCase()) {
41
+ case 'buttons':
42
+ $('.btn').on('click', function(){
43
+ window.track("Button Clicked", { name: $(this).text() || $(this).attr('value') })
44
+ })
45
+ break;
46
+ case 'links':
47
+ $('a:not(.btn)').on('click', function(){
48
+ window.track("Link Clicked", { name: ($(this).text() || $(this).attr('value')) })
49
+ })
50
+ break;
51
+ }
52
+ })
53
+ }
54
+
38
55
  window.track = track;
@@ -1,3 +1,3 @@
1
1
  module MinimumViableProduct
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimum_viable_product
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter