Title: facebook viewcontent event not loading
Last modified: February 5, 2021

---

# facebook viewcontent event not loading

 *  Resolved [cekaraz](https://wordpress.org/support/users/cekaraz/)
 * (@cekaraz)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/facebook-viewcontent-event-not-loading/)
 * Hi there,
    thank you for your wonderful plugin, it really has sped up my wordpress
   site a lot!
 * In the new version I have a problem with the facebook pixel tracking pageviews,
   but not tracking the Viewcontent event (fb pixel helper tells there is a problem).
   
   I tried disabling javascript processing in FVM and everything works back as normal.
   I tried removing function(f,b,e,v,n,t,s) and fbq( from the “Delay after user 
   interaction” section but with no success. In my consolle there is an “Uncaught
   SyntaxError: Unexpected end of input on this line” error that seem to be relevant
   to the issue:
 * `<script type="text/javascript">jQuery(function($){<!-- Facebook Pixel Event 
   Code -->fbq('set','agent','wordpress-5.6.1-3.0.1','117381078872174');fbq('track','
   ViewContent',{"value":"65","currency":"eur","content_name":"Camicetta romantica
   nera anni '50","content_category":"Camicie e top","content_ids":["wc_post_id_4057"],"
   content_type":"product","fb_integration_tracking":"woocommerce"},{"eventID":"
   0fdd6d5b-fdf0-430e-b283-0a94f5ae549a"});<!-- End Facebook Pixel Event Code --
   >})</script>`
 * Do you know how I could fix this ?
    Do i have to put connect.facebook.net url
   in ignore too ?
 * Thanks!
    Claudio
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffacebook-viewcontent-event-not-loading%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Raul P.](https://wordpress.org/support/users/alignak/)
 * (@alignak)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/facebook-viewcontent-event-not-loading/#post-14360688)
 * It looks like minification may be stripping something on the inline code.
    try
   to disable minification and see if it works.
 * You can also try to simplify and add linebreaks to the code like this:
 *     ```
       <script type="text/javascript">
       fbq('set','agent','wordpress-5.6.1-3.0.1','117381078872174');
       fbq('track','ViewContent',
       	{
       		"value":"65", 
       		"currency":"eur",
       		"content_name":"Camicetta romantica nera anni '50",
       		"content_category":"Camicie e top",
       		"content_ids":["wc_post_id_4057"],
       		"content_type":"product",
       		"fb_integration_tracking":"woocommerce"
       	},{
       		"eventID":"0fdd6d5b-fdf0-430e-b283-0a94f5ae549a"
       	});
       </script>
       ```
   
 * Either way, you need to debug by trying different settings.
    Each site needs 
   it’s own settings, and some scripts may or may not support defer, or delaying.

Viewing 1 replies (of 1 total)

The topic ‘facebook viewcontent event not loading’ is closed to new replies.

 * ![](https://ps.w.org/fast-velocity-minify/assets/icon-128x128.jpg?rev=1440946)
 * [Fast Velocity Minify](https://wordpress.org/plugins/fast-velocity-minify/)
 * [Support Threads](https://wordpress.org/support/plugin/fast-velocity-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/fast-velocity-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fast-velocity-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fast-velocity-minify/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Raul P.](https://wordpress.org/support/users/alignak/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/facebook-viewcontent-event-not-loading/#post-14360688)
 * Status: resolved