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 🙏

© 2026 – Pkg Stats / Ryan Hefner

mobify-analytics-sdk

v0.0.24

Published

A unified way to setup Mobify analytics

Readme

Analytics SDK

Coverage Status

                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                     .......'.........                                    
                                 .,,'.                  ...                               
                               'c,.                        .                              
                             .oo;     ........                                            
                             coo'   .;looolcc:;;,,,;,;;,....  ..                          
                            dxoc' ,dOO0OOOOOOOOOOOOOO0000kxd, .'.                         
                           cO; 'cxKKKKKKKKKKKKKXXXXXXXXXXXXXXk,.                          
                          .d..'lOXXXXXXNNNNNNNNNNNNNNNNNNNNNNNK:.                         
                          :;::dOKkOxOOOOkxdxxxxdddddxxxxxxkkkkkd;.                        
                         .clokKKKOKkkkxkxxxxxxxxxkxkxxkkkkkkkOx0O0x.                      
                         kkKNNNXXxkkOOkkkkxxxxxxxxxxxxxxxxxkkOx0KNWO                      
                       .k0OXXNNXNOdkOkkkxxxxxxxxxxxxxxxxxxxxkOx0KXOc                      
                      'k0OKXXKXXNOdkOkkkkxxxxxxxxxxxxxxxxxxxkkx0Kd'.                      
                     cdOOKXXXXXXNOdkOkkkkxxxxxxxxxxxxxxxxxxxkkx0Kxcl'                     
                    .dOOKXXXXXXXN0dkOOkkkkxxxxxxxxxxxxxxxxxxkkx0Kdld:                     
                   .oOK0XXXXXXXXNKxkOOkkkkkxxxxxxxxxxxxxxxxkkkxOKd;:;                     
                   :kKXKKXXXXXXNNXxkOOkkkkkkkkkkkkkkkkkkkkkkkOkOKdcco.                    
                   oOKNX0KXXXXXXNXxx0OOOOOkOOOOOOOOOOOOOOOOOOOkkOdxdo,                    
                   l00XXKKXXXXXXNNkx00000000000000000000000000OOOdxoo;                    
                   ;K0KXKKKKXXXXNN0xOOOOOOOOOOkkkkOOkkkkkkkkkkkxxxdooc,,'.                
                   'KKKKKKKKKXXXNNOoxxxxkkkkOOOOO000OOOOkOOOO00OkxxddOkdo,.               
                   .KKKKKKKKKXXXXNNXXXXXXKkkkkkkkkkxxxkxOXNNNWX0OkkxOKO00kl.              
                   .KKKKKXXXXXNNXNWWNNNNNKxdxxdkxkxxkdkxxNWWWNKKOOk0XK00000d,             
                    KKKKKXNXXXXXXXXNWWWWWXdxOkk0kOkkOkOOdXWWXxO0XK0NXX00000Kl             
                   .KKXXXXNWNX0O0000KNNWWNxdkkKO0XOX0OOkxKX0OxkXXKNNXKKK00KXo             
               ..,'.KKXXXXNWNXXXXNNNK000XNxcoolddodloocc:0000XWNXWNXKXX00KNK:             
             ;xkxdcdKXNXNNXNWNXXNNNNWWWNKKklodlodlxodddxOKKNWWNNWNXKXKKKKNNk.             
            ,lollxOK0XXKXNNXNWNXXNNWWWWWWWNX0KKKKXXK0Ok0XNNWWNNWNXKKKKKXNWKo.             
           ,dcl:lO0XKXXKKXNNXNWNNXNNNWWWWWWWWXKXNNNNXNNNNNWWNNWNXKKKKKXNWNOxokc.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WWWWK0NNNKOOX0O0X
NNX0kl:kWNNWWWWNXNN0KO0NWNNNNNNNNKOXWWWWNNNWWWWWWNNWWWWNNX0XWWWWWWWXkxXWWWWWKkOOkdoo0NWWWW
NXXXXXNWWNKXNWWWXKNX00kONWWWNNNNNNXOKNWWWNNNNNWWWWNNWWNNNNWWWWWWWNOxKWWWWWWNddkxlccd00KNNX
WWNNNNNNNN0k0XNWNKKNKkkdkXWWWWWNNNNKOKNWWWWWNNNNNWWWWWNNWWWWWWNN0dONWWWWWWNxloddo;l0Kdoloc
NNWWWNXKKKXOxOKNNX0KNKxodxKWWWWWWWWWNXNNWWWWWWNNNNNWWWWWWWWWNX0xkXWWWWWNNXxcodolkxKXXxcclc
XNNWWNK00KXNOdk0XXKkXN0dooxKWWWWWWWWWNNNNWWWWWWWNNNNWWWWWWNXKOd0NWWWWNNNKdcodol:Ko:OO0oddk

Portrait of one of the original SDK member

Introduction

https://www.npmjs.com/package/mobify-analytics-sdk

Analytics SDK standardize how we capture analytics across different Mobify platform. It contains a few parts:

  • Config file
  • Debug experience
  • Test framework
  • Deployment tool

To get started

npm i
npm run build
npm run test

This will run the necessary tests.

To hot reload test in browser:

npm run build:watch &
npm run start:cold &
open http://localhost:8443/webpack-dev-server/test/index.html

Building the analytics SDK javascript

The analytics SDK will read a specific config file that can be bundled.

To build the SDK, run:

npm run build

Which will generate the analytics-sdk/index.js. The SDK can then be loaded on any webpage by doing:

<script src='analytics-sdk/index.js'></script>

Note: this is for temporary demo but eventually this will be loaded by a.js directly

Side loading script via bookmarklet

One can side-load the script in any page by running:

npm start

And you can load the script from https://localhost:8443/public/bundle/index.js which will have the hot-reload available.

Note that https is required for side-loading on https site.

And then use the following

AnalyticSDK

Just drag and drop this into the toolbar.

Publishing

https://www.npmjs.com/package/mobify-analytics-sdk

This is published on merge to master branch.

To publish manually:

npm run build

# Remember to bump version in package.json

npm publish

Note that assets bundling should be the responsibility of the library requirer.


Analytics SDK config file

The config file is responsible for specifying what to capture on the client.

To validate a config file, run:

npm run build
bin/validate-sdk.js config/config.js

These files also are responsible for generated the documents for config.


Generated Documentation

npm run docs:build

There are 2 main parts of documentation:

  • Main docs generated from src/*
  • Configuration specific docs generated from config/config.js
    • The config file serves as both validation test and documentation to ensure config is up to date.

The source of these docs are documented in package.json docs:build script.

The docs is generated into both Markdown (via jsdoc2md) and HTML format (via jsdoc - not checked into repo)