mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-17 09:01:07 +08:00
fix(google-analytics): add newSession param
This commit is contained in:
parent
7dba41cbe1
commit
f62e1081e1
@ -89,12 +89,13 @@ export class GoogleAnalytics {
|
|||||||
* Track a screen
|
* Track a screen
|
||||||
* https://developers.google.com/analytics/devguides/collection/analyticsjs/screens
|
* https://developers.google.com/analytics/devguides/collection/analyticsjs/screens
|
||||||
*
|
*
|
||||||
* @param {string} title Screen title
|
* @param title {string} Screen title
|
||||||
* @param {string} campaignUrl Campaign url for measuring referrals
|
* @param campaignUrl {string} Campaign url for measuring referrals
|
||||||
|
* @param newSession {boolean} Set to true to create a new session
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static trackView(title: string, campaignUrl?: string): Promise<any> { return; }
|
static trackView(title: string, campaignUrl?: string, newSession?: boolean): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a Custom Dimension
|
* Add a Custom Dimension
|
||||||
@ -109,14 +110,15 @@ export class GoogleAnalytics {
|
|||||||
/**
|
/**
|
||||||
* Track an event
|
* Track an event
|
||||||
* https://developers.google.com/analytics/devguides/collection/analyticsjs/events
|
* https://developers.google.com/analytics/devguides/collection/analyticsjs/events
|
||||||
* @param {string} category
|
* @param category {string}
|
||||||
* @param {string} action
|
* @param action {string}
|
||||||
* @param {string} label
|
* @param label {string}
|
||||||
* @param {number} value
|
* @param value {number}
|
||||||
|
* @param newSession {boolean} Set to true to create a new session
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static trackEvent(category: string, action: string, label?: string, value?: number): Promise<any> { return; }
|
static trackEvent(category: string, action: string, label?: string, value?: number, newSession?: boolean): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Track an exception
|
* Track an exception
|
||||||
|
Loading…
x
Reference in New Issue
Block a user