You are here

seoLinksOnPageExternalFollowNumber

Used by the following Containers: 
Variable Type: 
Custom Javascript
Number of links on the page hat are external and 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 == 'follow') {
      	seoLinksOnPageInternalNumber++
      }
    }
    return seoLinksOnPageInternalNumber;
}