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

cordova-plugin-mergn

v2.2.6-beta

Published

Mergn Mobile cordova SDK

Readme

MERGN SDK CORDOVA 2.8.1

This documentation provides integration steps and usage instructions for incorporating the MERGN CORDOVA SDK 2.8.1 (Android/IOS) into your project. Follow these steps to initialize the SDK setup, record events, and manage attributes within your application.

Integration Steps

1. Include SDK in Your Project

  1. Place mergn_sdk_cordova_3.1.2.aar in the following directory:
    platforms/android/app/src/main/libs

2. Add Dependencies in build.gradle (app)

Add the following dependencies to your build.gradle (app):

implementation files('src/main/libs/mergn_sdk_cordova_2.8.1.aar') // Add latest version
implementation "androidx.room:room-runtime:2.4.0"
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
implementation "com.android.installreferrer:installreferrer:2.2"
implementation "androidx.work:work-runtime-ktx:2.7.0"

3. Sync the Project

Make sure to sync your project after adding the dependencies.

4. Add the Cordova Plugin

Run the following command in the root directory of your Cordova project:

cordova plugin add [email protected]  // Add Latest Version

5. Update config.xml

Add the following feature in your config.xml:

<feature name="Mergn">
  <param name="android-package" value="nl.xservices.plugins.Mergn" />
</feature>

6. Include Mergn JavaScript in Your HTML

Add the following script tag to your index.html:

<script type="text/javascript" src="js/Mergn.js"></script>

Usage

1. Initiate MERGN SDK Setup

To initialize the SDK, use the following command:

window.plugins.mergn.RegisterApi({
    apiKey: "Enter API Key Here"
});

2. Record Events

To record events, provide the event name and properties:

var eventPropertiesMap = new Map(); // In case of no property
// var eventPropertiesMap = { // In case of properties
//     "propertyName": "value"
// };
var eventPropertiesJSON = JSON.stringify(eventPropertiesMap);

window.plugins.mergn.PerformEvent({
    eventName: "PropertyName",
    eventPropertiesMap: eventPropertiesJSON
});

3. Record Attributes

To record attributes, provide the attribute name and value:

window.plugins.mergn.SendAttribute({
    attributeName: "AttributeName",
    attributeValue: "AttributeValue"
});

4. Login

To record the login event when the user successfully logs in, use the following method:

window.plugins.mergn.Login({
    uniqueIdentifier: "Unique Identifier"
});

Unique Identity (mandatory): This value is the customer's unique identity in your database, such as an ID or email.