Browse Source

Google Analytics

backuplook
parent
commit
dbcd7054a3
  1. 2
      layouts/article.html
  2. 2
      layouts/main.html
  3. 2
      lib/analytics.rb
  4. 2
      site/Scratch/en/blog/2011-05-05-Screenshots/index.html
  5. 2
      site/Scratch/en/blog/index.html
  6. 2
      site/Scratch/en/index.html
  7. 2
      site/Scratch/en/support/index.html
  8. 2
      site/Scratch/fr/blog/2011-05-05-Screenshots/index.html
  9. 2
      site/Scratch/fr/blog/index.html
  10. 2
      site/Scratch/fr/index.html
  11. 2
      site/Scratch/fr/support/index.html
  12. 2
      site/index.html
  13. 5
      tasks/recompile

2
layouts/article.html

@ -148,7 +148,7 @@
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
var _gaq=[["_setAccount","UA-10612400-2"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));

2
layouts/main.html

@ -117,7 +117,7 @@
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
var _gaq=[["_setAccount","UA-10612400-2"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));

2
lib/analytics.rb

@ -8,7 +8,7 @@ def genAnalytics
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10612400-1");
var pageTracker = _gat._getTracker("UA-10612400-2");
pageTracker._trackPageview();
} catch(err) {}</script>}
end

2
site/Scratch/en/blog/2011-05-05-Screenshots/index.html

@ -170,7 +170,7 @@ Now you can paste it anywhere.</p>
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
var _gaq=[["_setAccount","UA-10612400-2"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));

2
site/Scratch/en/blog/index.html

@ -228,7 +228,7 @@ Now you can paste it anywhere.</p>
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
var _gaq=[["_setAccount","UA-10612400-2"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));

2
site/Scratch/en/index.html

@ -219,7 +219,7 @@ $('document').ready(function() {
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
var _gaq=[["_setAccount","UA-10612400-2"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));

2
site/Scratch/en/support/index.html

@ -142,7 +142,7 @@
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
var _gaq=[["_setAccount","UA-10612400-2"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));

2
site/Scratch/fr/blog/2011-05-05-Screenshots/index.html

@ -169,7 +169,7 @@
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
var _gaq=[["_setAccount","UA-10612400-2"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));

2
site/Scratch/fr/blog/index.html

@ -214,7 +214,7 @@ Les 5 derniers articles
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
var _gaq=[["_setAccount","UA-10612400-2"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));

2
site/Scratch/fr/index.html

@ -219,7 +219,7 @@ $('document').ready(function() {
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
var _gaq=[["_setAccount","UA-10612400-2"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));

2
site/Scratch/fr/support/index.html

@ -142,7 +142,7 @@
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
var _gaq=[["_setAccount","UA-10612400-2"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));

2
site/index.html

@ -219,7 +219,7 @@ $('document').ready(function() {
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
var _gaq=[["_setAccount","UA-10612400-2"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));

5
tasks/recompile

@ -40,3 +40,8 @@ cmd="nanoc co $priority_list"
print -- '==='
print -- $cmd
eval $cmd
src="site/Scratch/en/index.html"
dst="site/index.html"
print -- "copy index: $src => $dst"
\cp -f $src $dst

Loading…
Cancel
Save