Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.38 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.38 KB

Catalyst + Klaviyo

Getting Started

  1. Clone this repository and install its dependencies
git clone git@github.com:bigcommerce-labs/catalyst-klaviyo.git && cd catalyst-klaviyo && pnpm i
  1. Copy the environment variable template and enter values for each variable. To help with the BigCommerce variables, you can run the create-catalyst CLI's init command
pnpm create @bigcommerce/catalyst@latest init
  1. The .env.local file created by the init command above will not create the NEXT_PUBLIC_KLAVIYO_PUBLIC_KEY variable, so we'll need to add that. To create a public key, install and configure the Klaviyo application for BigCommerce.

Note

For Step 5 in the Klaviyo help article above, you most likely want to uncheck the Onsite Tracking box; onsite tracking scripts are taken care of for you by the files contained in the integrations/klaviyo directory at the root of this repository.

  1. Now that your Klaviyo account is linked to your BigCommerce store, grab your Klaviyo Public Key from your Klaviyo account: https://www.klaviyo.com/settings/account/api-keys, and then run the command below replacing YOUR_PUBLIC_KEY with the value retrieved from your account
echo "\nNEXT_PUBLIC_KLAVIYO_PUBLIC_KEY=YOUR_PUBLIC_KEY" >> .env.local