• Hello,

    I enabled the frontend settings but in the frontend there isn’t any output.

    Looking for the reason why I found out that there is a javascript syntax error.

    The debug info is the following:

    SyntaxError: syntax errorhttps://xyz.com line 263

    The line 263 in the source code is:

    google.setOnLoadCallback(ga_dash_callback);</p>

    The code around the line is:

    <p><script type="text/javascript" src="https://www.google.com/jsapi"></script><br />
    				<script type="text/javascript">
    				  google.setOnLoadCallback(ga_dash_callback);</p>
    <p>				  function ga_dash_callback(){</p>
    <p>						if(typeof ga_dash_drawstats == "function"){
    							ga_dash_drawstats();
    						}
    						if(typeof ga_dash_drawsd == "function"){
    							ga_dash_drawsd();
    						}
    				}
    				google.load("visualization", "1", {packages:["corechart"]});
    				function ga_dash_drawstats() {
    				var data = google.visualization.arrayToDataTable([

    I suppose, is could have something to do with the </p> tag, which seems to be inside the javascript. But I don’t know if this could be normal. I am not familiar to javascript.

    Could this be a plugin conflict?

    Any way to solve this?

    https://www.ads-software.com/plugins/google-analytics-dashboard-for-wp/

Viewing 1 replies (of 1 total)
  • The <p> tag is the issue, you’ll have to see what plugin those that.

    A good start point is to disable plugins one by one and see who’s generating the issue.

    Continue to temporary change your theme to a default one to make sure is not a theme issue.

    Before switching the theme also have a look at functions.php file for something that may break the script by inserting <p> tags in your page.

Viewing 1 replies (of 1 total)
  • The topic ‘Javascript syntax error or frontpage’ is closed to new replies.