Welcome to the Instapage Support Center

|

Button click callback

The HTML/CSS and Javascript settings are available under our professional plan or above.

Instapage allows to run javascript code just after anchor or button click. All you have to do is add this code in the Settings - JavaScript header area of your page.

<script type="text/javascript">

window.instapageAnchorClick = function( element ){

    // here is your code to execute
    // element variable holds clicked element

};

</script>

Inside the "instapageAnchorClick" function where you have the text 

    // here is your code to execute
    // element variable holds clicked element


you will need to add in your own code, like for example an event tracking code or a Facebook pixel.

Have more questions? Submit a request
Was this article helpful?
3 out of 6 found this helpful

Need Further Help?

Tell us what you need and we will be happy to assist you.

Our team of expert support staff and our community can answer your questions. Submit a ticket, reach out on live chat or call us now!