mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-24 08:28:50 -05:00
added variable for google tracking id
This commit is contained in:
parent
50c0368400
commit
f6e169a8dc
@ -12,7 +12,7 @@ full_url:
|
||||
disqus_short_name:
|
||||
|
||||
google_custom_search_id:
|
||||
google_analytics: true
|
||||
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) {}
|
Loading…
Reference in New Issue
Block a user