diff options
Diffstat (limited to '')
-rw-r--r-- | source/_layouts/default.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/_layouts/default.haml b/source/_layouts/default.haml index 6e0ad5b1..fc489d1d 100644 --- a/source/_layouts/default.haml +++ b/source/_layouts/default.haml @@ -11,8 +11,8 @@ delicious_count: 3 full_url: disqus_short_name: -google_custom_search_id: -google_analytics: true +google_custom_search_id: +google_analytics_tracking_id: --- @@ -103,10 +103,10 @@ google_analytics: true } document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/#{page.disqus_short_name}/get_num_replies.js' + query + '"></' + 'script>'); })(); - - if page.respond_to? :google_analytics + - if page.respond_to? :google_analytics_tracking_id //Google Analytics code :javascript try { - var pageTracker = _gat._getTracker("UA-10876422-1"); + var pageTracker = _gat._getTracker("#{google_analytics_tracking_id}"); pageTracker._trackPageview(); } catch(err) {}
\ No newline at end of file |