Flipp Posted April 10, 2020 Share Posted April 10, 2020 Hello, For SEO, the Javascript code must be placed at the end of the page but when you advertise with Facebook you must load the Facebook pixel as soon as possible to trigger it before the visitor leaves the page. What do you advise to do on PS 1.6? Link to comment Share on other sites More sharing options...
Prescol Posted April 11, 2020 Share Posted April 11, 2020 Javascript is executed at soon at it is loaded. Placing it at the beginning of your page causes usability problems and loading lags, while placing at the bottom should not represent any problem to facebook metrics. Link to comment Share on other sites More sharing options...
Flipp Posted April 22, 2020 Author Share Posted April 22, 2020 Thanks for you reply. Facebook recommends placing the pixel code within <head> tags:https://developers.facebook.com/docs/facebook-pixel/implementation/ If FB pixel is executed at the end of my pages, it takes 4 sec. It's too long because many users are not tracked before leaving the page. Link to comment Share on other sites More sharing options...
Prescol Posted April 22, 2020 Share Posted April 22, 2020 If facebook took 4s to load is,probably, because your shop needs that amount of time to be complete rendered. A user can not interact until a website is not rendered over 80%. If you can: Move only the facebook js to the head and left the rest at bottom. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now