--- tags: 健康2.0, web robots: noindex, nofollow --- # 健康2.0 文章內容頁 Info ## 健康2.0 web header裡須包含 ### amp link ```html <link rel="amphtml" href="https://health.tvbs.com.tw/amp/regimen/343291"> ``` href={{site_url}} + '/amp/' + {{category_name_eng}} + '/' + {{article_id}} ==*若是未來稿件就不用出現== --- ### canonical url ```html <link rel="canonical" href="https://health.tvbs.com.tw/regimen/343291"> ``` href={{article_url}} --- ### title邏輯 1. 有seo_title抓seo_title, 沒有seo_title抓original_title 2. 把tags一個一個用字串比對符合1的結果,若無符合加上"|tag"加到1後面,最多3個 3. 最後加上"|健康2.0" `<title>{{seo_title}}|{{不符合seo_title的tag1}}|{{不符合seo_title的tag2}}|{{不符合seo_title的tag3}}|健康2.0</title>` --- ### dable meta ```html <meta property="dable:item_id" content="343291"> <meta property="dable:author" content="https://www.facebook.com/TVBS56.health/"> <meta property="article:section" content="養生"> <meta property="dable:image" content="https://static.tvbs.com.tw/health2.0/images/uploads/2023/11/20231115115546-Qdh9UxAC.jpg"> <!-- Dable code --> <script> (function(d,a,b,l,e,_) { d[b]=d[b]||function(){(d[b].q=d[b].q||[]).push(arguments)};e=a.createElement(l); e.async=1;e.charset='utf-8';e.src='//static.dable.io/dist/plugin.min.js'; _=a.getElementsByTagName(l)[0];_.parentNode.insertBefore(e,_); })(window,document,'dable','script'); dable('setService', 'health.tvbs.com.tw/adgeek'); dable('sendLog'); </script> <!-- /Dable code--> ``` - property="dable:item_id" content="{{article_id}}" - property="dable:author" content="https://www.facebook.com/TVBS56.health/" - property="article:section" content="{{category_name_cht}}" - property="dable:image" content="{{feature_image_url}}" - script內容以文件提供為主 --- ### Facebook meta ```html <!-- Facebook Meta --> <meta property="og:title" content="她靠吃成功減重!2個月甩12公斤、體脂降8% 腰圍也少15公分|健康2.0"> <meta property="og:type" content="article"> <meta property="og:url" content="https://health.tvbs.com.tw/regimen/343291"> <meta property="og:image" content="https://static.tvbs.com.tw/health2.0/images/uploads/2023/11/20231115115546-Qdh9UxAC.jpg"> <meta property="og:site_name" content="TVBS"> <meta property="og:description" content="烘焙老師麥田金從事烘焙工作24年,每天都忙到晚上10點,下班後才開始吃晚餐,吃飽之後就睡覺,日積月累之下,體型變得越來越圓,一度胖到將近60公斤,她透過健康飲食及168斷食法,2個多月就輕鬆甩掉12公斤。 "> <meta property="fb:admins" content="560824649"> <meta property="fb:app_id" content="363996840650165"> <meta property="fb:pages" content="220050085932"> <meta property="fb:pages" content="419217714880192"> <meta property="fb:pages" content="435874166575033"> <meta property="fb:pages" content="111515882197852"> <meta property="fb:pages" content="103776576325700"> <meta property="fb:pages" content="425886554169130"> <meta property="fb:pages" content="222330954465485"> <meta property="fb:pages" content="103816386321776"> <meta property="article:author" content="https://www.facebook.com/TVBS56.health/" /> <meta property="article:publisher" content="https://www.facebook.com/TVBS56.health/" /> <meta property="article:published_time" content="2023-11-15 11:54:00"> <!-- /Facebook Meta --> ``` - property="og:title" content="{{article_title}} + '|健康2.0'" - property="og:url" content="{{article_url}}" - property="og:image" content="{{feature_image_url}}" - property="og:description" content="{{article_description}}" - property="article:published_time" content="{{article_publish}}" - 其他照樣 --- ### Google meta ```html <meta name="title" itemprop="headline" data-ephemeral="true" content="她靠吃成功減重!2個月甩12公斤、體脂降8% 腰圍也少15公分|輕斷食|168斷食法|花椰菜米|健康2.0"> <meta name="description" content="烘焙老師麥田金從事烘焙工作24年,每天都忙到晚上10點,下班後才開始吃晚餐,吃飽之後就睡覺,日積月累之下,體型變得越來越圓,一度胖到將近60公斤,她透過健康飲食及168斷食法,2個多月就輕鬆甩掉12公斤。 ,PTT,dcard"> <meta name="author" content="TVBS"> <meta name="copyright" content="TVBS"> <meta name="application-name" content="TVBS"> <meta name="URL" content="https://health.tvbs.com.tw/regimen/343291"> <meta name="medium" content="mult"> <meta name="robots" content="INDEX,FOLLOW"> <meta name="news_keywords" itemprop="keywords" content="減重,輕斷食,168斷食法,花椰菜米,甲狀腺功能異常,慢性腎臟病,麥田金,林旻樺"> <link rel="image_src" type="image/jpeg" href="https://static.tvbs.com.tw/health2.0/images/uploads/2023/11/20231115115546-Qdh9UxAC.jpg"> <meta name="format-detection" content="telephone=no"> <meta name="lastmod" property="article:modified_time" itemprop="dateModified" content="2023-11-23T18:58:59+08:00"> <meta name="pubdate" property="article:published_time" itemprop="datePublished" content="2023-11-15T11:54:00+08:00"> <!-- /for Google --> ``` - meta name="title" itemprop="headline" data-ephemeral="true" content="{{article_title}}|{{article_keyword1}}|{{article_keyword2}}|{{article_keyword3}}|健康2.0" - meta name="description" content="{{article_description}},PTT,dcard" - meta name="URL" content="{{article_url}}" - meta name="robots" content="INDEX,FOLLOW"(現在時間大於publish顯示INDEX,FOLLOW反之顯示NOINDEX,NOFOLLOW) - meta name="news_keywords" itemprop="keywords" content="{{article_keyword}}" - link rel="image_src" type="image/jpeg" href="{{feature_image_url}}" - meta name="lastmod" property="article:modified_time" itemprop="dateModified" content="{{article_update_date}}"(ISO 8601 format) - meta name="pubdate" property="article:published_time" itemprop="datePublished" content="{{article_publish-date}}"(ISO 8601 format) --- ### deeplink meta ```html <meta app="healthapp" categoryid="regimen" categoryname="養生" articleid="343291" articletitle="她靠吃成功減重!2個月甩12公斤、體脂降8% 腰圍也少15公分" shareurl="https://health.tvbs.com.tw/regimen/343291" apiurl="article/regimen/343291" imageurl="https://static.tvbs.com.tw/health2.0/images/uploads/2023/11/20231115115546-Qdh9UxAC.jpg" videoid=""/> ``` - categoryid="{{article_category_eng}}" - categoryname="{{article_category_cht}}" - articleid="{{article_id}}" - articletitle="{{article_title}}" - shareurl="{{article_url}}" - apiurl="article/{{article_category_eng}}/{{article_id}}" - imageurl="{{feature_image_url}}" --- ### google structured data ```html <!-- Google structured data --> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Organization", "name": "健康2.0", "url": "https://health.tvbs.com.tw/", "logo": "https://cc.tvbs.com.tw/2017program/health/images/supertaste_logo.png", "sameAs": [ "https://www.facebook.com/TVBS56.health /", "https://www.youtube.com/channel/UCAqzHNzLTC6Vm5UYE7xw_2A" ] } </script> ``` - 以上照寫 ```html <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "NewsArticle", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://health.tvbs.com.tw/regimen/343291" }, "headline": "她靠吃成功減重!2個月甩12公斤、體脂降8% 腰圍也少15公分", "image": { "@type": "ImageObject", "url": "https://static.tvbs.com.tw/health2.0/images/uploads/2023/11/20231115115546-Qdh9UxAC.jpg", "height": 576, "width": 1024 }, "dateCreated": "2023-11-15T11:59:37+08:00", "datePublished": "2023-11-15T11:54:00+08:00", "dateModified": "2023-11-23T18:58:59+08:00", "author": { "@type": "Person", "name": "郭庚儒" }, "publisher": { "@type": "Organization", "name": "健康2.0", "logo": { "@type": "ImageObject", "url": "https://cc.tvbs.com.tw/2017program/health/images/supertaste_logo.png", "width": 300, "height": 96 } }, "description": "烘焙老師麥田金從事烘焙工作24年,每天都忙到晚上10點,下班後才開始吃晚餐,吃飽之後就睡覺,日積月累", "articleSection": "養生", "keywords": ["減重","輕斷食","168斷食法","花椰菜米","甲狀腺功能異常","慢性腎臟病","麥田金","林旻樺"], "url": "https://health.tvbs.com.tw/regimen/343291", "articleBody": "烘焙老師麥田金從事烘焙工作24年,每天都忙到晚上10點........" } </script> ``` - mainEntityOfPage.@id={{article_url}} - headline={{article_title}} - image.url={{feature_image_url}} - image.height={{feature_image_height}} - image.width={{feature_image_width}} - dateCreated={{article_created_date}}(ISO 8601 format) - datePublished={{article_public_date}}(ISO 8601 format) - dateModified={{article_update_date}}(ISO 8601 format) - author.name={{author_cht}} - description={{article_description}} - articleSection={{article_category_cht}} - keywords=[{{article_keywords}}] - url={{article_url}} - articleBody={{article_content}}(strip tags) ```html <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "健康2.0", "item": "https://health.tvbs.com.tw/" }, { "@type": "ListItem", "position": 2, "name": "養生", "item": "https://health.tvbs.com.tw/regimen" }, { "@type": "ListItem", "position": 3, "name": "她靠吃成功減重!2個月甩12公斤、體脂降8% 腰圍也少15公分", "item": "https://health.tvbs.com.tw/regimen/343291" } ] } </script> ``` - itemListElement[1].name={{article_category_cht}} - itemListElement[1].item={{article_category_url}} - itemListElement[2].name={{article_title}} - itemListElement[2].item={{article_url}} --- ### ~~GA3~~ ```html <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-38808906-9', 'auto');ga('send', 'pageview'); </script> ``` - 照樣埋就可以 --- ### comscore(可以埋在GTM) ```html <script> var _comscore = _comscore || []; _comscore.push({ c1: "2", c2: "18400300" }); (function() { var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true; s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js"; el.parentNode.insertBefore(s, el); })(); </script> <noscript> <img src="http://b.scorecardresearch.com/p?c1=2&c2=18400300&cv=2.0&cj=1 " /> </noscript> ``` - 照樣埋就可以 --- ### apple touch icon ```html <!-- apple touch icon --> <link rel="apple-touch-icon" sizes="57x57" href="https://cc.tvbs.com.tw/2017program/health/images/apple-touch-icon/icon_57x57.png"> <link rel="apple-touch-icon" sizes="72x72" href="https://cc.tvbs.com.tw/2017program/health/images/apple-touch-icon/icon_72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="https://cc.tvbs.com.tw/2017program/health/images/apple-touch-icon/icon_76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="https://cc.tvbs.com.tw/2017program/health/images/apple-touch-icon/icon_114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="https://cc.tvbs.com.tw/2017program/health/images/apple-touch-icon/icon_120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="https://cc.tvbs.com.tw/2017program/health/images/apple-touch-icon/icon_144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="https://cc.tvbs.com.tw/2017program/health/images/apple-touch-icon/icon_152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="https://cc.tvbs.com.tw/2017program/health/images/apple-touch-icon/icon_180x180.png"> ``` - 照著放即可 --- ### GA4 custom dimension ```html <script> window.dataLayer = window.dataLayer || []; dataLayer.push({ 'event': 'PageViewPush', 'article_category': 'regimen', 'article_id': '343291', 'article_title': '她靠吃成功減重!2個月甩12公斤、體脂降8% 腰圍也少15公分', 'author': '郭庚儒', 'content_tag': '減重,輕斷食,168斷食法,花椰菜米,甲狀腺功能異常,慢性腎臟病,麥田金,林旻樺', 'publish_date': '2023-11-15 11:54:00', 'user_id': '123456' }); </script> ``` - article_category:{{article_category_eng}} - article_id:{{article_id}} - article_title:{{article_title}} - author:{{author_cht}} - content_tag:{{article_tag}} - publish_date:{{article_publish_date}} - user_id:{{user_mid}}(若沒有登入這項就不用) - e_collaborator: 'e1'(若是AI Wize文章) --- ### GTM ```html <!-- GTM --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-KPDJH4D');</script> <!-- /GTM --> ``` - 照放即可 --- ### GAM360 key value & PPID 在每個廣告版位放兩組key value ```javascript googletag.defineSlot('/7682122,31610311/health_pc_read_top',[[970,250],[1,1]],'health_pc_read_top') .addService(googletag.pubads()) .setTargeting("Health_channel","review") .setTargeting("health_article_id","343545"); ``` - setTargeting("Health_channel","{{article_category_eng}}") - setTargeting("Health_article_id","{{article_id}}") PPID在所有版位定義好之後再最後送出 ```javascript googletag.pubads().collapseEmptyDivs(); googletag.pubads().disableInitialLoad(); googletag.pubads().setPublisherProvidedId(ppid); googletag.enableServices(); ``` PPID的編碼原則: 假設cookie裡 *_ga* 的值為 `GA1.1.1308375165.1684230701` 把 ==GA1.1.== 去除後用sha256編碼 ### 富盈廣告投放方式 1. 更新ads.txt ``` #Breaktime breaktime.com.tw, BT-31610311, DIRECT google.com, pub-7968146525597976, RESELLER, f08c47fec0942fa0 indexexchange.com, 200190, DIRECT, 50b1c356f2c5c8fc adingo.jp, 27876, RESELLER pubmatic.com, 162802, RESELLER, 5d62403b186f2ace rubiconproject.com, 22884, DIRECT, 0bfd66d529a55807 smartadserver.com, 4455-OB, RESELLER, 060d053dcf45cbf3 smartadserver.com, 4455, RESELLER, 060d053dcf45cbf3 teads.tv,25280, DIRECT, 15a9c44f6d26cbe1 lijit.com, 405485, DIRECT, fafdf38b16bf6b2b #SOVRN lijit.com, 405485-eb, DIRECT, fafdf38b16bf6b2b #SOVRN inmobi.com,183aa50a390e4b99b4bf65ca4f35e4d6,DIRECT,83e75a7ae333ca9d outbrain.com, 00de7ab5eebdf905b3249412c15e9c00d4, DIRECT smaato.com, 1100053514, RESELLER, 07bcf65f187117b4 smaato.com, 1100052702, DIRECT, 07bcf65f187117b4 smaato.com, 1100004890, DIRECT, 07bcf65f187117b4 RTBHOUSE.COM, zy8IkPwnSSGKVD11RKQVhz, DIRECT themediagrid.com, VKEHP1, DIRECT, 35d5010d7789b49d ``` 2. 放置 breaktime js 正式站: `<script async type="text/javascript" charset="utf-8" src="https://power.adhacker.online/tvbs/health/prod/health.js"></script>` 測試站: `<script async type="text/javascript" charset="utf-8" src="https://power.adhacker.online/tvbs/health/stage/health.js"></script>` 3. 一般網頁放置定位`<div id="{ad unit name}"></div>` 4. amp網頁取代data slot中的GAM聯播網帳戶代號==21697024903==, EX: ``` <amp-ad width=320 height=250 type="doubleclick" data-slot="/21697024903,31610311/health_amp_read_top"> </amp-ad> ``` 5. PPID投放方式如同以往 ``` <script type="text/javascript"> googletag.pubads().setPublisherProvidedId('{PPID}'); googletag.enableServices(); </script> ``` PPID的編碼原則: 假設cookie裡 _ga 的值為 GA1.1.1308375165.1684230701 把 GA1.1. 去除後用sha256編碼 ## 未來稿件邏輯 未來稿件 = 文章發佈時間 > 現在時間 1. 文章可以顯示 2. header要加上`<meta name="robots" content="noindex">` 3. 要移除amp link `<link rel="amphtml" href="https://health.tvbs.com.tw/amp/{分類}/{文章id}">` ## 廣編稿邏輯 1. categories_id=37 2. 不出現在供稿裡 3. 不出現在首頁 4. 不出現在熱門文章 5. 不出現insider script tag `<script async src="//tvbs.api.useinsider.com/ins.js?id=10007658"></script>`