Close search
 
Home | Tech Support | Managing ‘Reporting Period Total’ in JSON format

Managing 'Reporting Period Total' in JSON format

13 December 2024

The Code of Practice allows for different facets of granularity in reporting usage metrics. One of those facets is whether usage is reported month-by-month, or as the sum of all months in the period covered by the report.

In tabular COUNTER reports there is a column labelled as ‘Reporting_Period_Total’. That column must be included for all four COUNTER Reports and their Standard Views. It is followed by the month-by-month breakdown (column heading format mmm-yyyy), unless the filter Exclude_Monthly_Details is set to True when you request the report.

In our JSON schema we default to showing only the month-by-month breakdown, without the Reporting_Period_Total. You can choose to mirror the Exclude_Monthly_Details tabular reporting using an Attribute called ‘granularity’. Granularity defines whether json reports should show either month-by-month usage data, or the total usage for all months in the reporting period. It’s only possible to have one value for granularity in COUNTER JSON files: either the report will show each month of usage separately, or it will show the total usage for the whole reporting period.

Month-by-month is the default. For a report covering January to March 2024, where the user has chosen to use the default granularity=Month, you will see metrics for each month, with the month formatted as yyyy-mm:

"Report_Attributes": 
  {
  …
    "Report_Items": [
    {
      "Attribute_Performance": [
      {
        "Performance": 
        {
          "Total_Item_Investigations":
          {
            "2024-01": 1700,
            "2024-02": 2120,
            "2024-03": 1965
          },
        …

If the user chooses to over-ride the default and see only the total usage for the whole period, the JSON needs to include granularity=Total, and instead of the month-by-month breakdown, you will see metrics reported only against the start of the reporting period. In the example above, granularity=Total for the period January to March 2024 would result in seeing metrics for 2024-01. Something like this:

"Report_Attributes":
  {
  "Granularity": "Totals",
  …
    "Report_Items": [
    {
      "Attribute_Performance": [
      {
        "Performance": 
        {
          "Total_Item_Investigations":
          {
            "2024-01": 5785
          },
        …

If you are stuck on a question about the COUNTER API (formerly sushi) or the JSON schema, get in touch with tasha@countermetrics.org. She might not have the answer, but she knows the person who does!

This website uses cookies
This site uses cookies to enhance your browsing experience. We use necessary cookies to make sure that our website works. We’d also like to set analytics cookies that help us make improvements by measuring how you use the site. By clicking “Allow All”, you agree to the storing of cookies on your device to enhance site navigation, analyse site usage, and assist in our marketing efforts.
These cookies are required for basic functionalities such as accessing secure areas of the website, remembering previous actions and facilitating the proper display of the website. Necessary cookies are often exempt from requiring user consent as they do not collect personal data and are crucial for the website to perform its core functions.
A “preferences” cookie is used to remember user preferences and settings on a website. These cookies enhance the user experience by allowing the website to remember choices such as language preferences, font size, layout customization, and other similar settings. Preference cookies are not strictly necessary for the basic functioning of the website but contribute to a more personalised and convenient browsing experience for users.
A “statistics” cookie typically refers to cookies that are used to collect anonymous data about how visitors interact with a website. These cookies help website owners understand how users navigate their site, which pages are most frequently visited, how long users spend on each page, and similar metrics. The data collected by statistics cookies is aggregated and anonymized, meaning it does not contain personally identifiable information (PII).
Marketing cookies are used to track user behaviour across websites, allowing advertisers to deliver targeted advertisements based on the user’s interests and preferences. These cookies collect data such as browsing history and interactions with ads to create user profiles. While essential for effective online advertising, obtaining user consent is crucial to comply with privacy regulations.