piwik_analytics 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/piwik_analytics/helpers.rb +2 -2
- data/piwik_analytics.gemspec +1 -1
- metadata +1 -1
@@ -10,7 +10,7 @@ module PiwikAnalytics
|
|
10
10
|
<script type="text/javascript">
|
11
11
|
var _paq = _paq || [];
|
12
12
|
(function(){
|
13
|
-
var u=(("https:" == document.location.protocol) ? "https://#{config.url}" : "http://#{config.url}");
|
13
|
+
var u=(("https:" == document.location.protocol) ? "https://#{config.url}/" : "http://#{config.url}/");
|
14
14
|
_paq.push(['setSiteId', #{config.id_site}]);
|
15
15
|
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
16
16
|
_paq.push(['trackPageView']);
|
@@ -31,7 +31,7 @@ module PiwikAnalytics
|
|
31
31
|
tag = <<-CODE
|
32
32
|
<!-- Piwik -->
|
33
33
|
<script type="text/javascript">
|
34
|
-
var pkBaseURL = (("https:" == document.location.protocol) ? "https://#{config.url}" : "http://#{config.url}");
|
34
|
+
var pkBaseURL = (("https:" == document.location.protocol) ? "https://#{config.url}/" : "http://#{config.url}/");
|
35
35
|
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
|
36
36
|
</script><script type="text/javascript">
|
37
37
|
try {
|
data/piwik_analytics.gemspec
CHANGED