Meta Description ๊ธธ์ด 160์ ์ด๋ด๋ก ์ ํํ๊ธฐ์ ์ค์์ฑ
Bing์์ ๋ฐ์ํ๋ Meta Description ๊ธธ์ด ๋ฌธ์ ํด๊ฒฐ๋ฒ
๊ฒ์์์ง ํฌ๋กค๋ฌ๊ฐ ํ์ด์ง๋ฅผ ํฌ๋กค๋ง ํ description์ ํ์ํ ๋, ๋ด์ฉ์ด ๋๋ฌด ๊ธธ๋ฉด ์๋ฆฌ๊ณ ๋๋ฌด ์งง์ผ๋ฉด ๋ถํ์ํ ํ ์คํธ๊ฐ ์ถ๊ฐ๋์ด ๊ฒ์ ์ต์ ํ์ ์ข์ง ์๊ณ ๋๋ฌด ๊ธธ๊ฑฐ๋ ์งง์ Meta Description์ ๋ฌธ์ ๊ฐ ๋ฐ์ํฉ๋๋ค. ์ด๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด 160์ ์ด๋ด๋ก description์ ์ ํํ๋ ์คํฌ๋ฆฝํธ๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
๊ฒ์ ์์ง ์ต์ ํ์์ Meta Description์ ๊ธธ์ด ๋ฌธ์
๊ฒ์์์ง ํฌ๋กค๋ฌ๊ฐ ๊ฒ์ ํ์ด์ง๋ฅผ ํฌ๋กค๋ฌ ํ ๊ฒ์ ํ์ด์ง์ ํ์ํ๊ฒ ๋ ๊ฒฝ์ฐ description์ ๋ด์ฉ์ ํ๋ฉด์ ์ถ๋ ฅํ๊ฒ ๋ฉ๋๋ค. description ๋ด์ฉ์ด ๋๋ฌด ๊ธธ๊ฒ ์์ฑ๋๋ฉด ์ผ๋ถ๋ถ์ด ์๋ ค์ ์ถ๋ ฅ์ด ๋๋ฉฐ ๋๋ฌด ์ ์ ๊ฒฝ์ฐ๋ ๋ถํ์ํ ํ ์คํธ๊ฐ ์ถ๊ฐ๋์ด ๊ธ์ ์ฃผ์ ์ ์ฐ๊ด์ด ์๋ ๊ฒ์ ๋ ธ์ถ์ด ๋ฐ์ํด์ ๊ฒ์ ์ต์ ํ์ ์ข์ง ์์ ์ํฅ์ ๋ฏธ์นฉ๋๋ค.
๋ณดํต ๊ฒ์์์ง์ description์ ์ ๋ณด๋ฅผ 25์์์ 160์ ์ ๋๊น์ง ํ์ํด์ค๋๋ค. ๊ทธ๋์ 160์ ์ด๋ด๋ก description์ ์ ํํ ํ์์ฑ์ ์์ต๋๋ค.
๊ฒ์์์ง ์ต์ ํ ์ค์์ Bing์์ ๋ฐ์ํ๋ ๋๋ฌด ๊ธธ๊ฑฐ๋ ์งง์ Meta Description์ ๋ฌธ์ ๋ ์ผ๋ฐ์ ์ธ ์ฌ์ดํธ๋ description ์ฝ๋๋ฅผ ์์ ํ ์ ์๋ ๊ฒฝ์ฐ๋ ์ฝ๊ฒ ํด๊ฒฐํ ์ ์๋ ๋ฌธ์ ์ ๋๋ค. ๊ทธ๋ฌ๋ ํฐ์คํ ๋ฆฌ์์๋ ์ฝ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
์๋๋ ๊ทผ๋ณธ์ ์ธ ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์๋์ง๋ง ํ์ด์ง๊ฐ ๋ก๋ฉ ํ ๋ ๋๋ง ์ ๊ธฐ์กด์ description์ ์ญ์ ํ ์๋ก์ด description์ผ๋ก ์์ ํ๊ณ ๊ธ์ ์๋ฅผ 150์ ์ด๋ด๋ก ์ ํํ๊ฒ ํด์ฃผ๋ ๊ฐ๋จํ ์คํฌ๋ฆฝํธ ์ฝ๋์ ๋๋ค.
์ด ๋ฐฉ๋ฒ์ ์ฌ์ฉํ๊ฒ ๋๋ฉด ์๋ฒ์ ์ ์ฅ๋ ๋ด์ฉ์ด ๋ณ๊ฒฝ๋๋ ๋ฐฉ๋ฒ์ด ์๋๊ธฐ ๋๋ฌธ์ ํจ๊ณผ๋ ์์์๋ ์์ต๋๋ค. ์ข ๋ ๊ทผ๋ณธ์ ์ธ ํด๊ฒฐ ๋ฐฉ๋ฒ์ด ์๋ค๋ฉด ๊ทธ ๋ฐฉ๋ฒ์ ์ฌ์ฉํ์๋ฉด ๋๋๋ฐ ์์ง๊น์ง ๊ทผ๋ณธ์ ์ธ ์์ ๋ฐฉ๋ฒ์ ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
160์ ์ด๋ด๋ก Meta Description ์ ํํ๋ ์คํฌ๋ฆฝํธ ์ฌ์ฉ๋ฒ
๊ทธ๋ฌ๋ ์ด๋ฌํ ๋ฐฉ๋ฒ์ผ๋ก ์ต์ข ๊ฒฐ๊ณผ๋ฌผ์ ์์ ์ด ๊ฐ๋ฅํ๋ค๋ ์ ๋๋ก ์ ๋ฆฌ๋ฅผ ํด๋ด ๋๋ค. ์ description์ ๊ธธ๊ฒ ์์ฑํด์ ๋ฐฐํฌํ๋์ง ์ด์ ๋ฅผ ์ ์๋ ์์ง๋ง ์ฐ๋ฆฌ๊ฐ ๋ชจ๋ฅด๋ ๋ค๋ฅธ ์ด์ ๊ฐ ์์ ๊ฑฐ๋ผ ์๊ฐํ๋ฉฐ ์๋ ์ฝ๋๋ description์ JSON๊น์ง ์์ ํด์ ์๋กญ๊ฒ ํ์ฑํด์ฃผ๋ ์ฝ๋๋ฉฐ ํ์ํ์ ๋ถ๋ค์ ์ฌ์ฉํด๋ณด์ธ์.

