Przejdź do treści

WooCommerce integration guide

Below is a detailed step-by-step guide to integrate the WooCommerce plugin with ExpertSender CDP, with explanations for each tab and feature. Screenshots from the plugin should be added where indicated for better clarity.

General Settings Tab#

Steps to Configure General Settings#

  1. API Key: Enter the API key obtained from ExpertSender CDP.
    • How to find the API key:
      • Log in to ExpertSender CDP.
      • Navigate to Settings -> API.
      • Copy the API key and paste it here.
  2. Enable Web Tracking Script: Check this option to enable tracking.
    • Web Tracking Script:
      • Retrieve the script from ExpertSender by going to Settings -> Web Tracking and selecting your website.
      • Copy and paste the script in the designated field.
  3. Website ID: Enter the website ID associated with your account in ExpertSender CDP.
    • How to find the Website ID:
      • Navigate to Settings -> Web Tracking -> Websites in ExpertSender.
      • Copy the ID and paste it here.
  4. Send Users’ Phone Number to ExpertSender CDP: Enable this if you want to sync phone numbers.
    • Important Note: This checkbox should be selected only if the store stores phone numbers in an international format (with a country prefix, e.g., +1 for the USA). If phone numbers are stored in a local format (without the prefix), we recommend leaving this option disabled to avoid synchronization issues.
  5. Enable Logs: Enable logging to track plugin activity.

Field Mappings Tab#

The Field Mappings tab is used to map custom WooCommerce fields to corresponding attributes in ExpertSender CDP.

Mapping Options#

  • Product Field Mappings: Map custom product fields (e.g., size, weight) to ECDP product attributes.
  • User Field Mappings: Map WooCommerce user fields (e.g., registration date, custom metadata) to ECDP user attributes.
  • Order Field Mappings: Map custom order fields (e.g., store ID, delivery preferences) to ECDP order attributes.

Example Use Case
If a WooCommerce store stores custom user information (like „user tier”), it can be mapped to a custom ECDP user field.

This tab allows mapping of WooCommerce forms (e.g., registration, checkout) to consents in ExpertSender CDP.

  1. Click Add to create a new mapping.
  2. ECDP Consent: Select the consent created in ExpertSender CDP.
    • Default: „Email Consent” for email subscriptions, „SMS Consent” for SMS marketing.
    • To create custom consents: Go to Settings -> Consents in ExpertSender and note the ID of the consent.
  3. Location: Choose where the consent checkbox should appear:
    • Examples: Registration page, checkout page.
  4. Consent Text: Enter the text to display next to the checkbox.

Form Settings with Consents Tab#

This tab customizes the behavior of forms where marketing consents are collected.

Form Configuration Options#

  1. Text Displayed Before Consents: Add a custom heading above checkboxes (e.g., „Marketing Consents”).
    • Optional: This field can be left blank if you prefer not to display any text above the consents.
  2. Form Mode: Choose between:
    • Single Opt-In: Immediately accepts the consent upon submission.
    • Double Opt-In: Sends a confirmation email or SMS to verify consent.
  3. Confirmation Message ID in Double Opt-In Mode: If Double Opt-In is selected, provide the message ID configured in ExpertSender CDP.

Example Use Case#

  • With Text: If you want to group consents under a heading like „Marketing Consents,” add the desired text.
  • Without Text: Leave the field empty to display only the checkboxes without any additional text.

Forms Supported

  • Registration form.
  • Profile edit form.
  • Checkout form.

Order Status Mapping Tab#

Purpose#

Map WooCommerce order statuses to statuses in ExpertSender CDP.

Default Configuration#

  • Placed: Mapped to standard order statuses like „Pending” or „Processing.”
  • Paid: Mapped to „Completed.”
  • Cancelled: Mapped to „Cancelled.”

These mappings fit most stores but can be modified if custom statuses are used.

Customization#

  1. Add custom WooCommerce statuses if necessary.
  2. Map them to corresponding ECDP statuses.

Order Synchronization Tab#

This feature is used to sync historical orders with ExpertSender CDP. It is primarily used at the start of cooperation to ensure all previous data is included.

Steps to Synchronize Orders#

  1. Select the date range for synchronization using the From and To fields.
  2. Click Synchronize.
  3. View synchronization results, including:
    • Total orders synchronized.
    • Any errors or issues.