Blogger Information
Blog 37
fans 0
comment 1
visits 28103
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
网页SEO、搜索引擎meta标签
kong
Original
905 people have browsed it
  1. <!--告诉Google搜索引擎不要翻译网页内容-->
  2. <meta name="google" content="notranslate">
  3. <!--展示网站的自定义图标-->
  4. <link type="image/png" href="" rel="icon" sizes="32x32">
  5. <!-- 将Google Analytics添加到网页中,以便跟踪和分析访问者的行为、流量和其他指标 -->
  6. <script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-207140950-2"></script>
  7. <script>
  8. window.dataLayer = window.dataLayer || [];
  9. function gtag() { dataLayer.push(arguments); }
  10. gtag('js', new Date());
  11. gtag('config', 'UA-207140950-2');
  12. </script>
  13. <!--该代码的作用是将Google Tag Manager添加到网页中,以便管理和部署其他第三方跟踪和数据收集脚本。 Google Tag Manager允许您在不更改网页代码的情况下添加、更新和管理各种跟踪和分析标签-->
  14. <!-- Google Tag Manager -->
  15. <script>(function (w, d, s, l, i) {
  16. w[l] = w[l] || []; w[l].push({
  17. 'gtm.start':
  18. new Date().getTime(), event: 'gtm.js'
  19. }); var f = d.getElementsByTagName(s)[0],
  20. j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
  21. 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
  22. })(window, document, 'script', 'dataLayer', 'GTM-KXR8XQ6');</script>
  23. <!-- End Google Tag Manager -->
  24. <!--指定网页的关键词,帮助搜索引擎了解网页的主题和内容-->
  25. <meta name="keywords" content="...">
  26. <!--这个描述通常会在搜索引擎结果页中显示,作为网页的摘要。-->
  27. <meta name="description" content="...">
  28. <!--这个标签用于指定当用户从当前网页点击链接转到其他网页时,浏览器在HTTP头中发送的“Referrer”(引荐页面)字段的值。该值设置为"no-referrer-when-downgrade"表示只有在当前页面使用HTTPS时才会发送引荐页面信息。-->
  29. <meta name="referrer" content="no-referrer-when-downgrade">
  30. <!--这个标签用于指示搜索引擎蜘蛛(搜索引擎的抓取程序)对网页的索引行为。这里的"all"表示允许搜索引擎进行索引、抓取和展示网页。-->
  31. <meta name="robots" content="all">
  32. <!--这个标签用于指定网页的语言和地区。"en_US"表示英语(美国)。-->
  33. <meta content="en_US" property="og:locale">
  34. <!--这个标签用于指定网站的名称-->
  35. <meta content="xx" property="og:site_name">
  36. <!--这个标签用于指定网页的类型,这里是"website"表示网站。-->
  37. <meta content="website" property="og:type">
  38. <!--这个标签用于指定网页的URL-->
  39. <meta content="https://xxx" property="og:url">
  40. <!--这个标签用于指定网页的标题。-->
  41. <meta content="xxx" property="og:title">
  42. <!--这个标签用于指定网页的详细描述,即对网页内容的更详细的概述。-->
  43. <meta content="..." property="og:description">
  44. <!--这个标签用于指定网页的缩略图或代表性图片的URL。-->
  45. <meta content="https://xxxx" property="og:image">
  46. <!--这个标签用于指定缩略图或代表性图片的宽度。-->
  47. <meta content="1200" property="og:image:width">
  48. <!--这个标签用于指定缩略图或代表性图片的高度。-->
  49. <meta content="630" property="og:image:height">
  50. <!--这个标签用于指定缩略图或代表性图片的alt属性值,即图片的替代文本。-->
  51. <meta content="xxx" property="og:image:alt">
  52. <!--这个标签用于指定网页的规范URL,即指向此网页的主要URL,有助于避免重复内容的问题。-->
  53. <link href="xxx" rel="canonical">
  54. <!--这个标签用于指定网站的首页的URL,方便搜索引擎和用户找到主页。-->
  55. <link href="xxx" rel="home">
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!