You are here

seoLinksOnPageExternalNoFollowNumber

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