mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #958 from martenson/fix-google-analytics
[15.10] Fix google analytics on the analysis page
This commit is contained in:
@@ -60,4 +60,13 @@ ${h.css("base")}
|
||||
var app = new App( ${ h.dumps( app_config ) } );
|
||||
} );
|
||||
});
|
||||
</script>
|
||||
|
||||
%if app.config.ga_code:
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', '${app.config.ga_code}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
%endif
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user