social-share-button 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/assets/javascripts/social-share-button.coffee +5 -0
- data/lib/social_share_button/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b2c810f9120de773ce8c2782d5d2833da53fb3c
|
4
|
+
data.tar.gz: f43744c4a675708a27c7f539f259bc2b784cf055
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c63afe86736ab4495a80586444fc65e9a076f7ed068d279e861baf41934ec674659728de21d9c8e5ff1be1a35a69bd62e36e7f3bbaead7a47ab0ba917c2b878
|
7
|
+
data.tar.gz: 238b808e184f9af6397e803e825036b6c149bd7837f95e4e3957985bf4c9f6314f71c048e3e7dc1258888602ce59fdf5d60b1f85aa670a43424c9519872365c0
|
data/CHANGELOG.md
CHANGED
@@ -16,6 +16,11 @@ window.SocialShareButton =
|
|
16
16
|
via = encodeURIComponent($parent.data("via") || '')
|
17
17
|
desc = encodeURIComponent($parent.data("desc") || ' ')
|
18
18
|
|
19
|
+
# tracking click events if google analytics enabled
|
20
|
+
ga = window[window['GoogleAnalyticsObject'] || 'ga']
|
21
|
+
if typeof ga == 'function'
|
22
|
+
ga('send', 'event', 'Social Share Button', 'click', site)
|
23
|
+
|
19
24
|
if url.length == 0
|
20
25
|
url = encodeURIComponent(location.href)
|
21
26
|
switch site
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social-share-button
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|