Web Analytics - (Page) Word Count

Card Puncher Data Processing

About

Word Count is a metric that shows the total number of words a page and is a size definition. The more word, the bigger the page.

Analytics Threshold

Example of words threshold
< 400
Between 400 and 800
Between 800 and 1600
More than 1600

Example

Pure javascript

  • The HTML page with some words to count
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam quis neque nibh. Fusce vitae sapien tincidunt, facilisis risus id, vulputate erat. Ut eget ex sem. Donec ornare consequat risus. Fusce cursus non lorem eu pharetra. Quisque in tristique orci. Nunc luctus turpis id augue euismod volutpat. Morbi ut nunc maximus, rhoncus ante at, feugiat nunc.
  • The count function
function countWords(node){
   const text = node.innerText || node.textContent;
   return text.split(/\s+/g).length;
}
  • The main: we select the body node and count the words.
node = document.querySelector('body');
console.log("The total number of words is "+countWords(node))
  • Result:

Custom Element

See the custom element example





Discover More
Card Puncher Data Processing
(Web|Mobile) Analytics - Dimension / Metrics

Metrics in the user analytics context. advertisement metric PageView - The total number of pages viewed for the time period. Session (Visit) - The number of visit Average Visit Duration:...
Median Epmv By Category
Ad - (Publisher) Revenue (Monetization)

revenue section in advertising Online publishers typically generate revenue by placing advertisements A website and other digital environments like mobile app and video channels earn revenue when ads...
Card Puncher Data Processing
Ezoic

(Ez) tracker page. is installed on website as a forward proxy which means that the request seems to come from the publisher website. uses the following endpoint /ezoic/e.gif...
HTML - Custom Tag / Element

A [[https://combostrap.com/frontmatter|frontmatter]] description shown on the Search Engine Result Pages



Share this page:
Follow us:
Task Runner