Code error

virtualtrades

New Member
trying to add google analytics code and get this errors:

Fatal error: Database error in "/home/virtualt/public_html/sources/admin/settings.php(793) : eval()'d code" on line 6

Unknown column 'site_ga' in 'field list' in /home/virtualt/public_html/sources/sql/mysql.php on line 89


help please ;l
 

cajkan

Active Member
You can disable your GA plugin, and add inside head tags for more accurate statistics.
If you are using gateway page, dont forget to add there too. And i think GA needs little time to start counting results, or you can go to REAL TIME statistics and you can preview.
 

virtualtrades

New Member
You can disable your GA plugin, and add inside head tags for more accurate statistics.
If you are using gateway page, dont forget to add there too. And i think GA needs little time to start counting results, or you can go to REAL TIME statistics and you can preview.
Ok I currently have it placed at the top of the wrapper.html in the child forum:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-43849735-2', 'virtualtoplist.net');
ga('send', 'pageview');

</script>
<title>{$list_name} - {$header}</title>
<base href="{$list_url}/" />
<meta http-equiv="Content-Type" content="text/html;charset={$lng->charset}" />
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
{$header_js_files}

<link rel="stylesheet" type="text/css" media="screen" href="skins/{$skin_name}/screen.css" />
{$css_styles}
<link rel="stylesheet" type="text/css" media="screen" href="skins/{$skin_name}/user.css" />


Hopefully thats right..

You said also about making sure you edit gateway page with the GA code, how do I edit the gateway?

thanks
 

cajkan

Active Member
You GA code looks fine, maybe you need to wait a little bit for google to calculate all the data.

About the gateway, go to your skins folder and find gateway.html and add inside your GA code. Make sure your edited file you add into child folder.
 

virtualtrades

New Member
You GA code looks fine, maybe you need to wait a little bit for google to calculate all the data.

About the gateway, go to your skins folder and find gateway.html and add inside your GA code. Make sure your edited file you add into child folder.
Thanks ill do this.
I entered the GA code at the bottom of wrapper.html yesterday, without tags and no data was showing up.. is this because it was outside tags?
Thanks for the help buddy, appreciated.
 

Basti

Administrator
Staff member
trying to add google analytics code and get this errors:

Fatal error: Database error in "/home/virtualt/public_html/sources/admin/settings.php(793) : eval()'d code" on line 6

Unknown column 'site_ga' in 'field list' in /home/virtualt/public_html/sources/sql/mysql.php on line 89

help please ;l
Looks like you manually uploaded the plugin to ftp. In that case you need to click the insall icon at the plugin page.
 
Top