Follow the steps below to insert the ProfitMetrics script in Dandomain Classic
Part 1: Install the ProfitMetrics Script
Part 2: Install the setEmail Script on Bestil step 4 (Ordrebekræftelse)
NOTE: If the screens here don't match what you see, confirm whether you are on Dandomain Classic or Dandomain, as the instructions are different. For Dandomain, please follow the instructions in ProfitMetrics Integrations
Part 1: Install the ProfitMetrics Scipt
- Copy this Snippet and remember to replace PUBLIC_ID with the Public ID of your website in ProfitMetrics
<!-- Start ProfitMetrics - (v1) -->
<script>
window.profitMetrics = {
pid: 'PUBLIC_ID',
}
</script>
<script src="https://cdn1.profitmetrics.io/PUBLIC_ID/bundle.js" defer></script>
<!-- End ProfitMetrics - (v1) --> - Click "Indstillinger"
- Click "Site"
- Click the "Edit/Pencil" icon for the site you want to edit.
- Insert the script at the bottom of "Kodefelter (head section)"
- Click "Gem" to save the change
Part 2: Install the setEmail Script on Bestil step 4 (Ordrebekræftelse)
- Copy this snippet
<!-- Start ProfitMetrics - setEmail - (v1) -->
<script>
function _pm_tryemailorderconfirmation() {
if (null != window.profitMetrics && null != window.profitMetrics.setEmail && typeof window.profitMetrics.setEmail === 'function') {
window.profitMetrics.setEmail('[[CUSTOMEREMAIL]]');
console.log('[[CUSTOMEREMAIL]]');
} else {
setTimeout(_pm_tryemailorderconfirmation, 500);
}
}
_pm_tryemailorderconfirmation();
</script>
<!-- End ProfitMetrics - setEmail - (v1) --> - Click "Design"
- Click "Tekster/Knapper"
- Click "Bestil step 4 (Ordrebekræftelse)
- Paste the snippet at the bottom of "Kodefelt"
- Click "Gem"