Forum Moderators: DixonJones
I want to track PPC conversions.
I've got a form on my site that posts to the merchant's URL. Normally I can set it to redirect to my thank you page where the PPC conversion code is. However, in this situation the redirect goes to another site (depending on which matches the client's request) and so I've got no tracking.
I'm trying to figure out if there's some way that my thank you page can be notified/accessed/shown in addition to the redirection to the other site when the client clicks submit.
I was thinking that maybe there's some way to make my thank you page do a small pop-under (although that might get blocked) or visit my thank you page before it posts the info and sends the client elsewhere. However, I'm thinking that a redirect would screw up the post info (about 30 fields).
Thanks for any sugestions!
Try a redirect to the other site and track or log those.
I don't know if there's some way to change the current post to post to one of my pages and then somehow "hand off" the data and redirect to the real form post address.
yet one more solution is to use onsubmit event in the form tag.
I'd actually thought about that too but wasn't sure if I could do that. This is the way it is currently:
<form action="https://notmydomain.cxm" method="POST" class="formStyle" onSubmit='return validateForm(this);'>
It already has an onsubmit function there which validates the form fields. The JS is hosted on the network's server, although I assume I could copy it and host it on mine. I thought that since that JS was doing field validation, that it wouldn't be able to also open a window too. Could I add something to the end of the validation code that would make a small tracking window open and then let the form post as normal?
It's probably obvious that I don't know much about JS and server posting, but I'm trying to figure out if there's something I can do fairly easily. It's either that or drop this revenue stream since I can't track conversions :(