Add Google Conversion Tracking code to Joomla thank you page

Need help with the Administration of your Joomla! 2.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
newbie1234
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Dec 06, 2014 6:43 pm

Add Google Conversion Tracking code to Joomla thank you page

Post by newbie1234 » Sat Dec 06, 2014 6:51 pm

I am fairly new to Joomla and coding, but I have a Joomla website and I am having difficulty putting the Google Analytics conversion tracking code on to my thank you page. I am trying to track the visitors that make a purchase and the code is supposed to be entered on the thank you page.

To set up Google conversion, I am told to do the following: "Between the body tags (<body></body>) of the page, paste the code snippet you generated in AdWords."

I am currently using Event Booking component from Joomdonation for visitors to register and pay. I know which one the thank you page is, but when I open it, I can't find body tags anywhere (code included below). Does anyone know how to implement Google conversion code to Joomla thank you page? Below is the code in my thank you page:

Code: Select all

[code][b][b]<?php
/**
 * @version		1.4.4
 * @package		Joomla
 * @subpackage	Event Booking
 * @author  Tuan Pham Ngoc
 * @copyright	Copyright (C) 2010 Ossolution Team
 * @license		GNU/GPL, see LICENSE.php
 */
// no direct access
defined( '_JEXEC' ) or die ;
?>
<table width="100%">
	<tr>
		<td class="componentheading">
			<?php echo JText::_('EB_REGISTRATION_COMPLETE'); ?>
		</td>
	</tr>
	<tr>
		<td>
			<p class="info"><?php echo $this->message; ?></p>
		</td>
	</tr>
</table>
[/b][/b]
[/code]

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Add Google Conversion Tracking code to Joomla thank you

Post by itoctopus » Sat Dec 06, 2014 9:31 pm

The body tag is already encapsulating your Thank You page. Just add the JavaScript code before <table width="100%"> and you should be all set.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

newbie1234
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Dec 06, 2014 6:43 pm

Re: Add Google Conversion Tracking code to Joomla thank you

Post by newbie1234 » Fri Dec 12, 2014 10:26 pm

This worked perfectly! Thank you so much!

You seem to be quite an expert in Joomla so I will ask another unrelated question. I have Joomla 2.5 and I don't know how to set it up so that the URL or my articles pages will be the alias of that article. Right now, the URL is

https://www.uni-prep.com/component/cont ... icle?id=14

but I would like it to be the alias instead of the /article?id=14 portion. How can I do this? Thank you in advance.


Locked

Return to “Administration Joomla! 2.5”