jekyll-analytics 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/analytics/Matomo.rb +1 -1
- data/lib/jekyll-analytics.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: bacbd8a5a1d9813cc2fe72a576132e69dcf4096b
|
4
|
+
data.tar.gz: 6173742ec248e764f1e47573d0cc30f8d208d89e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a173bcbf0581ddcf6d8d0675bae2d339875f6860fa09d7f42b23ce61a72eaea6ce2f37db02476ac9faf461ff16c748b141ba7e4a7c884ed497a4718b99c45f0
|
7
|
+
data.tar.gz: 0feba24cf65fe72db4735a8772bdf3fe7bb4c3c055ab06594fc3e8d70da5bfc40617ed4551fadc168c0ce967f9801fbf43cd2ac36088aaa6ce5d4dda36acb910
|
data/lib/analytics/Matomo.rb
CHANGED
@@ -7,7 +7,7 @@ class Matomo
|
|
7
7
|
_paq.push(['enableLinkTracking']);
|
8
8
|
(function() {
|
9
9
|
var u='//'+\"%{url}\";
|
10
|
-
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
10
|
+
_paq.push(['setTrackerUrl', u+'/piwik.php']);
|
11
11
|
_paq.push(['setSiteId', '%{siteId}']);
|
12
12
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
13
13
|
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'/piwik.js'; s.parentNode.insertBefore(g,s);
|
data/lib/jekyll-analytics.rb
CHANGED
@@ -3,7 +3,7 @@ Dir[File.dirname(__FILE__) + '/analytics/*.rb'].each {|file| require file[0..-4]
|
|
3
3
|
CONFIG_KEY = "jekyll_analytics"
|
4
4
|
|
5
5
|
def inject(site)
|
6
|
-
if ENV['JEKYLL_ENV']
|
6
|
+
if ENV['JEKYLL_ENV'] and site.site.config.has_key? CONFIG_KEY
|
7
7
|
site.site.config[CONFIG_KEY].keys().each{ |a|
|
8
8
|
analyzerClass = Module.const_get(a)
|
9
9
|
config = site.site.config[CONFIG_KEY][a]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-analytics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hendrik Schneider
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Plugin to easily add web analytics to your jekyll site without modifying
|
14
14
|
your templates. Supported are: Google Analytics, Piwik, Matomo, MPulse'
|