建站神器 + 营销 帮助

将 HTML 或自定义代码添加到我的网站

Websites + Marketing lets you add your own code (HTML, CSS and JavaScript) to your website, allowing you to extend your site's capabilities with things like custom forms, maps and special-function buttons, to name just a few.

You can also add Google Analytics, Facebook Pixel, Facebook Meta Tag, Pinterest Meta Tag and Google AdSense directly to your site in Settings, no custom code section required. Be sure to allow website visitors to set cookie and tracking preferences; it's the law.

Note: Embedding code can affect how your entire site functions, so use this only if you're comfortable hand coding or have specific code from another site.

  1. 转到 GoDaddy 产品页面
  2. 滚动到 Websites + Marketing,然后选择网站旁边的 Manage(管理)。
  3. 选择编辑网站编辑站点,打开建站神器。
  4. Go to the page and location where you want to add your custom code and add a section.
  5. 搜索 HTML 分区,选择添加
  6. Paste or write your custom code in the Custom Code field.
  7. 自定义该分区的其余部分,例如主题色、标题、居中对齐切换和高度。将强制高度字段留空以设置自动高度,或设置以像素为单位的特定高度。像素为 0 的高度等于删除分区
  8. 系统会自动保存您的更改。使用预览查看结果,并在准备好公开更改时发布您的网站

更多信息