I’m using a click through template and when some clicks through my landing page, I would like that to register as a conversion in Facebook and Google Analytics. Both FB and Google provide javascript code that they ask you to place on a “Thank you” page, but in this case there is no thank you page. People just click on a button and are taken to an external site.
Is there a way I can get this Javascript code to execute when someone clicks on the button?