Calculating Labor Cost Percentage

Google Search Preview Tool

Optimize your meta tags for better CTR.

0 / 60 characters
0 / 160 characters
Your Website
https://example.com › page
Page Title Preview
Your meta description will appear here. Keep it concise and include your target keywords to improve click-through rates.
function updateSeoPreview() { var titleInput = document.getElementById('meta-title-input'); var descInput = document.getElementById('meta-desc-input'); var previewTitle = document.getElementById('preview-title'); var previewDesc = document.getElementById('preview-desc'); var titleCount = document.getElementById('title-count'); var descCount = document.getElementById('desc-count'); var tVal = titleInput.value; var dVal = descInput.value; // Update Preview Text previewTitle.innerText = tVal || "Page Title Preview"; previewDesc.innerText = dVal || "Your meta description will appear here. Keep it concise and include your target keywords to improve click-through rates."; // Title Logic var tLen = tVal.length; titleCount.innerText = tLen + " / 60 characters"; if (tLen > 60) { titleCount.style.color = "#d93025"; } else if (tLen > 50) { titleCount.style.color = "#188038"; } else { titleCount.style.color = "#666″; } // Description Logic var dLen = dVal.length; descCount.innerText = dLen + " / 160 characters"; if (dLen > 160) { descCount.style.color = "#d93025"; } else if (dLen > 140) { descCount.style.color = "#188038"; } else { descCount.style.color = "#666"; } }

Leave a Comment