• Resolved Christian

    (@nwachuku)


    Hi,
    I got this error on my Facebook business manager while using this plugin.

    ISSUE
    One or more of your ViewContent events has invalid characters in the value field. This may affect your ability to see return on ad spend calculations.

    SOLUTION
    Open your website’s source code. Locate the ViewContent event(s) and update the event code snippet. The value field must contain a decimal number greater than zero, and may not include letters, special characters, currency symbols or commas.

    I tried to chat with the Facebook support team but I was referred to this article:
    Set the Value and Currency of Your Facebook Pixel Standard Events

    Also below is what I see when I check the source on the browser:

    fbq('track', 'ViewContent', {
        "source": "woocommerce",
        "version": "4.4.1",
        "pluginVersion": "2.0.1",
        "content_name": "Fortress 1700 DT \/ TA (3-Wheel)",
        "content_ids": "[\"wc_post_id_287\"]",
        "content_type": "product_group",
        "contents": {
            "0": {
                "id": "wc_post_id_287",
                "quantity": 1
            }
        },
        "content_category": "3 Wheels",
        "value": "2789.00",
        "currency": "CAD"
    }, {
        "eventID": "4e9388c9-7d6a-4251-8a95-f5dade2273c2"
    });
     });

    WEBSITE CONFIG:

    
    WooCommerce version: 4.4.1
    PHP version: 7.2.33
    Facebook for WooCommerce: 2.0.1 
    WordPress: 5.5
    

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @nwachuku,

    Thanks for all the detail you’ve provided, it’s really helpful! I’m sorry for the delay in getting back to you, thanks for your patience here ??

    As a first step, could you go to where you’ve added the pixel code to your site and make sure the event’s value is set without quotations?

    For example, it should be value: 2789.00, rather than value: "2789.00"

    Could you let me know once you’ve confirmed this?

    Thanks!
    Christine

    Thread Starter Christian

    (@nwachuku)

    Hi @christineskyverge,

    I am using the Facebook for Woocommerce plugin. The code snippet I added in my question above was generated automatically by the plugin (I copied from the browser source)

    Could you please check if the plugin is parsing that value as a float from your end?

    Regards,
    Christian

    Hi @nwachuku

    Thanks for the additional detail here!

    I’ve passed this along to my colleague Simon, who seems to be working on this issue for your website, scootercountry.ca, via email with the subject line “Facebook Pixel Error: Invalid ViewContent Value Parameter”.

    It looks like he identified some next steps, and if you could check his email on that, I’d really appreciate it!

    Since that’s the case, could you please proceed with that email to ensure that our team will be able to assist you?

    Thanks!
    Christine

    Simon

    (@simonskyverge)

    Hey @nwachuku!

    Simon popping here as Christine mentioned you also had the same request in the forums. I’m not sure if you received my email from yesterday, though it would be great if you could take a look in your spam folder in case I got caught in there!

    Essentially, when I checked your site yesterday I noticed that there appears to be more than one pixel installed currently. To make sure this isn’t causing an issue with the notification you’re receiving from business manager, we would recommend removing this first so that we can focus troubleshooting this further.

    If that doesn’t help with the problem, I’d be happy to take a closer look! In which case, it would be great if we could get access to the debug logs too, as this may be logging server-side logging events as well.

    Firstly though, if you could confirm the issue persists with only our pixel enabled on your site, that would be great!

    Cheers,

    Simon.

    Thread Starter Christian

    (@nwachuku)

    Hi @simonskyverge

    Thanks for getting back to me on this. I have removed all Facebook pixel instances from the website except the one that was generated by the Facebook for woocommerce plugin.

    When I check my business manager I still see the two errors. I have attached a screenshot here https://ibb.co/94tC3H8

    Regards,
    Christian

    • This reply was modified 4 years, 7 months ago by Christian.
    Simon

    (@simonskyverge)

    Hey @nwachuku,

    Great, thanks so much for that! It looks like the ViewContent notice is no longer appearing, as it’s marked as Inactive since August 27th. Still looks like we have an issue with the AddToCart event though.

    As mentioned before, we also send some server to server events with the latest plugin version, so it would be great if I could take a look at the debug log for this timeframe too. You can find this at WooCommerce > Status > Logs and looking for the facebook_for_woocommerce log file with the matching date.

    If you’d like to share this privately, could you please reply back to the email you sent us previously which I replied to before?

    Cheers!

    Simon.

    Thread Starter Christian

    (@nwachuku)

    Hi @simonskyverge

    I would prefer to send the log information privately but I could not find the email you sent earlier in my inbox and spam folder. Could you please email me at [email protected] (I will reply) or let me know the subject of the email you sent to me earlier.

    Thanks
    Christian

    Simon

    (@simonskyverge)

    Hey @nwachuku, of course! I’ve just this minute emailed you back on the previous email thread to the email you’ve specified. I look forward to hearing from you so we can take a closer look. ??

    Let me close this off and we can pick it up in the email.

    Cheers,

    Simon.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Invalid ViewContent Value Parameter’ is closed to new replies.