API Reference
  • Introduction
  • 💻CLI Commands
    • Create commands
      • create
      • create-package
    • Run commands
      • dev
      • serve
    • Build commands
      • build
    • Extra commands
  • 🍱Packages
    • 💙Core package
      • frontity
    • ⚡Features packages
      • @frontity/wp-source
      • @frontity/tiny-router
      • @frontity/html2react
      • @frontity/head-tags
      • @frontity/yoast
      • @frontity/google-ad-manager
      • @frontity/smart-adserver
      • analytics packages
        • @frontity/google-analytics
        • @frontity/google-tag-manager-analytics
        • @frontity/comscore-analytics
      • @frontity/wp-comments
    • 📚Collections packages
      • @frontity/components
      • @frontity/hooks
        • Infinite Scroll Hooks
        • Intersection Observer Hooks
    • 🎨Themes Packages
      • @frontity/twentytwenty-theme
      • @frontity/mars-theme
  • 🔌WordPress Plugins
    • REST API - Head Tags
    • Frontity Embedded Mode
Powered by GitBook
On this page
  • Table of Contents
  • Install
  • Settings
  • Usage
  • actions.analytics.pageview
  • actions.analytics.event

Was this helpful?

  1. Packages
  2. Features packages
  3. analytics packages

@frontity/comscore-analytics

Previous@frontity/google-tag-manager-analyticsNext@frontity/wp-comments

Last updated 3 years ago

Was this helpful?

Analytics package for Frontity.

Table of Contents

Install

npm i @frontity/comscore-analytics

Settings

The 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

export default {
  packages: [
    {
      name: "@frontity/comscore-analytics",
      state: {
        comscoreAnalytics: {
          trackingId: "34567890",
        },
      },
    },
  ],
};
export default {
  packages: [
    {
      name: "@frontity/google-tag-manager-analytics",
      state: {
        comscoreAnalytics: {
          trackingIds: ["34567890", "56789012"],
        },
      },
    },
  ],
};

Usage

  • actions.analytics.pageview will take into account settings in state.analytics.pageviews

  • actions.analytics.event will take into account settings in state.analytics.events

actions.analytics.pageview

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.

The @frontity/comscore-analytics package can co-exist with any of the other analytics packages such as and . Once these analytics packages have been properly installed and configured their actions will be centralized by the analytics namespace.

Read more about how to use Analytic packages .

If @frontity/comscore-analytics is configured , 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.

🍱
⚡
@frontity/google-analytics
@frontity/google-tag-manager-analytics
and enabled for pageviews
Comscore
namespace
Install
Settings
Usage
actions.analytics.pageview
actions.analytics.event
here