-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More complex virtual page views for tabs/etc to be implemented later.
- Loading branch information
1 parent
3c936b7
commit a22a81f
Showing
15 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<ui:composition | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> | ||
|
||
<f:verbatim rendered="#{empty (settingsCache.getProperty('gotrack.ga_tracker'))}"> | ||
<script type="text/javascript"> | ||
console.log("No Tracker."); | ||
if ( typeof googleAnalyticsTrackPageviewIfConfigured === 'undefined' ) { | ||
var googleAnalyticsTrackPageviewIfConfigured = function(pageURL) {/* no op, for sandbox and development */ | ||
console.log("Didn't track: " + pageURL); | ||
}; | ||
} | ||
</script> | ||
</f:verbatim> | ||
|
||
<f:verbatim rendered="#{not empty (settingsCache.getProperty('gotrack.ga_tracker'))}"> | ||
<script type="text/javascript"> | ||
var _gaq = _gaq || []; | ||
var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js'; | ||
_gaq.push([ '_require', 'inpage_linkid', pluginUrl ]); | ||
_gaq.push([ '_setAccount', "settingsCache.getProperty('gotrack.ga_tracker')" ]); | ||
_gaq.push([ '_setDomainName', "settingsCache.getProperty('gotrack.ga_domain')" ]); | ||
_gaq.push([ '_trackPageview' ]); | ||
(function() { | ||
var ga = document.createElement('script'); | ||
ga.type = 'text/javascript'; | ||
ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') | ||
+ '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(ga, s); | ||
})(); | ||
if ( typeof googleAnalyticsTrackPageviewIfConfigured === 'undefined' ) { | ||
var googleAnalyticsTrackPageviewIfConfigured = googleAnalyticsTrackPageviewIfConfigured || function(pageURL) { | ||
if ( typeof _gaq !== 'undefined' ) { | ||
_gaq.push([ '_setAccount', "settingsCache.getProperty('gotrack.ga_tracker')" ]); | ||
_gaq.push([ '_trackPageview', pageURL ]); | ||
} | ||
}; | ||
} | ||
</script> | ||
</f:verbatim> | ||
|
||
</ui:composition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ | |
xmlns:h="http://java.sun.com/jsf/html" | ||
xmlns:f="http://java.sun.com/jsf/core" | ||
xmlns:p="http://primefaces.org/ui" | ||
xmlns:of="http://omnifaces.org/functions"> | ||
xmlns:of="http://omnifaces.org/functions" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> | ||
<h:head> | ||
<title>GOtrack</title> | ||
<h:outputStylesheet library="css" name="style.css" /> | ||
|
@@ -21,6 +22,13 @@ | |
content="genomics,bioinformatics,genetics,gene,function,ontology,biotechnology,medicine,biomedical,meta-analysis,statistics,search,open source,database,software,enrichment,GO" /> | ||
<meta name="author" content="GOtrack admin ([email protected])" /> | ||
|
||
<ui:include src="/WEB-INF/templates/analytics.xhtml" /> | ||
|
||
<script type="text/javascript"> | ||
googleAnalyticsTrackPageviewIfConfigured( "/gotrack/index" ); | ||
</script> | ||
|
||
|
||
</h:head> | ||
|
||
<h:body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters