NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Solved Add Google Analyze
Started by yamagami2211

yamagami2211

yamagami2211

Member
Joined
10 May 2018
Last Seen
18 Feb 2022
Topics
3
Posts
5

I use Google Translate.

How can I add Google Analyze?

Even if I add code to "header.tpl", I get the following error.


[2019-04-29, 12:33:40] /core/includes/smarty/sysplugins/smarty_internal_templatecompilerbase.php(35): Uncaught --> Smarty Compiler: Syntax error in template "file://custom/templates/DefaultRevamp/header.tpl" on line 35 "function gtag(){dataLayer.push(arguments);}" - Unexpected ".", expected one of: "}" <-- 

thrown


is the path of the web space.

Version 2.0.0-pr6


I'm also asking about SMTP settings.
If there are people who use "Sendgrid" to deliver mail, please answer.
>>Topic<<

<p>Japanese. I always use Google Translate.</p>
yamagami2211 · over 5 years ago · Last edited: over 5 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
23 Dec 2024
Topics
41
Posts
1076

To fix the Analytics error, add the following around your :

{literal}
  Script goes here
{/literal}

 

x1
Samerton · over 5 years ago · Last edited: over 5 years ago