๋๋ฌด ๊ธธ๊ฑฐ๋ ์งง์ Meta Description ์์ ์ฝ๋
<script async>
document.addEventListener('DOMContentLoaded', function() {
var metaDescription = document.querySelector('meta[name="description"]');
var ogDescription = document.querySelector('meta[property="og:description"]');
var twitterDescription = document.querySelector('meta[name="twitter:description"]');
var jsonLdScript = document.querySelector('script[type="application/ld+json"]');
// Initialize meta description with a limit of 150 characters
var initialContent = metaDescription ? metaDescription.getAttribute('content') : '';
var limitedContent = initialContent.substring(0, 150);
// Set the limited content to the meta tags
if (metaDescription) {
metaDescription.setAttribute('content', limitedContent);
}
if (ogDescription) {
ogDescription.setAttribute('content', limitedContent);
}
if (twitterDescription) {
twitterDescription.setAttribute('content', limitedContent);
}
// Get the content from <p class="summary">
var summaryParagraph = document.querySelector('p.summary');
var content = summaryParagraph ? summaryParagraph.textContent.trim() : '';
// Update meta descriptions if summary content exists
if (content) {
var updatedContent = content.substring(0, 150);
if (metaDescription) {
metaDescription.setAttribute('content', updatedContent);
}
if (ogDescription) {
ogDescription.setAttribute('content', updatedContent);
}
if (twitterDescription) {
twitterDescription.setAttribute('content', updatedContent);
}
if (jsonLdScript) {
try {
var jsonLdData = JSON.parse(jsonLdScript.textContent);
jsonLdData.description = updatedContent;
jsonLdScript.textContent = JSON.stringify(jsonLdData, null, 2);
} catch (e) {
console.error('Error parsing JSON-LD:', e);
}
}
}
});
</script>