Updated Google Analytics code
Change-Id: I46d07c960421d18c172f8ae8404233c9e9aafc84 Closes: bug #1292460
This commit is contained in:
parent
d58fb75563
commit
2f47110665
|
@ -59,20 +59,21 @@
|
|||
{{ super() }}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{%- if theme_googleanalytics_id -%}
|
||||
<script type="text/javascript">
|
||||
var ga_enabled = !$.cookie('disable-ga');
|
||||
if(ga_enabled){
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', '{{ theme_googleanalytics_id }}']);
|
||||
_gaq.push('_setDomainName', '{{ theme_googleanalytics_domain }}');
|
||||
_gaq.push('_trackPageview');
|
||||
(function() {
|
||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var ga_enabled = !$.cookie('disable-ga');
|
||||
if(ga_enabled){
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', '{{ theme_googleanalytics_id }}']);
|
||||
_gaq.push(['_setDomainName', '{{ theme_googleanalytics_domain }}']);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
(function() {
|
||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
}
|
||||
</script>
|
||||
{%- endif %}
|
||||
{%- endblock %}
|
||||
|
||||
|
@ -104,7 +105,7 @@ if(ga_enabled){
|
|||
<a href="http://www.mirantis.com/openstack-services/custom-deployment/">Custom Deployment</a>
|
||||
<a href="http://www.mirantis.com/openstack-services/custom-support/">Custom Support</a>
|
||||
<a href="http://www.mirantis.com/openstack-services/driver-development/">Drivers</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="subglobal5" class="subglobalNav" style="visibility: hidden;">
|
||||
|
|
Loading…
Reference in New Issue