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

@uptain-gmbh/uptain-pwa

v1.0.2

Published

Uptain tracking and personalization module for PlentyONE / Plentyshop PWA (Nuxt 3)

Downloads

224

Readme

@uptain-gmbh/uptain-pwa

Uptain tracking and personalization module for PlentyONE / Plentyshop PWA (Nuxt 3).

Install the package, register the module, set environment variables — no patches to Plentyshop core files (settings.config.ts, settings-groups-imports, etc.) are required.

Requirements

  • Plentyshop PWA / PlentyONE project (Nuxt 3)
  • @plentymarkets/shop-api and @plentymarkets/shop-core (peer dependencies)
  • A working shop .env with PlentyONE API credentials (API_ENDPOINT, API_SECURITY_TOKEN, CONFIG_ID, …) — see the Plentyshop quickstart

Installation

Standard (inside apps/web)

cd apps/web
npm install @uptain-gmbh/[email protected]

Turborepo / monorepo (from repository root)

npm install @uptain-gmbh/[email protected] --workspace=web
# or
cd apps/web && npm install @uptain-gmbh/[email protected]

Setup (manual steps after install)

1. Register the Nuxt module

In apps/web/nuxt.config.ts:

export default defineNuxtConfig({
  modules: [
    '@plentymarkets/shop-core',
    '@plentymarkets/shop-module-mollie',
    '@plentymarkets/shop-module-gtag',
    '@uptain-gmbh/uptain-pwa',
    // ...other modules
  ],
});

2. Environment variables

Add to apps/web/.env (see .env.example in this package):

NUXT_PUBLIC_UPTAIN_ID=YOUR_TRACKING_ID
NUXT_PUBLIC_UPTAIN_ENABLED=1
NUXT_PUBLIC_UPTAIN_DEBUG_MODE=0
NUXT_PUBLIC_UPTAIN_COOKIE_GROUP=CookieBar.marketing.label
NUXT_PUBLIC_UPTAIN_BLOCK_COOKIES_INITIALLY=false
NUXT_PUBLIC_UPTAIN_TRANSMIT_NEWSLETTER_DATA=false
NUXT_PUBLIC_UPTAIN_TRANSMIT_CUSTOMER_DATA=false
NUXT_PUBLIC_UPTAIN_TRANSMIT_REVENUE=false

| Variable | Required | Description | |----------|----------|-------------| | NUXT_PUBLIC_UPTAIN_ID | Yes (when enabled) | Your Uptain tracking ID from the Uptain dashboard | | NUXT_PUBLIC_UPTAIN_ENABLED | Recommended | 1 = load tracking script, 0 = off | | NUXT_PUBLIC_UPTAIN_DEBUG_MODE | No | 1 = log data-* attributes to the browser console | | NUXT_PUBLIC_UPTAIN_COOKIE_GROUP | No | Cookie bar group for consent (default: marketing) | | NUXT_PUBLIC_*_TRANSMIT_* | No | Personal data / revenue transmission toggles |

The module merges these into runtimeConfig.public automatically. You do not need to edit apps/web/app/configuration/settings.config.ts.

3. Ignore generated files

The module creates a symlink at build time:

apps/web/modules/uptain/runtime → node_modules/@uptain-gmbh/uptain-pwa/runtime

Add to your shop .gitignore:

# Uptain PWA module (generated on nuxt prepare / dev / build)
apps/web/modules/uptain

4. Restart the dev server

After install or .env changes:

npm run dev

The editor settings symlink is created when Nuxt starts (nuxt prepare / npm run dev).

5. Editor settings (merchant UI)

Merchants configure Uptain under:

SEO settings → Tracking & analytics → Uptain

Local development (editor UI)

In apps/web/.env:

NUXT_PUBLIC_IS_PREVIEW=1

Restart the dev server and open the shop in the browser.

Optional: if preview mode is driven by a PlentyONE cookie in your environment, set a pwa cookie and reload. This is not required on all setups.

Production / PlentyONE preview

  1. Deploy the shop from your Git connection in PlentyONE.
  2. Activate preview mode for the shop.
  3. Open the editor from PlentyONE (Shop » Management).

Changes to some editor settings may require a shop redeploy to take effect (shown in the Uptain settings panel).

Uninstall

npm uninstall @uptain-gmbh/uptain-pwa
rm -rf apps/web/modules/uptain

Remove the module from nuxt.config.ts, restart the dev server.

What you do not need to change

On stock Plentyshop PWA (from 1.0.2 onward):

  • apps/web/app/utils/settings-groups-imports — no extra globs
  • apps/web/app/utils/settings-translations-imports — no extra globs
  • apps/web/app/configuration/settings.config.ts — no Uptain keys required

The module registers editor UI via apps/web/modules/uptain/runtime, which Plentyshop discovers with its built-in ~~/modules/*/runtime/components/settings/** glob.

How it works (technical)

  1. Tracking: client/server plugins load the Uptain script and register cookie-bar entries.
  2. Editor UI: on module setup, runtime/ is linked into apps/web/modules/uptain/runtime.
  3. Settings API: useSiteSettings('uptainId') etc. read from runtimeConfig.public and persisted shop settings.

Troubleshooting

| Problem | Check | |---------|--------| | No tracking script | NUXT_PUBLIC_UPTAIN_ENABLED=1 and a valid NUXT_PUBLIC_UPTAIN_ID | | No Uptain block in editor | NUXT_PUBLIC_IS_PREVIEW=1, dev server restarted, apps/web/modules/uptain/runtime exists | | Uptain still visible after uninstall | Remove apps/web/modules/uptain and restart the dev server | | Cookie / consent issues | NUXT_PUBLIC_UPTAIN_COOKIE_GROUP matches a group in your cookie bar config | | Debug | NUXT_PUBLIC_UPTAIN_DEBUG_MODE=1, look for #__up_data_qp in the DOM |

Enable debug logging:

NUXT_PUBLIC_UPTAIN_DEBUG_MODE=1

License

MIT