Remove white space from Google Conversion iFrame

I noticed recently that Google’s conversion tracking code, usually found in the footer, has a set height of 13px as an iframe. This creates an annoying white space in your sites footer. When your footer is anything but white, it creates a 13px high gap underneath your footer which looks rather out of line with the rest of the site.

This simple CSS snippet below can be added to your stylesheet in order to remove the height, while still outputting the tracking code in the source of the page, ensuring full functionality of the tracking script.

iframe[name='google_conversion_frame'] {
font-size: 0 !important;
height: 0 !important;
line-height: 0 !important;
margin-top: -13px;
width: 0 !important;
}

Useful post? Share it

3 comments on “Remove white space from Google Conversion iFrame

Leave a Reply

Your email address will not be published. Required fields are marked *