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

@geins/ralph-module-klaviyo

v1.0.1

Published

Klaviyo module for Geins PWA Storefront Ralph

Downloads

28

Readme

NPM Package NPM Downloads Geins

Start Geins Free Trial Geins Docs

geins-klavyio

Klaviyo Marketing Automation module for Geins PWA Storefront

A module for Geins PWA Storefront Ralph that adds Klaviyo marketing automation to your storefront in seconds.

Pre-requisites

Description

This module will seamlessly integrate Klaviyo's powerful marketing automation capabilities into your Geins Storefront. With this module, you effortlessly boost your marketing efforts and customer engagement.

Installation

1. Install the module

npm i @geins/ralph-module-klaviyo

2. Add the module to your Geins PWA Storefront Ralph

Add the module to your Geins PWA Storefront Ralph by adding the following line to your nuxt.config.json file:

...
  modules: [
    [
      '@geins/ralph-module-klaviyo',
      {
          enabled: true,
          debug: true,
          companyId: 'your-klaviyo-site-id'
      }
    ]
  ]

h ## To use with Geins CMS (no-code)

1. Add the module to your Geins PWA Storefront Ralph

Use the @geins/ralph-module-cms-json-container

npm i @geins/ralph-module-cms-json-container

2. Add the module to your Geins PWA Storefront Ralph

Add module to your nuxt.config.json file:

// nuxt.config.js

...
    modules: [
      '@geins/ralph-module-cms-json-container'
    ]
..

Set the widgetRenderTypesComponents in your nuxt.config.json file to use the GeinsWidgetJsonContainer component for the JSON widget type.

// nuxt.config.js

...
  publicRuntimeConfig: {
      widgetRenderTypesComponents: {
        JSON: 'GeinsWidgetJsonContainer'
      },
  }
...

Module Options

Add extra options to module configuration in nuxt.config.json file. | Parameter | Default | Required | Example | |-|-|-|-| | enabled | true | Yes | Enables the module| | debug | false | No | Enables debug info to console | | companyId | none | Yes | Your Klaviyo Site ID Klaviyo Account Settings |

Usage (event tracking)

The module will track activity on your site related to your users.

| Type of activity | Event tracked | Information tracked | | ----------------- | ---------------------------------------------------- | ------------------- | | Identify customer | User Login/Register, Newletter signup, Cart checkout | E-mail | | Viewed product | Product clicked, Product page viewed | Product name & ID | | Added to cart | Product added to cart | Product name & ID | | Checkout started | User clicks to checkout cart | Products in cart |

Usage (sign-up forms)

Add a sign-up form to any desired page of your storefront. Either by cms or as a component. Add an id to the component to identify which Klaviyo form to render.

Currently only Embed type forms are possible. Read here about sign-up forms in Klaviyo

Components

Module adds two components to your storefront. GeinsKlaviyoForm and GeinsWidgetKlaviyoForm.

GeinsKlaviyoForm

This component is used to show a specific sign-up form from Klaviyo. It is used by the GeinsWidgetKlaviyoForm component. You can use it directly in your page if you want to add the player directly to your page as a component. If you

<GeinsKlaviyoForm formId="your-form-id" />

GeinsWidgetKlaviyoForm

The widget is a wrapper around the GeinsKlaviyoForm component. It is used to add the component via CMS. It is not needed if you add the component directly to your page.

Use with Geins CMS

Add a JSON Widget to your page in the Geins CMS. Add the following JSON to your widget. Replace your-form-id with the id of Klaviyo sing-up form you want to register. You can find the id in your Klaviyo dashboard (Sign-up forms).

{
  "renderWidget": "GeinsWidgetKlaviyoForm",
  "data": {
    "id": "your-form-id"
  }
}

User consent Important!

The Klaviyo module will only track customers activity if all cookies have been allowed. To be compliant add information about Klaviyo's tracking on your cookies page.