Adding a GET parameter to identify success URL

hlarocque 29 Aug, 2013
Hi !

Joomla 2.5.4
Chronoform: 4

I use a simple request form in a lightbox and for Google Goal purpose, I would need to differenciate the success to the fail post by modifying the IFrame URL (adding a GET parameter).
Actually, when the form is posted, I save datas, send email and present a Thank you message but for all this, the IFrame URL does not change so Google can't "see" if the form has been posted and if the post is successfull or not.
What would be the best way to implement such solution ?

Thank you!
GreyHead 31 Aug, 2013
Hi hlaroque,

How are you setting the IFrame URL now? You could possibly change it using JavaScript somehow.

Bob
hlarocque 03 Sep, 2013
I use the modal window of joomla:
<a class="modal" href="index.php?option=com_chronoforms&chronoform=demande-de-service&tmpl=component&lang=fr-FR" rel="{handler: 'iframe', size: {x: 450, y: 650}, iframeOptions: {scrolling: 'no'}}">(...)

The URL does not change during the post.
GreyHead 08 Sep, 2013
Hi hlarocque,

I'm not sure how this would work :-( As I said before you can probably do it with JavaScript somehow.

Bob
hlarocque 09 Sep, 2013
OK ! That would be useful to be able to track this kind of thing (success / error) with Google. Maybe in a future release. :-)
On last thing, I'm not sure how to use the javascript insertion block in this case. Can you give me an example?
This topic is locked and no more replies can be posted.