Swish Docs
Go to websiteInstall now
  • Swish Documentation
  • GETTING STARTED
    • Getting Started
  • THEME EXTENSIONS
    • App Settings
    • Collection Buttons
    • Floating Wishlist Link
    • Product Page Buttons
    • Wishlist Page
  • CUSTOMIZATIONS
    • Code Editor
    • Custom Wishlist Page
    • Instant Header Link
    • Custom Colour Swatches
    • Save for Later Button
    • Wishlist Notifications
  • INTEGRATIONS
    • Swish API
    • Klaviyo Integration
      • Klaviyo Integration Setup
      • Configuring Events In Swish
      • Testing Events
      • Setting Up Klaviyo Flows
        • Wishlist Welcome Flow
        • Wishlist Reminder Flow
        • Low In Stock Flow
        • Back In Stock Flow
        • Price Drop Flow
      • Configuring Email Content
        • Flows and Events
        • Inserting A Single Product Into An Email Template
        • Inserting Multiple Products Into An Email Template
    • Google Analytics
    • Meta Pixel
    • Maestra
Powered by GitBook
On this page
  1. INTEGRATIONS

Maestra

Track Wishlist events in Maestra.

Maestra is an omnichannel marketing hub designed for online retail and DTC brands. Using Wishlist King, you can monitor your customers' Wishlist activities in Maestra and construct marketing flows related to Wishlist activity.

Code Access

Add the below code in Code Access > Event Subscribers.

export function setup({ app }) {

  // Leave the default subscribers and add the code below

  app.events.subscribe("wk:wishlist:add:success", (event) => {
    const { product, variant } = event.data;

    mindbox?.("async", {
      operation: "AddToWishList",
      data: {
        customer: {
          email: app.customer?.email,
        },
        addProductToList: {
          productGroup: {
            ids: {
              shopifyUK: product.id,
            }
          },
          product: {
            ids: {
              shopifyUK: variant?.id,
             }
          }
        }
      }
    });
  });
  
  app.events.subscribe("wk:wishlist:remove:success", (event) => {
    const { product, variant } = event.data;

    mindbox?.("async", {
      operation: "RemoveFromWishList",
      data: {
        customer: {
          email: app.customer?.email,
        },
        removeProductFromList: {
          productGroup: {
            ids: {
              shopifyUK: product.id,
            }
          },
          product: {
            ids: {
              shopifyUK: variant?.id,
             }
          }
        }
      }
    });
  });
}
PreviousMeta Pixel

Last updated 5 months ago