diff options
| author | davidtsadler <davidtsadler@googlemail.com> | 2011-12-30 23:11:43 +0000 |
|---|---|---|
| committer | davidtsadler <davidtsadler@googlemail.com> | 2011-12-30 23:11:43 +0000 |
| commit | ec9aeab275f199a104a9d48b4a190ac5b507e615 (patch) | |
| tree | 13c7b4055ef03c1f7525df248639eb70e3dab293 /_site_build | |
| parent | 1769e1cdcfe58339eb6ff7f13925090edaa8a4a8 (diff) | |
Add google analytics.
Diffstat (limited to '_site_build')
| -rw-r--r-- | _site_build/_includes/google_analytics.html | 6 | ||||
| -rw-r--r-- | _site_build/_layouts/default.html | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/_site_build/_includes/google_analytics.html b/_site_build/_includes/google_analytics.html new file mode 100644 index 0000000..1af92a9 --- /dev/null +++ b/_site_build/_includes/google_analytics.html @@ -0,0 +1,6 @@ +<script> + window._gaq = [['_setAccount','{{ site.google_ua }}'],['_trackPageview'],['_trackPageLoadTime']]; + Modernizr.load({ + load: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js' + }); +</script> diff --git a/_site_build/_layouts/default.html b/_site_build/_layouts/default.html index b27e119..4eaed35 100644 --- a/_site_build/_layouts/default.html +++ b/_site_build/_layouts/default.html @@ -28,4 +28,7 @@ </div> </div> </body> +{% if site.google_ua %} + {% include google_analytics.html %} +{% endif %} </html> |
