AeroCheckout Support

If you're using AeroCheckout, you may notice that source tracking isn't working for new orders. To fix it, we have a temporary solution you can use.

Firstly, install a plugin like Functionality so you can add custom code (or you can add the custom code however you like, eg. through your theme or another plugin). Then add the following code:

add_action('woocommerce_review_order_before_submit', function() {
    do_action('woocommerce_after_order_notes');
});

Next, go to your checkout's setting in AeroCheckout. Under settings, add the following code to the embed script setting for the footer:

<script>
setTimeout(function() {
	if (sbjs.get) {
        	$('input[name="metorik_source_type"]').val(sbjs.get.current.typ);
        	$('input[name="metorik_source_url"]').val(sbjs.get.current_add.rf);
        	$('input[name="metorik_source_mtke"]').val(sbjs.get.current.mtke);
        	$('input[name="metorik_source_utm_campaign"]').val(sbjs.get.current.cmp);
        	$('input[name="metorik_source_utm_source"]').val(sbjs.get.current.src);
        	$('input[name="metorik_source_utm_medium"]').val(sbjs.get.current.mdm);
        	$('input[name="metorik_source_utm_content"]').val(sbjs.get.current.cnt);
        	$('input[name="metorik_source_utm_id"]').val(sbjs.get.current.id);
       		$('input[name="metorik_source_utm_term"]').val(sbjs.get.current.trm);
		$('input[name="metorik_source_session_entry"]').val(sbjs.get.current_add.ep);
		$('input[name="metorik_source_session_start_time"]').val(sbjs.get.current_add.fd);
		$('input[name="metorik_source_session_pages"]').val(sbjs.get.session.pgs);
		$('input[name="metorik_source_session_count"]').val(sbjs.get.udata.vst);
        }
}, 5000);
</script>

This is only a temporary solution until we make some changes on our end, but should make every compatible in the meantime.

If you are still finding it doesn't work, please let us know and we can help.

Still need help? Contact Us Contact Us