Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template ".\templates\common\master.tpl" on line 43 "(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){" - Unexpected "[", expected one of: "}" , " " , ATTR' in D:\xampp\htdocs\smarty\sysplugins\smarty_internal_templatecompilerbase.php:667 Stack trace: #0 D:\xampp\htdocs\smarty\sysplugins\smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 D:\xampp\htdocs\smarty\sysplugins\smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(64, '[') #2 D:\xampp\htdocs\smarty\sysplugins\smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(64, '[') #3 D:\xampp\htdocs\smarty\sysplugins\smarty_internal_templatecompilerbase.php(206): Smarty_Internal_SmartyTemplateCompiler->doCompile('??<!DOCTYPE HTM...') #4 D:\xampp\htdocs\smarty\sysplugins\smarty_inter inD:\xampp\htdocs\smarty\sysplugins\smarty_internal_templatecompilerbase.php on line 667
Solution
<script>
{literal}
(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-40401063-1', 'bbgaga.com');
ga('send', 'pageview');
{/literal}
</script>
沒有留言:
張貼留言