How to Track Conversions on Act-On Labs Forms

If you are using Act-On Labs Forms you will need to embed the Oktopost Tracking Code using the methods described in this article. To embed the code using the Landing Page Composer, find the Edit JavaScript section in the Design tab of the Landing Page Composer.

Copy the tracking code from Oktopost and paste it into the aoPostLoadCallback function, as follows:

aoPostLoadCallback = function () {  
	(function(a, b, c, d, e, m) {
		a['OktopostTrackerObject'] = d;
		a[d] = a[d] || function() {
			(a[d].q = a[d].q || []).push(arguments);
		e = b.createElement('script');
		m = b.getElementsByTagName('script')[0];
		e.async = 1;
		e.src = ('https:' === document.location.protocol ? 'https://' : 'http://') + c;
		m.parentNode.insertBefore(e, m);
	})(window, document, '', '_oktrk');

	_oktrk('create', 'OKTOPOST_ACCOUNT_ID');

If you are using Act-On Forms with external pages, you can add the same script to the page along with the Form embed code. 

Once you're done, continue with setting up the conversion types in Oktopost.

Feedback and Knowledge Base