Here are the steps to help you add a form to your WIX site.
- Add an HTML block to your page where you want the form to be.
- View the page live and find the HTML ID for the block by right clicking on it and 'inspecting'. It should look like this
- Copy the HTML ID and place it into the following script along with your Form ID that you want to show up on this page:
<script type='text'/javascript'>
var i = setInterval(function () {
if (typeof AD !== 'undefined') {
clearInterval(i);
AD.jQuery(function () {
AD.jQuery("#HTML_ID").html("<div class='activedemand-replace' data-type='Form' data-id='AD_FORM_ID'></div>");
AD.jQuery("#HTML_ID").css('height', 'auto');
AD.ready(function () {
AD.dynamic_replace();
});
});
}
}, 300};
</script>
- Go to Settings -> Advanced -> Custom Code
- Add/edit the Head Custom Code and place your tracking script as well as the code above into the code snippet section
<script src="https://data.staticfiles.io/accounts/XXXXXXXXXXXXXXXXX/load.js" type="text/javascript" async defer></script>
<script type='text'/javascript'>
var i = setInterval(function () {
if (typeof AD !== 'undefined') {
clearInterval(i);
AD.jQuery(function () {
AD.jQuery("#HTML_ID").html("<div class='activedemand-replace' data-type='Form' data-id='AD_FORM_ID'></div>");
AD.jQuery("#HTML_ID").css('height', 'auto');
AD.ready(function () {
AD.dynamic_replace();
});
});
}
}, 300};
</script>
- Add the tracking script to the head of all pages
- Add your custom code for the form to the head of ONLY the pages with the form on it.
Comments
Please sign in to leave a comment.