Title: Javascript syntax error or frontpage
Last modified: August 22, 2016

---

# Javascript syntax error or frontpage

 *  [Porfavor](https://wordpress.org/support/users/porfavor/)
 * (@porfavor)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/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 errorhttp://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://wordpress.org/plugins/google-analytics-dashboard-for-wp/](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/)

Viewing 1 replies (of 1 total)

 *  [Alin Marcu](https://wordpress.org/support/users/deconf/)
 * (@deconf)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/javascript-syntax-error-or-frontpage/#post-5407015)
 * 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.

 * ![](https://ps.w.org/google-analytics-dashboard-for-wp/assets/icon.svg?rev=2243225)
 * [ExactMetrics - Google Analytics Dashboard for WordPress (Website Stats Plugin)](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alin Marcu](https://wordpress.org/support/users/deconf/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/javascript-syntax-error-or-frontpage/#post-5407015)
 * Status: not resolved