Title: Site Error after Google Analytics Code
Last modified: August 21, 2016

---

# Site Error after Google Analytics Code

 *  [etaleem](https://wordpress.org/support/users/etaleem/)
 * (@etaleem)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/site-error-after-google-analytics-code/)
 * Hi every one
 * Cant login and open the control pannel.
 * My website address
    [http://iwona-wood.personalbrandexperts.com/wp-admin/](http://iwona-wood.personalbrandexperts.com/wp-admin/)
 * I Applied the Google Analytics code from the website and follow these steps
    
   [http://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&id=I0_1384552744667&parent=http%3A%2F%2Fwww.wpbeginner.com&pfname=&rpctoken=0](http://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&id=I0_1384552744667&parent=http%3A%2F%2Fwww.wpbeginner.com&pfname=&rpctoken=0)
   when I applied code in functions.php file as shows in the link, the website of
   admin getting error as shown on the above link.
 * Please note, website is working fine and there is no problem in website, only
   the admin area is not working.
 * Pleas ehelp how to solve this issue. I can access the files physically via File
   manager.
 * Waiting for help
 * arshad

Viewing 10 replies - 16 through 25 (of 25 total)

[←](https://wordpress.org/support/topic/site-error-after-google-analytics-code/?output_format=md)
[1](https://wordpress.org/support/topic/site-error-after-google-analytics-code/?output_format=md)
2

 *  Thread Starter [etaleem](https://wordpress.org/support/users/etaleem/)
 * (@etaleem)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/site-error-after-google-analytics-code/page/2/#post-4324237)
 * Yes I can Login from here and I can see the dashboard as admin.
 * How we can fix that issue error shows in my first post.
 * also can you also suggest from here Can I apply Google Analytics Code. Please
   suggest step by step instruction so I can apply GA code for website. really appreciate
   your support.
 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/site-error-after-google-analytics-code/page/2/#post-4324239)
 * If you cannot insert Google analytics code, better use a plugin like:
    [http://wordpress.org/plugins/googleanalytics/](http://wordpress.org/plugins/googleanalytics/)
 *  Thread Starter [etaleem](https://wordpress.org/support/users/etaleem/)
 * (@etaleem)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/site-error-after-google-analytics-code/page/2/#post-4324251)
 * Thanks Krishna, its working now
 * One last question, I want to add this line in code
 * ga.src = (‘https:’ == document.location.protocol ? ‘[https://ssl&#8217](https://ssl&#8217);:‘
   [http://www&#8217](http://www&#8217);) + ‘.google-analytics.com/ga.js’;
 * this will help to collect AGE, Gender and other metrics from Google Analytics.
 * Please refer URL
    [https://support.google.com/analytics/answer/2444872?hl=en&utm_id=ad](https://support.google.com/analytics/answer/2444872?hl=en&utm_id=ad)
 * In the current tool I cant find option to add this line, Please advise
 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/site-error-after-google-analytics-code/page/2/#post-4324252)
 * That Google tells you to replace a certain line of code with another. So, you
   will have the line to be replaced in the code that you inserted now. Replace 
   that with the above lines and reinsert to the same location.
 *  Thread Starter [etaleem](https://wordpress.org/support/users/etaleem/)
 * (@etaleem)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/site-error-after-google-analytics-code/page/2/#post-4324256)
 * Krishna, Please advise to resolve the first error
 * [http://iwona-wood.personalbrandexperts.com/wp-admin/](http://iwona-wood.personalbrandexperts.com/wp-admin/)
 * I am able to login to WP from the alternate links, Can I resolve the above error
   on that main page. Please advise.
 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/site-error-after-google-analytics-code/page/2/#post-4324261)
 * That URL seems to be a sub-domain and possibly using its own installation of 
   WordPress, right?
 *  Thread Starter [etaleem](https://wordpress.org/support/users/etaleem/)
 * (@etaleem)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/site-error-after-google-analytics-code/page/2/#post-4324295)
 * Yes, It seems like subdomain. I am not sure exactly how the developer deploy 
   that. But whatever we change from that sub domain update the website also.
 * If both are seperate installation of WP, then how it changes in runtime. Please
   suggest.
 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/site-error-after-google-analytics-code/page/2/#post-4324302)
 * Yes, it is a separate WordPress installation running an older version of WordPress.
   
   [http://iwona-wood.personalbrandexperts.com/readme.html](http://iwona-wood.personalbrandexperts.com/readme.html)
 * You may login to your hosting site, deactivate your theme and revert to a default
   WP theme and see if you can login.
 *  [bcnfmh](https://wordpress.org/support/users/bcnfmh/)
 * (@bcnfmh)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/site-error-after-google-analytics-code/page/2/#post-4324399)
 * Hello, I am a newbie for wordpress but learning fast! Having the same problem
   here.
 * I originally added a plugin for google analytics, but it didn’t update it with
   my code, so it’s tracking for the theme owner currently (big fail!)
 * I attempted to modify the php file but I probably added the letters “an” by mistake,
   as when I click on “source code” it shows there:
 * **an**<!DOCTYPE html>
    <html class=”no-js” lang=”en-US”>
 * <!– head –>
    <head>
 * I have no idea where that php file is, i amended it late at night, I keep clicking
   everywhere that says functions.php or similar to find where I saw the google 
   code but I’m going mad, where is it sitting?
 * I cannot log in to wordpress, but i can see the cpanel and go from there.
 * Luckily the website works, it’s just i messed up big time the analytics thing
   🙁
 * Please help!
 *  [bcnfmh](https://wordpress.org/support/users/bcnfmh/)
 * (@bcnfmh)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/site-error-after-google-analytics-code/page/2/#post-4324400)
 * I found it! wp-content/themes/betheme/muffin-options/theme-options.php
 * Silly me 🙁
 * I looked everywhere! Now I need to figure out how to get rid of the original 
   google analytics and add mine.
 * :))

Viewing 10 replies - 16 through 25 (of 25 total)

[←](https://wordpress.org/support/topic/site-error-after-google-analytics-code/?output_format=md)
[1](https://wordpress.org/support/topic/site-error-after-google-analytics-code/?output_format=md)
2

The topic ‘Site Error after Google Analytics Code’ is closed to new replies.

## Tags

 * [Login Issue](https://wordpress.org/support/topic-tag/login-issue/)
 * [site error](https://wordpress.org/support/topic-tag/site-error/)
 * [theme error](https://wordpress.org/support/topic-tag/theme-error/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 25 replies
 * 4 participants
 * Last reply from: [bcnfmh](https://wordpress.org/support/users/bcnfmh/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/site-error-after-google-analytics-code/page/2/#post-4324400)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
