Title: Code only appears when logged in
Last modified: August 22, 2016

---

# Code only appears when logged in

 *  Resolved [johnflufin](https://wordpress.org/support/users/johnflufin/)
 * (@johnflufin)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/code-only-appears-when-logged-in/)
 * For some reason the conversion pixel code is not included unless I am logged 
   in. I have tried clearing browser and W3 cache. I’m not sure what else to try.
   Suggestions?
 * [https://wordpress.org/plugins/facebook-conversion-pixel/](https://wordpress.org/plugins/facebook-conversion-pixel/)

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

 *  [Kellen Mace](https://wordpress.org/support/users/kellenmace/)
 * (@kellenmace)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/code-only-appears-when-logged-in/#post-5810106)
 * The plugin doesn’t do any checks to determine whether or not users are logged
   in – it just always inserts the Conversion Pixel Code on the front end of the
   site regardless. I think the issue is most likely caused by your W3 caching plugin.
   Can you try going to General Settings in W3 Total Cache and emptying the cache,
   then doing a hard refresh of your browser? If you use Chrome, you can go to the
   front end of your site and hit cmd+shift+r on a Mac, or ctrl+shift+r on a PC 
   to do a hard reset.
 * Thanks for your interest in using this plugin 🙂
 *  Thread Starter [johnflufin](https://wordpress.org/support/users/johnflufin/)
 * (@johnflufin)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/code-only-appears-when-logged-in/#post-5810130)
 * Hi Kellen. Thanks for the quick response.
 * I have already tried what you suggested. I completely cleared the W3 Total Cache
   cache. I also completely cleared Chrome & Safari (cache, cookies, data, etc).
   The code does not display unless I log into the site.
 *  Thread Starter [johnflufin](https://wordpress.org/support/users/johnflufin/)
 * (@johnflufin)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/code-only-appears-when-logged-in/#post-5810158)
 * Ok I did some testing. When browser cache is disabled in the W3 plugin, the code
   will display. Now the question is why? Still researching…
 *  Thread Starter [johnflufin](https://wordpress.org/support/users/johnflufin/)
 * (@johnflufin)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/code-only-appears-when-logged-in/#post-5810169)
 * Ok I’m an idiot. I was searching the code for “conversion” since it was in the
   code comments but W3 was minifying the page code and stripping the comments. 
   Duh. It was there the whole time but I didn’t recognize it without the comments.
   Sorry Kellen.
 * Nice plugin BTW.
 *  [Kellen Mace](https://wordpress.org/support/users/kellenmace/)
 * (@kellenmace)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/code-only-appears-when-logged-in/#post-5810171)
 * Oh man! Good catch. I’m glad you figured it out!
 * I’m glad you like the plugin. On that note, I’d appreciate a 5-star review if
   you have a second 🙂 Thanks!

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

The topic ‘Code only appears when logged in’ is closed to new replies.

 * ![](https://ps.w.org/facebook-conversion-pixel/assets/icon-256x256.gif?rev=2922077)
 * [Pixel Cat - Conversion Pixel Manager](https://wordpress.org/plugins/facebook-conversion-pixel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-conversion-pixel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-conversion-pixel/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-conversion-pixel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-conversion-pixel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-conversion-pixel/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Kellen Mace](https://wordpress.org/support/users/kellenmace/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/code-only-appears-when-logged-in/#post-5810171)
 * Status: resolved