Print Article - Without replies & sidebar
Add this article to your Favourites.
Adding Google Analytics Tracking
- Created: 10/20/2011
- Last Updated: 10/20/2011
- Author: Lawrence
If you are one of the many Google Analytics users, you might want to add your tracking code into your Cueburst installation, luckily, it's very easy to do.
If you don't have your code at hand, go to Google Analytics, and login.
- Click the settings/cog icon, on the righthand side.
- Then, Tracking Code.
- Scroll down, and copy your Javascript Tracking Code.

Screenshot of Google Analytics
Insert into Cueburst
- Open your header.tpl file, located in /your_cueburst_directory/themes/default/.
- Paste the code after <![endif]-->
Like so,
Save, and upload if necessary... and your Cueburst installation is now being tracked by Google!
If you don't have your code at hand, go to Google Analytics, and login.
- Click the settings/cog icon, on the righthand side.
- Then, Tracking Code.
- Scroll down, and copy your Javascript Tracking Code.

Screenshot of Google Analytics
Insert into Cueburst
- Open your header.tpl file, located in /your_cueburst_directory/themes/default/.
- Paste the code after <![endif]-->
Like so,
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
{REDIRECT_META}
<title>{SITENAME} - Adding Google Analytics Tracking</title>
<link rel="stylesheet" type="text/css" href="{THEME_FOLDER}/global.css" />
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="{THEME_FOLDER}/ie7.css" />
<![endif]-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'YOUR_TRACKING_CODE']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body onload="Rate('2');">
<center>
<div class="container">
<div class="info_bar"><span style="float: right;">Welcome, {USERNAME} {TOPBAR_ACCOUNT}</span>{TELEPHONE}</div>
<div id="header">
<!-- Header -->
<a href="{URL}/index.php"><img border="0" src="{IMG_PATH}/logo.png" style="float: left;" /></a>
<ul class="navigation">
<li id="active"><a href="index.php">View FAQs</a></li>
<li><a href="tickets.php">View Tickets</a></li>
<li><a href="open.php">Open Ticket</a></li>
<li><a href="account.php">{MY_ACCOUNT_NAV_LINK}</a></li>
{STAFF_AREA_NAV_LINK}
</ul>
<div class="hr" style="clear: both;"></div>
<br />
</div>
{NOTICE_SETTING}Save, and upload if necessary... and your Cueburst installation is now being tracked by Google!