You are here

seoLinksOnPageInternalFollowNumber

Used by the following Containers: 
Variable Type: 
Custom Javascript
Number of internal followed links on the page
	function() {
    var seoLinksOnPage = {{seoLinksOnPage}};
	var seoLinksOnPageNumber = {{seoLinksOnPageNumber}};
	var seoLinksOnPageInternalNumber = 0;
	var i;
    for ( i = 0; i < seoLinksOnPageNumber; i++ ) {
      if (seoLinksOnPage[i].destination == 'internal' && seoLinksOnPage[i].rel == 'follow') {
      	seoLinksOnPageInternalNumber++
      }
    }
    return seoLinksOnPageInternalNumber;
}