New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@geins/ralph-module-klaviyo

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geins/ralph-module-klaviyo

Klaviyo module for Geins PWA Storefront Ralph

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

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.

ParameterDefaultRequiredExample
enabledtrueYesEnables the module
debugfalseNoEnables debug info to console
companyIdnoneYesYour Klaviyo Site ID Klaviyo Account Settings

Usage (event tracking)

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

Type of activityEvent trackedInformation tracked
Identify customerUser Login/Register, Newletter signup, Cart checkoutE-mail
Viewed productProduct clicked, Product page viewedProduct name & ID
Added to cartProduct added to cartProduct name & ID
Checkout startedUser clicks to checkout cartProducts 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"
  }
}

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.

Keywords

FAQs

Package last updated on 07 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc