I have a custom-built React form on my Unbounce page, and am trying to fire an Unbounce conversion when the form is completed.
Is there any undocumented function or hack I can use to make this happen?
Here’s what I’ve tried so far:
Use external tracking: This won’t work, because we’re on the actual Unbounce page. I could load up a hidden iFrame with the conversion code on it, but this seems hacky/unreliable, and will probably break down depending on cookie settings.
Use some JS to add an iFrame to the page that loads up a page, as per this gist. This gives me a console error of: “Cannot read property ‘afterFormSubmit’ of undefined” (to be fair, this was an ancient suggestion).
Finally, I was able to trigger a conversion by following a button with the destination “clkg/” in front of the URL. This seems like it could be a springboard - if I can simulate this in JS, we could get somewhere…