Forums

Newbie confused about Submit After Box

theWebalyst 24 May, 2012
Hi,

I'm new to Joomla and ChronoForms (but not HTML, CMS, analytics, forms etc), so bear in mind anything you say about Joomla may be confusing unless spelled out!

I am setting up Google AdWords conversion tracking in a Joomla/ChronoForms system that I have inherited. So it is working, but I didn't set it up.

I successfully added Analytics tracking of form submissions by insterting an "onclick" action in the form code but don't understand where to find an "Submit After Box" which is where I need to insert AdWords tracking code.

Maybe my form is not set up in a way that would have a "Submit After Box" - in which case can I do conversion tracking?

Any help appreciated, preferably spelled out!

Thanks

Mark
GreyHead 25 May, 2012
Hi Mark,

I assume that you are using ChronoForms v4. I know nothing about AdWords - what kind of Conversion tracking code do you need to add and where?

I assume that it needs to be displayed on the 'Thank You' page somehow? Is it JavaScript or PHP?

Bob
theWebalyst 25 May, 2012
Hi Bob,

Yes ChronoForms v4 RC3.3

The tracking code is JavaScript for AdWords conversions, similar to this:
<!-- Google Code for Fast Response Form Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxxxxxxxxxx;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "xxxxxxxxxxxxx";
var google_conversion_value = £1;
/* ]]> */
</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/xxxxxxxxxxxxx/?value=xxxxx&label=xxxxxxxxxx&guid=ON&script=0"/>
</div>
</noscript>


Unable to find the fabled "Submit After Box" I placed this code underneath the text for the "Show Thanks Message" in the form. I ran Test Form and the code shows up (verified with "view source"), but don't yet know if it works.

My test hasn't shown up in AdWords, but I'm not sure if that is because I've not waited long enough yet, or for some other reason.

Can you confirm this should work?

Can you tell me what this "Submit After Box" is and where to find it?

Thanks

Mark
GreyHead 25 May, 2012
Hi Mark,

The Submit After box ( or the 'On Submit After Email' to give it it's full name ) was one of only two boxes in ChronoForms v3 where you could add PHP to be executed after the form was submitted. The other was the On Submit Before box.

ChronoForms v4 has a much more modular structure and you can add equivalent boxes - now called Custom Code actions - anywhere that you need them in the sequence of actions in the On Submit event. For more on actions and events please see my Basics 2 tutorial.

Putting the code in the Show Thanks message box should work OK. Check the Page Source in your browser web developer tools to make sure that there are no errors or omissions showing.

The Show Thanks message won't work if you need to include form variables in the JavaScript as that particular action won't allow you to run PHP to insert the values. If this is a problem then we can show you how to use a Custom Code action to resolve it.

Bob
This topic is locked and no more replies can be posted.