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
- 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. - 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
- 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--> - Click "Inklusinoer"
- Click "Opret"
- Type "PM - Script" in the Name field
- Click "Aktiv" and ensure that "Placering" is set to "Sidehoved"
- Paste the script in "HTML" field
- Click "Opret ny(t)"
Part 3: Install the setEmail Script
- 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 --> - Click "Inklusinoer"
- Click "Opret"
- Type "PM - setEmail" in the Name
- Click "Active"
- Select "Ordre oprettet" in the Placering field
- Paste the Script in the "HTML" field
- Click "Opret ny(t)"