aboutsummaryrefslogtreecommitdiff
path: root/source/_layouts/default.haml
diff options
context:
space:
mode:
authorB Mathis <brandon@imathis.com>2009-11-25 08:02:28 -0600
committerB Mathis <brandon@imathis.com>2009-11-25 08:02:28 -0600
commitf6e169a8dc3f827a55d6bf1b79675d7958c4216d (patch)
treefed7f647d47f9a005fc31966fcee57181f6d0996 /source/_layouts/default.haml
parent50c0368400b26cc0e863d29ecaca72681ca6e2de (diff)
downloadmy_new_personal_website-f6e169a8dc3f827a55d6bf1b79675d7958c4216d.tar.xz
my_new_personal_website-f6e169a8dc3f827a55d6bf1b79675d7958c4216d.zip
added variable for google tracking id
Diffstat (limited to 'source/_layouts/default.haml')
-rw-r--r--source/_layouts/default.haml8
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