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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 600148a33923db315ebc78ba18ee77c4bd6faf35
|
4
|
+
data.tar.gz: b5971976894e8af19049d6942c5cdfb3e7f04f3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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;
|