• Resolved lozula

    (@lozula)


    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

    (@lozula)

    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ì

    (@antoscarface)

    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ì

    (@antoscarface)

    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.