@frontity/comscore-analytics
​Comscore Analytics package for Frontity.

Table of Contents

Install

1
npm i @frontity/comscore-analytics
Copied!

Settings

The namespace for this package is comscoreAnalytics.
Every Comscore account has a Tracking ID. To connect the package with a specific account (or accounts) set the following properties in the frontity.settings.js file:
    state.comscoreAnalytics.trackingId: to specify just one tracking ID
    state.comscoreAnalytics.trackingIds: to specify a list of tracking ID's
1
export default {
2
packages: [
3
{
4
name: "@frontity/comscore-analytics",
5
state: {
6
comscoreAnalytics: {
7
trackingId: "34567890",
8
},
9
},
10
},
11
],
12
};
Copied!
1
export default {
2
packages: [
3
{
4
name: "@frontity/google-tag-manager-analytics",
5
state: {
6
comscoreAnalytics: {
7
trackingIds: ["34567890", "56789012"],
8
},
9
},
10
},
11
],
12
};
Copied!

Usage

The @frontity/comscore-analytics package can co-exist with any of the other analytics packages such as @frontity/google-analytics and @frontity/google-tag-manager-analytics. Once these analytics packages have been properly installed and configured their actions will be centralized by the analytics namespace.
    actions.analytics.pageview will take into account settings in state.analytics.pageviews
    actions.analytics.event will take into account settings in state.analytics.events
Read more about how to use Analytic packages here.

actions.analytics.pageview

If @frontity/comscore-analytics is configured and enabled for pageviews, every time a link changes (or every time action.router.set(link) is launched) tracking information for that page will be sent to Google Analytics.

actions.analytics.event

This package doesn't actually track events for Comscore so any call of the method actions.analytics.event() will have no effect for this service.
Last modified 3mo ago