npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@applicaster/quick-brick-google-analytics

v10.1.0

Published

Javascript implementation of Google Analytics

Downloads

70

Readme

Quick-Brick-Google-Analytics

npm version

This plugin configures and initializes Google Analytics for QuickBrick based projects. The plugin is based off of a library called react-ga written by the team over at the Mozilla.

When initializing Google Analytics the plugin either 'auto' configures the application using all of Google's defaults or it utilizes a custom configuration that works for projects running off the device's local file system. This configuration was designed to be used on web based platforms like Samsung and LG but it applies to any device running the static assets locally.

Configuration

Tracker ID

In order to use this plugin users are required to specify the tracker id. The format is UA-XXXX-Y. All collected data is associated by this ID.

| Field Name | Value Type | Default Value | | :--------: | :--------: | :-----------: | | trackingId | text | None | | | | |

Optional Fields

Optionally users could configure the following fields:

  • Sample rate
  • Site speed sample rate
  • Always send referrer
  • Cookie expiration

Sample Rate

Specifies what percentage of users should be tracked. This defaults to 100 (no users are sampled out) but large sites may need to use a lower sample rate to stay within Google Analytics processing limits.

| Field Name | Value Type | Default Value | | :--------: | :--------: | :-----------: | | sampleRate | number | 100 | | | | |

Site Speed Sample Rate

This setting determines how often site speed beacons will be sent. By default, 1% of users will be automatically be measured.

| Field Name | Value Type | Default Value | | :-----------------: | :--------: | :-----------: | | siteSpeedSampleRate | number | 1 | | | | |

Always Send Referrer

By default the HTTP referrer URL, which is used to attribute traffic sources, is only sent when the hostname of the referring site differs from the hostname of the current page. Enable this setting only if you want to process other pages from your current host as referrals.

| Field Name | Value Type | Default Value | | :----------------: | :--------: | :-----------: | | alwaysSendReferrer | boolean | false | | | | |

Cookie Expriation

Specifies the cookie expiration, in seconds.

| Field Name | Value Type | Default Value | | :-----------: | :--------: | :------------------: | | cookieExpires | integer | 63072000 (two years) | | | | |

Pre-configured Fields

The following fields are not user configurable and have been defined for the user:

  • Allow Anchor: true,
  • Cookie Name: "_ga" + bundleID,
  • Cookie Domain: "none",
  • Cookie Flags: "SameSite=None",
  • Allow Linker: true,

For additional information please refer to Google Analytics docs here

Events

At the moment we are sending the following events from TV Platforms:

  • Launch App
  • Home screen: Viewed
  • Tap Cell
  • VOD Item: Play Was Triggered
  • Play VOD Item
  • Channel Item: Play Was Triggered
  • Program Item: Play Was Triggered