Javascript syntax error or frontpage
-
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/
- The topic ‘Javascript syntax error or frontpage’ is closed to new replies.