在我的iPhone應用程序中,我正在使用Omniture進行跟蹤。如何跟蹤iPhone應用程序中的全部內容
我在AppDelegate中編寫代碼:
OMAppMeasurement * s = [OMAppMeasurement getInstance];
/* Specify the Report Suite ID(s) to track here */
s.account = @"reportSuiteID";
s.currencyCode = @"USD";
/* Turn on and configure debugging here */
s.debugTracking = YES;
/* WARNING: Changing any of the below variables will cause drastic
changes
to how your visitor data is collected. Changes should only be made
when instructed to do so by your account manager.*/
[email protected]"firstViewController";
s.trackingServer = @"trackingserver";
[s track];
我的控制檯顯示只有一行:
應用測試庫的編譯時間= 2011年1月25日11時46分14秒
建議我我做錯了什麼?
我的代碼是否在正確的位置?
而我在哪裏可以看到報告?
@Claudio Sermenghi:非常感謝,我想了解更多信息,如果我想跟蹤其他頁面,該怎麼辦?這段代碼是否只追蹤「主頁」? – Meghan 2011-03-03 11:32:42
這是實例化跟蹤對象並將第一個pageView發送到Omniture服務器的配置代碼。爲了跟蹤所有其他操作,您必須在每個要跟蹤的動作(例如按鈕推送,頁面重新加載,應用程序導航)中將呼叫轉到s.pageName = @「New Page Name」和[s track] – 2011-03-04 08:45:36
@Claudio Sermenghi:謝謝。我知道了。我還有一個疑問就是,正如你所說的那樣,打電話給s。pagename = @「New Page Name」和[s track],是否應該在每個我想跟蹤的頁面上創建對象(OMAppMeasurement * s = [[OMAppMeasurement alloc] init];) – Meghan 2011-03-05 03:59:34