You are here

santianoEvent - SEO - HrefLang

Container Reference: 
Tag Type: 
Custom HTML
Tag Description: 
Sends a santianoEvent for hrefLang issues found on the page
	<script>

// All the Hreflang tests are here 
var seoHrefLangHasNoXDefault = {{seoHrefLangHasNoXDefault}};
var seoHrefLangIsNotDefinedForOurPage = {{seoHrefLangIsNotDefinedForOurPage}};
  
// Individual Tests
if (seoHrefLangHasNoXDefault) {
  	dataLayer.push ({
      	'event': 'santianoEvent',
        'eventCommand': 'seoMonitoringHrefLang',
        'eventCategory': 'SEO Monitoring by santiano.io',
        'eventAction': 'HrefLang has no x-default',
        'eventLabel': '{{seoUrlCurrent}}'
        // 'eventSegment': undefined
        // 'eventPartition': undefined
    });  
}