You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a website has different sections, for instance, media has *Health*, *World news*, *Local news*and it should be tracked differenlty `UserReport.trackSectionScreenView(sectionId)` method should be used instead.
74
+
If a media (website) has one single topic, it can be tracked using `UserReport.trackScreenView()`.
81
75
82
-
#### Manual invocation
83
-
If`UserReport.trackSectionScreenView`or`UserReport.trackScreenView()` methods invoked by your code, automatic tracking should not be used.
76
+
If a website has different sections, for instance *Health*, *World news* and *Local news*, then it should be tracked using `UserReport.trackSectionScreenView(sectionId)`. The `sectionId` for a particular section can be found on the Media Setting page in UserReport.
84
77
85
-
#### Example
78
+
Example of manual tracking:
86
79
```swift
87
80
class ViewController: UIViewController {
88
81
override open func viewDidAppear(_ animated: Bool) {
@@ -94,13 +87,37 @@ class ViewController: UIViewController {
94
87
}
95
88
```
96
89
97
-
#### Automatic tracking
98
-
If you want to automatically measure screen views. Application's ViewControllers should be inherited from the `UserReportViewController` class.
90
+
#### Do not combine automatic and manual tracking
91
+
If you use the `UserReport.trackSectionScreenView` and/or `UserReport.trackScreenView()` methods, then automatic tracking should be disabled. As you can see in the manual tracking example, the `ViewController` does *not* inherit from `UserReportViewController`.
92
+
93
+
## Usage for surveying
94
+
### Configure
95
+
Configure the UserReport iOS SDK using your `SAK_ID`, your `MEDIA_ID` and information about the user.
96
+
97
+
Your `SAK_ID` and `MEDIA_ID` can be found on the Media Setting page in UserReport.
0 commit comments