Skip to content

Commit

Permalink
Added Google Analytics tracking code
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jul 2, 2014
1 parent 661cc25 commit 70252ab
Showing 1 changed file with 53 additions and 33 deletions.
86 changes: 53 additions & 33 deletions src/main/webapp/resources/scaffold/mainTemplate.xhtml
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
<title>#{empty pageTitle ? 'JBoss Forge' : pageTitle}</title>
Expand Down Expand Up @@ -37,33 +38,34 @@
<ui:debug rendered="#{facesContext.application.projectStage == 'Development'}" />
<div class="body-wrap">
<!--container-->
<div class="container text-center">
<div class="row">
<div class="col-sm-3 col-sm-offset-1">
<!-- Forge Logo -->
<h:link outcome="/index">
<h:graphicImage name="ForgeLogo_Flat.png" library="images" height="43px" style="margin-top: 10px;" alt="Forge logo" />
</h:link>
</div>
<div class="col-sm-5" style="margin-top: 10px;">
<!-- Log In information -->
<div class="pull-right">
<span id="jbssologininfo1" /> &#124; <span id="jbssologininfo2" />
<div class="container text-center">
<div class="row">
<div class="col-sm-3 col-sm-offset-1">
<!-- Forge Logo -->
<h:link outcome="/index">
<h:graphicImage name="ForgeLogo_Flat.png" library="images" height="43px" style="margin-top: 10px;"
alt="Forge logo" />
</h:link>
</div>
</div>
<div class="col-sm-3 pull-right">
<div class="container" id="content">
<div class="dropup">
<a class="tabnav-closed" href="#" id="tab">Red Hat</a>
<script>
window.addEventListener('load', function() {
renderTabzilla("JBoss Forge", "forge")
}, false);
</script>
<div class="col-sm-5" style="margin-top: 10px;">
<!-- Log In information -->
<div class="pull-right">
<span id="jbssologininfo1" /> &#124; <span id="jbssologininfo2" />
</div>
</div>
<div class="col-sm-3 pull-right">
<div class="container" id="content">
<div class="dropup">
<a class="tabnav-closed" href="#" id="tab">Red Hat</a>
<script>
window.addEventListener('load', function() {
renderTabzilla("JBoss Forge", "forge")
}, false);
</script>
</div>
</div>
</div>
</div>
</div>
<!-- Website Menu -->
<div class="row">
<ul class="menu clearfix gradient margin-40 pull-right">
Expand All @@ -78,8 +80,7 @@
<li><a href="https://issues.jboss.org/browse/FORGE">Issue Tracker</a></li>
<li><a href="https://community.jboss.org/en/forge">Forums</a></li>
<li><a href="/1.x/">Forge 1.x</a></li>
</ul>
</li>
</ul></li>
</ul>
</div>
<!--/ Website Menu -->
Expand All @@ -92,21 +93,40 @@
<!-- Older Versions -->
<div class="row">
<div class="col-sm-12">
<h2><span>Looking for <a href="/1.x/">Forge 1.x</a>?</span></h2>
<h2>
<span>Looking for <a href="/1.x/">Forge 1.x</a>?
</span>
</h2>
</div>
</div>

<div class="col-sm-12 pull-center">
<div class="redhatlogo">
<div class="redhatlogo">
<div id="logospacer"></div>
<a href="http://www.redhat.com/">
<img src="http://static.jboss.org/theme/images/common/redhat_logo.png"></img>
</a>
</div>
<a href="http://www.redhat.com/"> <img src="http://static.jboss.org/theme/images/common/redhat_logo.png"></img>
</a>
</div>
</div>
</div>
</div>
<!--/ container -->
</div>
<!-- Google Analytics -->
<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-34467975-1', 'auto');
ga('send', 'pageview');
</script>
</h:body>
</html>

0 comments on commit 70252ab

Please sign in to comment.