Title: Console error &#8211; invalid value for user_data
Last modified: March 11, 2020

---

# Console error – invalid value for user_data

 *  Resolved [lozula](https://wordpress.org/support/users/lozula/)
 * (@lozula)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/console-error-invalid-value-for-user_data/)
 * I have the plugin installed and it seems to track events correctly. However, 
   there’s an error in the console:
 * fbevents.js:23 [Facebook Pixel] – Call to “fbq(‘init’, ‘585436415521367’, []);”
   with parameter “user_data” has an invalid value of “[]”
 * Looking in the source code for the init on the page, it looks as follows:
 * fbq(‘init’, aepc_pixel.pixel_id, aepc_pixel.user);
 * So the empty value is “aepc_pixel.user”. How do I stop this value from being 
   empty, or remove it?

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

 *  Thread Starter [lozula](https://wordpress.org/support/users/lozula/)
 * (@lozula)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/console-error-invalid-value-for-user_data/#post-12532995)
 * My workaround for the time being is to edit class-aepc-pixel-scripts.php
 * Line 156, and remove aepc_pixel.user from the init.
 * I think a better solution would be to check if this array has a value before 
   using it in the init so as to avoid the console error.
 *  Plugin Author [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * (@antoscarface)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/console-error-invalid-value-for-user_data/#post-12655120)
 * Hi,
 * thanks for reporting the console error. I’m working on a new release and I’ll
   fix this issue as well 🙂 I hope to release it early next week.
 * Thanks.
 *  Plugin Author [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * (@antoscarface)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/console-error-invalid-value-for-user_data/#post-12677975)
 * Hi,
 * as promised, I’ve just released the new version which fixes the issue of this
   topic. Please, upgrade the plugin to 2.1.2 in order to finally avoid that warning
   in console 🙂
 * Have a nice day!

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

The topic ‘Console error – invalid value for user_data’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pixel-caffeine_e2ce0c.svg)
 * [Pixel Caffeine](https://wordpress.org/plugins/pixel-caffeine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pixel-caffeine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pixel-caffeine/)
 * [Active Topics](https://wordpress.org/support/plugin/pixel-caffeine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pixel-caffeine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pixel-caffeine/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/console-error-invalid-value-for-user_data/#post-12677975)
 * Status: resolved