Class GoogleAnalyticsTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.GoogleAnalyticsTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP Tag to embed Google analytics data.
- Since:
- 1.0
- Version:
- 9.1
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Inserts the JavaScript for Google Analytics into the JSP.void
release()
void
setAsync
(boolean doAsync) Sets whether to load the API asynchronously.void
setEventSupport
(boolean doSupport) Sets if event support functionality should be enabled on this page.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
GoogleAnalyticsTag
public GoogleAnalyticsTag()
-
-
Method Details
-
setEventSupport
public void setEventSupport(boolean doSupport) Sets if event support functionality should be enabled on this page.- Parameters:
doSupport
- TRUE to enable event support, otherwise FALSE
-
setAsync
public void setAsync(boolean doAsync) Sets whether to load the API asynchronously.- Parameters:
doAsync
- TRUE to load asynchronously, otherwise FALSE
-
doEndTag
Inserts the JavaScript for Google Analytics into the JSP.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport#EVAL_PAGE always
- Throws:
JspException
- if an I/O error occurs
-
release
public void release()- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-