Follow these steps to add comScore to your project depending on your integration platform:
To add comScore to your Android project:
Open your app/build.gradle (Module: app) file and add the following under dependencies:
implementation'com.rudderstack.android.sdk:core:[1.17.0, 2.0.0)'implementation'com.rudderstack.android.integration:comscore:[1.1.0,)'// It enables Comscore to collect a privacy-friendly publisher-specific device identifier, App Set ID, for estimating the number of unique users for audience research purposes.
implementation'com.google.android.gms:play-services-appset:16.+'
Change the SDK initialization in your Application class:
After adding the dependency, register RudderComscoreFactory with your SDK initialization as a factory or RudderConfig. To do so, import the RudderComScoreFactory.h in your AppDelegate.m file:
You can pass the consent information to comScore by leveraging RudderStack’s consent management feature. Make sure to specify the consent settings in the dashboard.
RudderStack supports passing the consent information manually while loading the SDK, by including the integrations object during initialization — this object includes a consent field where you can pass the consent status.
A sample integrations object is shown:
rudderanalytics.load(WRITE_KEY,DATA_PLANE_URL,{integrations:{All:Boolean,// Default is true
COMSCORE:{consent:{cs_ucfr:true// Consent value forwarded to comScore
}},...}});
Screen
You can use the screen call to record whenever a user views their mobile screen and capture any properties about the viewed screen.
RudderStack maps the screen events to comScore’s notifyViewEvent API.
For both track and screen events, RudderStack maps the event name with comScore’s name field. It sends all the other properties to comScore as is, without any modifications.
Reset
Use the reset call to reset userId and the associated traits.
A sample reset call is shown:
RudderClient.getInstance()?.reset(true)
FAQ
Where can I find the comScore Publisher ID?
You can find the comScore Publisher ID by logging in to your comScore Direct account.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.