Hi,
I would like to add google conversion tracking to that message that gets displayed when a form is successfully submitted. Can anyone explain how I would go about doing this?
Regards
Grant
Hi Bob,
Thanks for the reply, I have the tracking code from Google, but I need a little more of a detailed explanation as to where to copy it in... where do I find this on submit after box?
Regards
Grant
Hi Grant,
Put the code at the onsubmit box, how do you display a thank you message after submission ?
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Grant,
The OnSubmit boxes are on the Form Code tab. There are two boxes that will open from the blue +- signs. Both will execute when the form is submitted, the 'OnSubmit before' code *only* executes if "Email the results" is set to YES, 'OnSubmit after' code always executes.
Bob
I have added the google tracking code to the onSubmit section and I have configured the google code to display the google site stats image. When I submit the form I know this section of the code is working because I see it on the website source, I do not see the google image so it appears the google tracking code does not work.
Hi ccondo,
What code do you have in the OnSubmit box? Probably the image link is broken somehow??
Bob
<!-- Google Code for Website Assessment Conversion Page -->
<script type="text/javascript">
<!--
var google_conversion_id = 107134046;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "ffffff";
var google_conversion_label = "v9XiCO_BqAEQs7ft_gM";
var google_conversion_value = 0;
if (20.0) {
google_conversion_value = 20.0;
}
//-->
</script>
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/107134046/?value=20.0&label=v9XiCO_BqAEQs7ft_gM&guid=ON&script=0"/>
</div>
</noscript>
I discovered why this was not working - I wasn't coming to the form as a result of clicking on a google ad.
Hi 01,
You are right about the quotes in the first part of the code - my fault for not editing it correctly. I have updated the FAQ code.
I think that the other errors come because you also changed the quotes in the 'noscript' part which were correct.
Bob
Hi 10,
Sorry I'm not a Google Conversion tracking user and I have no idea what that error means or how to fix it :-( Debugging the script in action might help?
Bob
HI, GreyHead!
I will try to debug... But actually I don't know where to look🙂
Maybe users who already have implemented this feature could post a reply with their results🙂
As I had also a problem with google analytics when thanks message appeared I've revised the GA and google webmaster tools validation codes placement. It was placed by hand by all rules in the head section. Then I installed a special plugin from joompla extension catalog which places the GA and google web master tools codes automatically. After that the problem with GA disappeared. So, I think the problem is in code placement. Probably the special option or component should be additionally developed which will work only with google conversion tracking...
Hi 01,
Sorry, I don't see any more obvious errors; at this point you get to do the detailed debugging.
Bob