Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Tracking Script causing Website Layout issues

I have installed the Google code for Remarketing Tag on my website. I have placed it in the footer of my site. The tracking is working fine, however, I have discovered a piece of the code is causing extra whitespace at the footer of my site. The snippet of code causing this is:

<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script>

I have tried applying different CSS properties to it, but nothing seems to work. How would I keep the script on the page but it not effect my design?

like image 822
three3 Avatar asked Aug 28 '13 00:08

three3


1 Answers

I have figured it out:

<div style="display:none">
    <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script>
</div>

Thanks to this posting: Google AdWords: remove iframe added by tracking conversion code

like image 148
three3 Avatar answered Nov 02 '22 01:11

three3