Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@geins/ralph-module-tiktok

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geins/ralph-module-tiktok

TikTok module for Geins PWA Storefront Ralph

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

NPM Package NPM Downloads Geins

Start Geins Free Trial Geins Docs

geins-tiktok

Tiktok module for Geins PWA Storefront

The Tiktok module is an extension for Geins PWA Storefront Ralph that integrates TikTok Pixel event tracking into your storefront. By leveraging the power of TikTok's advertising platform, you can track and optimize user interactions on your online store.

Pre-requisites

Before using the Tiktok module, make sure you have the following:

Description

The Tiktok module allows you to easily integrate TikTok Pixel event tracking into your Geins PWA Storefront Ralph. It provides a seamless integration that enables you to track various user actions on your online store and optimize your advertising campaigns on TikTok.

Installation

To install the Tiktok module, follow these steps:

1. Install the module

Open your terminal and run the following command:

npm i @geins/ralph-module-tiktok

2. Add the module to your Geins PWA Storefront Ralph

To add the module to your Geins PWA Storefront Ralph, open your nuxt.config.js file and add the following code snippet:

...
  modules: [
    [
      '@geins/ralph-module-tiktok',
      {
          enabled: true,
          debug: true,
          pixelId: 'your tiktok pixel ID',
          trackEvents: false
      }
    ]
  ]

Event tracking with TikTok Pixel

To track various user events on your online store, such as add to cart, favorited product, checkout started, viewed product, purchase completed, newsletter subscribed, and user registration, you need to set up event tracking with TikTok Pixel. Here's how you can do it:

  1. If you don't already have a TikTok Pixel ID, you need to obtain one through your TikTok Ads Manager account. You can find detailed instructions on how to get started with the TikTok Pixel here
  2. Once you have your TikTok Pixel ID, add it to the pixelId option in the module configuration
  3. If you want to track ralph-events, set the trackEvents option to true in the module configuration.

The Tiktok module will then track the following ralph events:

Type of activityEvent trackedInformation sent
Add to cartUser adds a product to the cartSku ID, quantity, product name
Favorited productUser adds a product to their FavoritesProduct ID
Checkout startedUser clicks on "go to checkout"Sku ID, quantity, product name for all items in the cart
Viewed productUser navigates to a product pageProduct ID, product name
Purchase completedUser checks out their cart and pays--
Newsletter subscribedUser subscribes to newsletter--
User registersUser registers new account--

Module Options

Add extra options to module configuration in nuxt.config.js file.

ParameterDefaultRequiredExample
enabledtrueNoEnables the module
debugtrueNoEnables debug info to console
pixelIdnoneNoYour company's Tiktok Pixel ID TikTok Ads Manager
trackEventsfalseNoIf set to true, ralph events will be tracked

Usage

The Tiktok module seamlessly integrates with your Geins CMS. You can use it to track various user events and optimize your TikTok advertising campaigns based on the collected data.

Components

The Tiktok module does not introduce any new components. It enhances the functionality of your Geins PWA Storefront Ralph by adding TikTok Pixel event tracking capabilities.

Keywords

FAQs

Package last updated on 08 Aug 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