Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Hide Tracking Pixel

Tags:

html

css

I have a tracking pixel that is unfortunately causing a small white bar at the bottom of my footer. What is the best way to hide the pixel?

I was thinking of putting it (and my other pixels) in a position: absolute div, which hides the bar properly but I'm not sure if that will prevent the pixel from working on some browsers.

like image 913
AlexQueue Avatar asked Aug 26 '13 15:08

AlexQueue


2 Answers

From google Support:

<img src="TRACKING-PIXEL-URL-GOES-HERE" style="position:absolute; visibility:hidden">

<img src="TRACKING-PIXEL-URL-GOES-HERE" style="display:none">

<img src="TRACKING-PIXEL-URL-GOES-HERE" width="0" height="0">
like image 174
daniel__ Avatar answered Oct 20 '22 04:10

daniel__


You could give it a display: none CSS declaration or alternatively you could give the footer a negative bottom margin value margin-bottom: -1px

like image 28
Kevin Lynch Avatar answered Oct 20 '22 04:10

Kevin Lynch