Class GoogleAnalyticsProvider

All Implemented Interfaces:
LogEnabled, PluginAware, WebAnalyticsProvider, Configurable

The google analytics provider
  • Field Details

  • Constructor Details

  • Method Details

    • getEventImageUri

      public String getEventImageUri(Site site, String category, String action, String label, int value, boolean usePlaceholderTokens)
      Description copied from interface: WebAnalyticsProvider
      Get the event image URI
      Parameters:
      site - the site
      category - the event category
      action - the event action
      label - the event label
      value - the event value
      usePlaceholderTokens - true to use placeholder tokens in the URI
      Returns:
      the event image URI
    • _getEventIdentifier

      protected String _getEventIdentifier(String category, String action, String label, int value)
      Get the event identifier
      Parameters:
      category - the event category
      action - the event action
      label - the event label
      value - the event value
      Returns:
      the event identifier
    • _getEventImageUri

      protected String _getEventImageUri(String gaWebId, String eventIdentifier, boolean usePlaceholderTokens)
      Get an event image URI.
      Parameters:
      gaWebId - the GA web ID.
      eventIdentifier - the event identifier.
      usePlaceholderTokens - True to use tokens instead of randomly generated values
      Returns:
      the event image URI.
    • getEventLinkCampaignParams

      public String getEventLinkCampaignParams(Site site, String campaign, String medium, String source)
      Description copied from interface: WebAnalyticsProvider
      Get the event link campaign params
      Parameters:
      site - the site
      campaign - the event campaign
      medium - the event medium
      source - the event source
      Returns:
      the event link campaign params