Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
88f45fe9
Commit
88f45fe9
authored
Nov 19, 2013
by
Matija Obreza
Browse files
Include page variables for GA
parent
255d3200
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/decorator/footer.jsp
View file @
88f45fe9
...
...
@@ -34,6 +34,7 @@
var
_gaq
=
_gaq
||
[];
_gaq
.
push
([
'
_setAccount
'
,
'
${googleAnalyticsAccount}
'
]);
_gaq
.
push
([
'
_trackPageview
'
]);
_gaq
.
concat
(
_pageGaq
||
[]);
(
function
()
{
var
ga
=
document
.
createElement
(
'
script
'
);
ga
.
type
=
'
text/javascript
'
;
ga
.
async
=
true
;
...
...
src/main/webapp/WEB-INF/jsp/accession/details.jsp
View file @
88f45fe9
...
...
@@ -242,12 +242,18 @@
</ul>
</c:if>
<
c:if
test=
"
${
accessionEnvironment
ne
null
and
accessionEnvironment
.
latitude
ne
null
}
"
>
<
script
type=
"text/javascript
"
>
<
script
type=
"text/javascript
"
>
<
c:if
test=
"
${
accessionEnvironment
ne
null
and
accessionEnvironment
.
latitude
ne
null
}
"
>
jQuery
(
document
).
ready
(
function
()
{
var
accessionMap
=
GoogleMaps
.
map
(
"
${pageContext.response.locale.language}
"
,
$
(
"
#map
"
),
{
center
:
new
GoogleMaps
.
LatLng
(
$
{
accessionEnvironment
.
latitude
},
$
{
accessionEnvironment
.
longitude
}),
markerTitle
:
"
<spring:escapeBody
javaScriptEscape=
"true"
>
${accession.accessionName}, ${accession.instituteCode}
</spring:escapeBody>
"
});
});
</script>
</c:if>
</c:if>
_pageGaq
=
[];
_pageGaq
.
push
([
'
_setCustomVar
'
,
1
,
'
Institute
'
,
'
${accession.instituteCode}
'
]);
_pageGaq
.
push
([
'
_setCustomVar
'
,
1
,
'
Genus
'
,
'
${accession.genus}
'
]);
<c:forEach
items=
"
${
crops
}
"
var=
"crop"
>
_pageGaq
.
push
([
'
_setCustomVar
'
,
1
,
'
Crop
'
,
'
${crop.shortName}
'
]);
</c:forEach>
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/WEB-INF/jsp/wiews/details.jsp
View file @
88f45fe9
...
...
@@ -134,6 +134,9 @@
markerTitle
:
"
<spring:escapeBody
javaScriptEscape=
"true"
>
${faoInstitute.fullName}
</spring:escapeBody>
"
});
});
_pageGaq
=
[];
_pageGaq
.
push
([
'
_setCustomVar
'
,
1
,
'
Institute
'
,
'
${faoInstitute.code}
'
]);
</script>
</c:if>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment