You are here

clickIsExternal

Used by the following Containers: 
Variable Type: 
Custom Javascript
Returns true if the Click is External
	function() {
    var websiteIsInProduction = {{santianoCoreWebsiteIsInProduction}};
	if (websiteIsInProduction) {
      	var productionDomainNamesList = {{santianoCoreAuthorizedDomainNamesList}};
		var clickHostName = {{clickHostName}};
		if ( productionDomainNamesList.indexOf(clickHostName) == -1) {
        	return true
        } else {
          	return false  
        }
	} else {
  		return false
    }
}