diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-03-20 11:25:55 +0100 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-03-20 11:25:55 +0100 |
commit | e1ad26b8ee0fc229f0228e7a9950630952b24e92 (patch) | |
tree | dd556981538f0f16c7c6ad85d16a3495f2d42ccb | |
parent | worked on the new loginscreen (diff) | |
download | Divid-e1ad26b8ee0fc229f0228e7a9950630952b24e92.tar.gz |
added google webanalytics
-rw-r--r-- | views/footer.ejs | 10 | ||||
-rw-r--r-- | views/index.ejs | 41 |
2 files changed, 13 insertions, 38 deletions
diff --git a/views/footer.ejs b/views/footer.ejs index d633ff7..f475887 100644 --- a/views/footer.ejs +++ b/views/footer.ejs @@ -8,10 +8,12 @@ <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.0.min.js"><\/script>')</script> <script src="/js/bootstrap.min.js"></script> <script> - var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; - (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; - g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; - s.parentNode.insertBefore(g,s)}(document,'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-39435674-1', 'divid.no'); + ga('send', 'pageview'); </script> </body> </html> diff --git a/views/index.ejs b/views/index.ejs index 1e20836..9b6035f 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -1,37 +1,10 @@ - <!DOCTYPE html> -<html> - <head> - <meta charset="utf-8" /> - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> +<% include header %> - <title><%= title %></title> - <meta name="description" content="" /> - <meta name="author" content=""> +</head> +<body> + <h1><%= title %></h1> + <p>Velkommen til <%= title %></p> + <p>Her kommer det <em>kanskje</em> mer senere.</p> - <meta name="viewport" content="width=device-width" /> - <link rel='stylesheet' href='/css/bootstrap.min.css' /> - <link rel='stylesheet' href='/css/bootstrap-responsive.min.css' /> - <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> - <!--[if lt IE 9]> - <script src="../assets/js/html5shiv.js"></script> - <![endif]--> - - - </head> - <body> - <h1><%= title %></h1> - <p>Velkommen til <%= title %></p> - <p>Her kommer det <em>kanskje</em> mer senere.</p> - - - - - <script> - var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; - (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; - g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; - s.parentNode.insertBefore(g,s)}(document,'script')); - </script> - </body> -</html> +<% include footer %> |