In this Article
Before your Begin
- Sign up for a Bing Ads account here.
- Log in to your Maropost Commerce control panel with an admin account. Custom scripts require admin permissions to create.
Create a UET Tag and add it to your Control Panel
Please Note: To complete these steps you need to be in Expert Mode. In the menu click Tools and then Switch to Expert Mode.
-
Follow the steps provided by Microsoft to create your UET tag. In the last step, click Copy in the View UET tag tracking code box.
-
In your Maropost Commerce control panel navigate to Settings & tools > All settings & tools.
-
FInd and click on Custom scripts.
-
Click the Add new button…
-
Name your script Bing Tracking.
-
On the Page header tab, paste the code you copied in step 5.
-
Click the Save button.
Create Conversion Event
-
Log in to your Microsoft advertising account.
-
In the menu at the top of the page navigate to Tools > Conversion Goals..
-
Click on Create Conversion Goal.
-
Navigate to Website > Next.
-
Click on Purchase.
-
Click on Event and enter the below details:
- Enter a name for the event.
- Change revenue to Conversion action value may vary (for example, by purchase price)
- Change the currency to your required currency
Click Next.
-
Click on Yes, the UET tag was already installed on my website pages.
-
Click on Save and Next.
-
Click on Track event on page load.
-
Click on Next and then click Done.
Add Bing Scripts to Maropost Commerce
-
In maropost go to settings & tools > all settings & tools > custom scripts.
-
Select “Bing Tracking” script you made earlier.
-
Select “Purchase Confirmation (Thank You Page)”.
-
Copy and paste the below code into this window:
Script including shipping in revenue total:
[%SHOW_ORDER id:'[@ORDER_ID@]'%]
[%PARAM *header%]
<script>
window.uetq = window.uetq || [];
window.uetq.push('event', 'purchase', {"revenue_value":[@GRAND_TOTAL@],"currency":"AUD"});
</script>
[%END PARAM%]
[%END SHOW_ORDER%]
Script not including shipping in revenue total:
[%SHOW_ORDER id:'[@ORDER_ID@]'%]
[%PARAM *header%]
<script>
window.uetq = window.uetq || [];
window.uetq.push('event', 'purchase', {"revenue_value":[@GRAND_TOTAL@] - [@SHIPPING_PRICE@],"currency":"AUD"});
</script>
[%END PARAM%]
[%END SHOW_ORDER%]
-
Click the Save button.