Google AdWords: remove iframe added by tracking conversion code

后端 未结 5 1926
心在旅途
心在旅途 2021-02-01 12:44

I want to add Google AdWords to my site but the script I\'m supposed to add creates an iframe in the dom. This iframe is visible and moves down 13px (its height) all my page.

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-01 13:16

    The best and simplest solution that I have come across for this issue is simply to remove the frame from the document flow by adding the following code to the css stylesheet:

    iframe[name="google_conversion_frame"]{
      position:fixed;
    }
    

    Hope this helps

提交回复
热议问题