Tracking pixel location | WordPress.org

[ad_1]

Hi,

Struggling a bit with some JS code from a developer. The code generated a pixel inside the body of the wordpress page. Which, I always thought was a defacto location for various scripts.

This particular script which lives in the HEAD section generates and inserts the tracking pixel into the body section.

The resultant page creates a gap at the top of the page in my browser which should not be there. This page is in a new site I am going to launch soon. The pixel has worked perfectly in the old site in a different theme.

The theme developer says the tracking code needs to be in the content not the body. I have never hear of this happening before – but am not a developer. The theme developer said to go back to the Tracking Pixel developer and tell them.

Question 1: Is the content area a normal place for a pixel to go?
Question 2: Has anyone heard of this before?

I’m not really sure how to approach the developer until I have a better grasp of the situation.

Any help is really appreciated.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer