public class Reporter extends Object
public void setTimeZone(TimeZone timeZone)
TimeZone.getDefault()
.
A time zone defines the beginning of a day. For instance, Sunday 23:30 GMT (London) is the same time as Monday 00:30 GMT+01 (Berlin). Events from that time may be included in statistics for Sunday or Monday, depending on the time zone specified (Europe/London or Europe/Berlin).
timeZone
- a new time zoneTimeZone
public void setLocale(Locale locale)
Locale.getDefault()
.
A locale defines the beginning of a week. For instance, in the U.S., the week starts on Sunday, while in Germany, it starts on Monday. Events from a Sunday may be included in different weeks, depending on the locale specified (Locale.US or Locale.GERMANY).
locale
- a new localeLocale
public AdList adList(String phrase, String sortBy) throws ReportException
AdList
of ads that are active during the selected time range.
All attributes for the ads are available in the report together with click through rate and conversion rate.
The ads in the report are selected by an incremental search and sorted according to the supplied sortBy and locale
arguments.phrase
- The phrase to incrementally find ads, all ad attributes will be used in the search.sortBy
- The sort by order for the ads.
Available sort by values:
AdList
containing ads with attributes, click through rate and conversion.ReportException
- if there is a problem with fetching or parsing of the report.public AdConversionReport adConversion(List<String> adKeys, Duration resolution) throws ReportException
AdConversionReport
for the ads specified as argument.
The report contains one section for each ad and each sections contains the following information:
adKeys
- The ad keys to include in the report.resolution
- The resolution to use when the report is aggregated.AdConversionReport
.ReportException
- if there is a problem with fetching or parsing of the report.public AdPlacementReport adPlacement(List<String> adKeys) throws ReportException
AdPlacementReport
for the ads specified as argument.
The report contains one section for each ad and each sections contains the following information:
Placement
containing click, display, click through rate and path information for where the ad has
been displayedadKeys
- The ad keys to include in the report.AdPlacementReport
.ReportException
- if there is a problem with fetching or parsing of the report.public AdOrderValueReport adOrderValue(List<String> adKeys, TimelineType<?> timelineType) throws ReportException
AdOrderValueReport
for the ads specified as argument.
The report contains one section for each ad and each sections contains the following information:
adKeys
- The ad keys to include in the report.timelineType
- The timeline type to use in the report.AdOrderValueReport
.ReportException
- if there is a problem with fetching or parsing of the report.@Deprecated public PanelConversionReport panelConversion(String panelPath) throws ReportException
CloudConnector
, please use the apps.PanelConversionReport
for the supplied panel and all of the sub panels.
The report contains one section for each public panel path, sorted alphabetically, and each sections contains the following
information:
panelPath
- The public panel path to fetch the report for.PanelConversionReport
.ReportException
- if there is a problem with fetching or parsing of the report.public SessionStatisticsReport sessionStatistics(Duration resolution) throws ReportException
SessionStatisticsReport
presented with the supplied resolution.
The report contains a timeline of SessionStatistics
resolution
- The resolution to use when the report is aggregated.SessionStatisticsReport
.ReportException
- if there is a problem with fetching or parsing of the report.public SessionSummaryReport sessionSummary() throws ReportException
SessionSummaryReport
containing performance summary information for the whole site. The summary
contains:
SessionSummaryReport
ReportException
- if there is a problem with fetching or parsing of the report.public SearchStatisticsReport searchStatistics() throws ReportException
SearchStatisticsReport
.
The report contains;
SearchStatisticsReport
.ReportException
- if there is a problem with fetching or parsing of the report.public ProductSalesByAttributeReport productSalesByAttribute(String attribute, Filter filter, String sortBy) throws ReportException
ProductSalesByAttributeReport
.
The report is aggregated by facet values for the given attribute or a summary if the attribute is null.
The report contains a section for each facet value. Each section contains:
attribute
- The filter attribute to find facet values for.filter
- The set of products and variant to create the report for.sortBy
- The sort order for the report.
Available sort by values:
ProductSalesByAttributeReport
ReportException
- if there is a problem with fetching or parsing of the report.public ProductSalesByAttributeReport productSalesByAttribute(String attribute, Filter filter, Facets facets, String sortBy) throws ReportException
ProductSalesByAttributeReport
.
The report is aggregated by facet values for the given attribute or a summary if the attribute is null.
The report contains a section for each facet value. Each section contains:
attribute
- The filter attribute to find facet values for.filter
- Together with facets, the set of products and variant to create the report for.facets
- Together with filter, the set of products and variant to create the report for.sortBy
- The sort order for the report.
Available sort by values:
ProductSalesByAttributeReport
ReportException
- if there is a problem with fetching or parsing of the report.public ProductSalesByTimeReport productSalesByTime(TimelineType<?> timelineType, Filter filter) throws ReportException
ProductSalesByTimeReport
.
The report contains sales statistics aggregated according to the supplied timeline type.
The report aggregates data for all products and variant that matches the filter.
The report contains timelines for the following metrics:
timelineType
- The timeline type to use for this report.filter
- The set of products and variant to create the report for.ProductSalesByTimeReport
ReportException
- if there is a problem with fetching or parsing of the report.public ProductSalesByTimeReport productSalesByTime(TimelineType<?> timelineType, Filter filter, Facets facets) throws ReportException
ProductSalesByTimeReport
.
The report contains sales statistics aggregated according to the supplied timeline type.
The report aggregates data for all products and variant that matches the filter and the facets.
The report contains timelines for the following metrics:
timelineType
- The timeline type to use for this report.filter
- Together with facets, the set of products and variant to create the report for.facets
- Together with filter, the set of products and variant to create the report for.ProductSalesByTimeReport
ReportException
- if there is a problem with fetching or parsing of the report.public ProductTopSellersReport productTopSellers(Filter filter, String sortBy, int windowFirst, int windowLast) throws ReportException
ProductTopSellersReport
.
The report contains sales statistics for the best products and variants that matches the filter.
The report is sorted according to the specified sort by order.
The report contains a list of sections, each containing the following values:
filter
- The set of products and variant to consider when the top list is created.sortBy
- The sort order for the report.
Available sort by values:
windowFirst
- The first position, inclusive, to be present in the report. The first position is 1.windowLast
- The last position, inclusive, to be present in the report.ProductTopSellersReport
ReportException
- if there is a problem with fetching or parsing of the report.public ProductTopSellersReport productTopSellers(Filter filter, Facets facets, String sortBy, int windowFirst, int windowLast) throws ReportException
ProductTopSellersReport
.
The report contains sales statistics for the best products and variants that matches the filter and the facets.
The report is sorted according to the specified sort by order.
The report contains a list of sections, each containing the following values:
filter
- Together with facets, the set of products and variant to consider when the top list is created.facets
- Together with filter, the set of products and variant to consider when the top list is created.sortBy
- The sort order for the report.
Available sort by values:
windowFirst
- The first position, inclusive, to be present in the report. The first position is 1.windowLast
- The last position, inclusive, to be present in the report.ProductTopSellersReport
ReportException
- if there is a problem with fetching or parsing of the report.public TopSellingSearchesReport topSellingSearches(Filter filter, int windowFirst, int windowLast) throws ReportException
TopSellingSearchesReport
.
The report contains a top list of search phrases associated with the products and variants that matches the filter.
The report is sorted by the total number of purchases, of products and variants that matches the filter, that the search phrases can be associated with.
The report contains a list of sections, each containing a search phrase and the number of times the search phrase has lead to a purchase of a product or variant that matches the filter.
filter
- The set of products and variant to consider when the top list is created.windowFirst
- The first position, inclusive, to be present in the report. The first position is 1.windowLast
- The last position, inclusive, to be present in the report.TopSellingSearchesReport
ReportException
- if there is a problem with fetching or parsing of the report.public TopSellingSearchesReport topSellingSearches(Filter filter, Facets facets, int windowFirst, int windowLast) throws ReportException
TopSellingSearchesReport
.
The report contains a top list of search phrases associated with the products and variants that matches the filter and the
facets.
The report is sorted by the total number of purchases, of products and variants that matches the filter and the facets,
that the search phrases can be associated with.
The report contains a list of sections, each containing a search phrase and the number of times the search phrase has lead to a purchase of a product or variant that matches the filter and the facets.
filter
- Together with facets, the set of products and variant to consider when the top list is created.facets
- Together with filter, the set of products and variant to consider when the top list is created.windowFirst
- The first position, inclusive, to be present in the report. The first position is 1.windowLast
- The last position, inclusive, to be present in the report.TopSellingSearchesReport
ReportException
- if there is a problem with fetching or parsing of the report.Copyright © 2021 Apptus Technologies AB. All rights reserved.