Title: 403 error when installing Google Analytics code
Last modified: October 2, 2020

---

# 403 error when installing Google Analytics code

 *  Resolved [katforsyth](https://wordpress.org/support/users/katforsyth/)
 * (@katforsyth)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/403-error-when-installing-google-analytics-code/)
 * Trying to install the Google Analytics tracking code on my second website, and
   a 403 error from Wordfence keeps coming up (A potentially unsafe operation has
   been detected in your request to this site).
 * Plot twist: I don’t even HAVE Wordfence installed on this site, though it is 
   on my other website. So is it recognising me as the same user? And how do I fix
   the error? The Help section says I should go to “live tracker” and whitelist 
   it there, but I can’t go to live tracker if I don’t even have Wordfence installed!?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [WFAdam](https://wordpress.org/support/users/wfadam/)
 * (@wfadam)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/403-error-when-installing-google-analytics-code/#post-13485285)
 * Hello [@katforsyth](https://wordpress.org/support/users/katforsyth/) and thanks
   for reaching out to us!
 * A 403 usually represents a firewall block. Have you tried this in a different
   browser to see if the same issue happens? Could be a browser cache issue.
 * Let me know what you find!
 * Thanks!
 *  Thread Starter [katforsyth](https://wordpress.org/support/users/katforsyth/)
 * (@katforsyth)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/403-error-when-installing-google-analytics-code/#post-13485416)
 * I figured it out! It was Wordfence on my other site blocking this! As soon as
   I whitelisted it, it allowed me to install the code. So strange; I didn’t know
   it would work across two different sites, even though I’m the same WP user.
 *  Plugin Support [WFAdam](https://wordpress.org/support/users/wfadam/)
 * (@wfadam)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/403-error-when-installing-google-analytics-code/#post-13485431)
 * Glad you could find a resolution [@katforsyth](https://wordpress.org/support/users/katforsyth/)
 * If you need anything else just post another topic and we would be happy to assist
   you!
 * Thanks again for your support!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘403 error when installing Google Analytics code’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [WFAdam](https://wordpress.org/support/users/wfadam/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/403-error-when-installing-google-analytics-code/#post-13485431)
 * Status: resolved