Chapters

Method: POST
URL: https://www.wellcomemat.com/api/analytics/chapters.php

Notes:

  1. Both total clicks and click data separated by time are returned.

Parameters

KeyTypeDescription
keytext{{key}}
secrettext{{secret}}
start_datetextRequired [YYYY-MM-DD hh:mm:ss]
end_datetextRequired [YYYY-MM-DD hh:mm:ss]
sharedtextIf request Rolled-up Reporting [“true”,“false”]
hashtextFocuses view query on the given Media Hash
filtertextCustom filter can be created (“vv.media_id = 214122”)
debugtext[“true”,“false”]

Response

type AnalyticsChaptersResponse = {
  success: 0 | 1;
  data: {
    total_clicks: number;
    by_time: {
      time: number; // seconds
      title: string;
      clicks: number;
    }[];
  };
  google_chart: string; // (with escaped characters)
  error: string;
  warnings: string;
};