Fix stuff and add analytics

This commit is contained in:
Chris Sewell
2014-11-03 02:10:31 -05:00
parent 7aa77793e9
commit 7ecf7a505a
2 changed files with 13 additions and 3 deletions

View File

@ -118,12 +118,12 @@ function startExpress() {
*/
app.all('/api/*', function(req, res) {
var url = 'http://new.atlb.co/' + req.url;
var url = 'http://atlanticbiomedical.com/' + req.url;
req.pipe(request(url)).pipe(res);
});
app.all('/images/*', function(req, res) {
var url = 'http://new.atlb.co/' + req.url;
var url = 'http://atlanticbiomedical.com/' + req.url;
req.pipe(request(url)).pipe(res);
});

View File

@ -117,4 +117,14 @@
<script>
$(document).foundation();
</script>
</div>
</div>
<script>
(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', 'UA-56347803-1', 'auto');
ga('send', 'pageview');
</script>