本文整理匯總了TypeScript中ionic-native.GoogleAnalytics.trackView方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript GoogleAnalytics.trackView方法的具體用法?TypeScript GoogleAnalytics.trackView怎麽用?TypeScript GoogleAnalytics.trackView使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ionic-native.GoogleAnalytics
的用法示例。
在下文中一共展示了GoogleAnalytics.trackView方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: trackView
trackView(view) {
if (window['cordova']) {
this.initID();
GoogleAnalytics.trackView(view);
} else {
/* tslint:disable */
console.log("Analytics Track: " + view);
/* tslint:enable */
}
}
示例2:
this.platform.ready().then(() => {
this.isWindows = this.platform.is('windows');
if(this.platform.is('cordova')) {
this.isAuthenticated = this.auth.isAuthenticated();
// Google Analytics and user settings no applicable on Windows Phone
if(!this.isWindows) {
GoogleAnalytics.trackView('Home Page');
if(this.user.social.facebook && this.user.social.facebook.uid) {
this.currUser = {
id: this.user.social.facebook.uid,
name: this.user.social.facebook.data.full_name,
photo: this.user.social.facebook.data.profile_picture
};
}
}
}
});
示例3: trackView
/**
* Track a screen
*
* @param {string} title - Screen title
* @param {string} campaignUrl - (Optional) Campaign url for measuring referrals
*
* @static
* @returns {Promise<void>}
*/
public static trackView(title: string, campaignUrl?: string): Promise<void> {
return GoogleAnalytics.trackView(title, campaignUrl)
.then(console.log, console.error);
}
示例4:
this.platform.ready().then(() => {
GoogleAnalytics.trackView("Help Page");
});
示例5:
this.platform.ready().then(() => {
GoogleAnalytics.trackView(data);
});
示例6:
this.platform.ready().then(() => {
GoogleAnalytics.trackView(name);
this.touch();
});
示例7:
this.platform.ready().then(() => {
GoogleAnalytics.trackView("Home Page", "www.in3dc.com/membership", true);
});