Class GoogleAnalyticsTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.GoogleAnalyticsTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class GoogleAnalyticsTag extends TagSupport
A JSP Tag to embed Google analytics data.
Since:
1.0
Version:
9.1
Author:
Luke
See Also:
  • 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

      public int doEndTag() throws JspException
      Inserts the JavaScript for Google Analytics into the JSP.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      TagSupport#EVAL_PAGE always
      Throws:
      JspException - if an I/O error occurs
    • release

      public void release()
      Specified by:
      release in interface Tag
      Overrides:
      release in class TagSupport