Follow the steps blow to integrate ProfitMeitrcs with Shoporama
Part 2: Complete integration in ProfitMetircs
Part 3: Install Serverside Hybrid Universal Integration Script
Part 4: Install setEmail Script
Part 1: Create an API key
-
Click "Indstillinger"
-
Click "API"
-
Click "Tilføj adgang"
- Type "ProfitMetrics" and select "Kun læse"
- Click "GEM"
- Copy the Token
Part 2: Complete integration in ProfitMetrics
- Go to https://my.profitmetrics.io/customer/integrations_shoporama_hybrid.php and follow the instructions on the screen
Part 3: Install Serverside Hybrid Universal Integration Script
-
Click "Indstillinger"
- Click "HTML-felter"
- Click "TILFØJ NYT HTML-FELT"
- Name the field "PM - Script" and click "OK"
- Paste the Script and select "Tilføj automatisk til <head>"
- Click "GEM"
Part 4: Install setEmail script
- Copy this script
<!-- Start ProfitMetrics - setEmail -->
<script>
function _pm_tryemailorderconfirmation() {
if (null != window.profitMetrics && null != window.profitMetrics.setEmail && typeof window.profitMetrics.setEmail === 'function') {
window.profitMetrics.setEmail('<{$order->getEmail()|escape}>');
} else {
setTimeout(_pm_tryemailorderconfirmation, 500);
}
}
_pm_tryemailorderconfirmation();
</script>
<!-- End ProfitMetrics - setEmail --> -
Click "Indstillinger"
-
Click "Tema-editor"
-
Click "/thanks.html"
- Scroll to the bottom and paste the code before the final <{/script}> tag
- Click "GEM"
That's it.