Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

RSForm!Pro - Google Adwords

Google Adwords

In this article we will describe how to implement the tracking code from Google. Conversion tracking involves placing a cookie on a user's computer when he/she clicks on an ad. Then, if the user clicks on your ad and reaches one of your conversion pages, the user's browser sends the cookie to a Google server, and a small conversion tracking image is displayed on your site. When such a match is made, Google records a successful conversion for you. This information is presented within the Campaign Summary section of the "Campaign Management" tab in your AdWords account.

This method applies for RSForm! Pro revision 29 or for previous revisions. In order to achieve this please edit the /components/com_rsform/languages/default.php file (around line 453):

Instead of:

DEFINE('_RSFORM_FRONTEND_THANKYOU_BUTTON','
<input type="button" name="continue" value="Continue" onclick="%s"/>');

use:

if(isset($_GET['formId']) && $_GET['formId']==1)
DEFINE('_RSFORM_FRONTEND_THANKYOU_BUTTON','
<input type="button" name="continue" value="Continue" onclick="%s"/>

<script type="text/javascript">...your google code here...</script>
');
else
DEFINE('_RSFORM_FRONTEND_THANKYOU_BUTTON','
<input type="button" name="continue" value="Continue" onclick="%s"/>');

The following method will apply for RSForm! Pro revision 30 or later revisions. You can use the following script in the "Scripts called after form process" section in order to implement the tracking code.

if(isset($_GET['formId']) && $_GET['formId']==1)
$thankYouMessage = $thankYouMessage.'<script type="text/javascript">...your google code here...</script>';

Note:

In both cases, instead of "1" you should use the ID of the form you wish to enable the tracking code.

Feedback