This section contains abridged instructions for experienced users to implement comScore library versions 5.3.0 and newer. The example code statements use Objective-C code. If your project uses Swift code, then please use equivalent code statements.
1. Confirm you have taken care of all the preparation items .
2. Include the comScore library in your project ( Include the Library in Your Application Project).
a. Include theComScore.frameworkappropriate for the project target(s)(1)in your project either automatically viaCocoaPodsor manually if you cannot (or do not want to) use CocoaPods.
b. Confirm your project targets include theAdSupport.frameworkas needed.
c. Import the header file<ComScore/ComScore.h>into your code as needed.
3. Configure and start the library .
a. Provide your publisher configuration settings:
b. Start the library:
4. If you are tagging atoday-extensioniOS extension then please add calls to [SCORAnalytics notifyEnterForeground] and[SCORAnalytics notifyExitForeground]to tag the application life cycle of the extension.
5. If your application can provide a user experience – like the playback of music or video –while the application is in the background, then tag the application user experience by adding calls to [SCORAnalytics notifyUxActive]and[SCORAnalytics notifyUxInactive].
6. Tag application section changes as needed. Please note that this step is entirely optional. You only need to tag application section changes if you want metrics to be reportable per section of your application.
After successfully following these steps you will have implemented the comScore library. Please refer to "Test Your Implementation" for instructions on testing the implementation.
0 Comments