Advertiser Integration Guide
Direct Offer Conversion Tracking (OmniSDK)
10min
overview this guide walks you through setting up conversion tracking using momentscience omnisdk by following these steps, you will be able to track user interactions and conversions effectively prerequisites before you begin, ensure you have your momentscience partner id (obtain from your account manager) your landing page urls your conversion page urls integration steps step 1 add the momentscience omnisdk script the omnisdk script must be included on all landing pages and conversion pages open the html \<head> section of your website insert the following script // 📌 replace your partner id with your actual partner id \<script src="https //plugins pubtailer com/omnisdk js?accountid=your partner id">\</script> ✅ this ensures that the sdk is available for tracking user events step 2 capture click ids on landing pages this step ensures that any click identifier (adpx click id) from the url query string is captured and stored in a cookie for later use open your landing page’s html \<body> section insert the following script //📌 what this does // extracts adpx click id from the url query parameters // stores the value in a cookie for later retrieval on the conversion page \<script> handleadpxclickid(); \</script> ✅ this ensures proper tracking of user interactions from the initial click step 3 implement conversion tracking on key event pages on conversion pages (e g , checkout confirmation, signup success), insert the following script to track successful events open your conversion page’s html \<body> section insert the following script \<script> (async () => { const eventname = 'purchase'; // replace with actual event name const sale amount = 0; // replace with actual sale amount if applicable // retrieve stored click ids const mosciclickid = getcookie('mosci click id'); const adpxclickid = getcookie('adpx click id'); // send conversion data to momentscience await trackmoscievent(mosciclickid, eventname, sale amount) then(() => console log('momentscience tracking successful')) catch(error => console error('momentscience tracking failed ', error)); // send conversion data to adpx tracking await trackevent(adpxclickid, sale amount) then(() => console log('adpx tracking successful')) catch(error => console error('adpx tracking failed ', error)); })(); \</script> customization options event name change 'purchase' to reflect the event (e g , 'signup' , 'lead' ) sale amount set the value of the conversion (e g , 5 00 for a $5 00 transaction) 📌 how this works retrieves stored click ids from the cookie sends the event details to momentscience and adpx for tracking ✅ this ensures conversions are attributed correctly final checklist step 1 the omnisdk script is included on all pages step 2 click tracking is implemented on landing pages step 3 conversion tracking is firing correctly on event pages step 4 event names and values are set correctly conclusion by completing these steps, you have successfully integrated momentscience conversion tracking into your website this setup enables accurate conversion tracking while maintaining a lightweight and scalable implementation 📢 if you're running into any issues while going through the integration process, feel free to contact us at help\@m omentscience com