Where to put the Facebook Pixel Code?
Where to put the Facebook Pixel Code? Should I place it before the closing head tag, or after the opening body tag? I never can remember where to place this code.
4 Odpowiedzi
Facebook pixel should be placed before the closing head tag. So before </head>. Facebook recommends to put the pixel code in this place.
I have never used it, but i checked it. This pixel code should be placed before closing head tag (</head>).
I found an instruction that it should be put before the closing head tag. You should have an instruction for it when you generate FB Pixel Code.
Head section of the page. It’s usually located in files called header or index