glitch-javascript-sdk 2.8.2 → 2.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -6970,6 +6970,17 @@ declare class WebsiteAnalytics {
6970
6970
  * @returns Promise with a unified timeline of the user’s journey, in chronological order.
6971
6971
  */
6972
6972
  static userJourney<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
6973
+ /**
6974
+ * Get a detailed marketing report for the game's landing page.
6975
+ * Includes scroll depth, video watch time distribution, and CTA performance.
6976
+ *
6977
+ * @param params
6978
+ * - title_id: string (Required)
6979
+ * - start_date?: string (YYYY-MM-DD)
6980
+ * - end_date?: string (YYYY-MM-DD)
6981
+ * - group_by?: 'country' | 'device'
6982
+ */
6983
+ static landingPageReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
6973
6984
  }
6974
6985
 
6975
6986
  declare class ShortLinks {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -319,15 +319,34 @@ class WebsiteAnalytics {
319
319
  * - end_date?: string Optional. End date (YYYY-MM-DD) if your API supports time limiting
320
320
  *
321
321
  * @returns Promise with a unified timeline of the user’s journey, in chronological order.
322
- */
323
- public static userJourney<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
324
- return Requests.processRoute(
322
+ */
323
+ public static userJourney<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
324
+ return Requests.processRoute(
325
325
  WebsiteAnalyticsRoute.routes.journey, // references our new route definition
326
326
  {}, // no body data (GET request)
327
- undefined,
328
- params
329
- );
330
- }
327
+ undefined,
328
+ params
329
+ );
330
+ }
331
+
332
+ /**
333
+ * Get a detailed marketing report for the game's landing page.
334
+ * Includes scroll depth, video watch time distribution, and CTA performance.
335
+ *
336
+ * @param params
337
+ * - title_id: string (Required)
338
+ * - start_date?: string (YYYY-MM-DD)
339
+ * - end_date?: string (YYYY-MM-DD)
340
+ * - group_by?: 'country' | 'device'
341
+ */
342
+ public static landingPageReport<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
343
+ return Requests.processRoute(
344
+ WebsiteAnalyticsRoute.routes.landingPageReport,
345
+ {},
346
+ undefined,
347
+ params
348
+ );
349
+ }
331
350
  }
332
351
 
333
352
  export default WebsiteAnalytics;
@@ -63,11 +63,15 @@ class WebsiteAnalyticsRoute {
63
63
  url: '/analytics/utm-performance',
64
64
  method: HTTP_METHODS.GET
65
65
  },
66
- journey: {
67
- url: '/analytics/journey',
68
- method: HTTP_METHODS.GET
69
- }
70
-
66
+ journey: {
67
+ url: '/analytics/journey',
68
+ method: HTTP_METHODS.GET
69
+ },
70
+ landingPageReport: {
71
+ url: '/analytics/reports/landing-page',
72
+ method: HTTP_METHODS.GET
73
+ },
74
+
71
75
  };
72
76
  }
73
77