Browse code

added variable for google tracking id

B Mathis authored on 25/11/2009 at 14:02:28
Showing 1 changed files
... ...
@@ -11,8 +11,8 @@ delicious_count: 3
11 11
 full_url: 
12 12
 disqus_short_name: 
13 13
 
14
-google_custom_search_id: 
15
-google_analytics: true
14
+google_custom_search_id:
15
+google_analytics_tracking_id:
16 16
 
17 17
 ---
18 18
 
... ...
@@ -103,10 +103,10 @@ google_analytics: true
103 103
             }
104 104
             document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/#{page.disqus_short_name}/get_num_replies.js' + query + '"></' + 'script>');
105 105
           })();
106
-    - if page.respond_to? :google_analytics
106
+    - if page.respond_to? :google_analytics_tracking_id
107 107
       //Google Analytics code
108 108
       :javascript
109 109
         try {
110
-        var pageTracker = _gat._getTracker("UA-10876422-1");
110
+        var pageTracker = _gat._getTracker("#{google_analytics_tracking_id}");
111 111
         pageTracker._trackPageview();
112 112
         } catch(err) {}
113 113
\ No newline at end of file