How to install the Server-Side Hybrid Universal Integration Script in SumoShop

Follow the steps below to set up a SumoShop integration


Part 1: Request an Integration

Part 2: Install the Server-Side Hybrid Universal Integration Script in SumoShop

Part 3: Install the setEmail Script


Part 1: Request an integration

  1. Compose a new email to kontakt@sumoshop.dk and copy-paste the following email:
    Hi SumoShop,
    I would like to request a Server-Side Hybrid Universal Integration for ProfitMetrics. Please create an API Username and Password for MY STORE and enable the sending of all user emails.
  2. After SumoShop replies, compose a new email to support@profitmetrics.io and copy-paste the following email

    Hi ProfitMetrics, please share the following API credentials for SumoShop with your Dev team.
    User: MY USERNAME
    Password: MY PASSWORD

Part 2: Install the Server-Side Hybrid Universal Integration Script in SumoShop

  1. Copy this snippet and remember to update the Public ID
    <!-- ProfitMetrics snippet START-->
    <script>
    window.profitMetrics = {
    pid: 'PUBLIC_ID', // The ProfitMetrics website ID
    }
    </script>
    <script src="https://cdn1.profitmetrics.io/PUBLIC_ID/bundle.js"
    defer></script>
    <!-- ProfitMetrics snippet END-->
  2. Click "Inklusinoer"Create and Configure Inclusions for ProfitMetrics Integration - Step 3
  3. Click "Opret"
    Create and Configure Inclusions for ProfitMetrics Integration - Step 4
  4. Type "PM - Script" in the Name field
    Create and Configure Inclusions for ProfitMetrics Integration - Step 7 (1)
  5. Click "Aktiv"
    Create and Configure Inclusions for ProfitMetrics Integration - Step 10
  6. Paste the script in "HTML" field
    Create and Configure Inclusions for ProfitMetrics Integration - Step 11
  7. Click "Opret ny(t)"
    Create and Configure Inclusions for ProfitMetrics Integration - Step 13

Part 3: Install the setEmail Script

  1. Copy this snippet
    <!-- Start ProfitMetrics - setEmail -->
    <script>
        function _pm_tryemailorderconfirmation() {
            if (null != window.profitMetrics && null != window.profitMetrics.setEmail && typeof window.profitMetrics.setEmail === 'function') {
                window.profitMetrics.setEmail('#ordreemail');
            } else {
                setTimeout(_pm_tryemailorderconfirmation, 500);
            }
        }
        _pm_tryemailorderconfirmation();
    </script>
    <!-- End ProfitMetrics - setEmail -->
  2. Click "Inklusinoer"Create and Configure Inclusions for ProfitMetrics Integration - Step 3
  3. Click "Opret"
    Create and Configure Inclusions for ProfitMetrics Integration - Step 4
  4. Type "PM - setEmail" in the Name
    Create and Configure Inclusions for ProfitMetrics Integration - Step 28
  5. Click "Active"
    Edit Inclusion Activation and HTML Inclusion Guide - Step 6
  6. Select "Ordre oprettet" in the Plcarering field
    Edit Inclusion Activation and HTML Inclusion Guide - Step 8
  7. Paste the Script in the "HTML" field
    Edit Inclusion Activation and HTML Inclusion Guide - Step 10
  8. Click "Opret ny(t)"
    Create and Configure Inclusions for ProfitMetrics Integration - Step 31