You are here

santianoEvent - SEO - MetaRobots

Container Reference: 
Tag Type: 
Custom HTML
Tag Description: 
Sends a santianoEvent evrytime a page is set to nofollow or noindex
	<script>

var seoTestMetaRobotsIsNoFollow = {{seoMetaRobotsIsNoFollow}};
var seoTestMetaRobotsIsNoIndex = {{seoMetaRobotsIsNoIndex}};


// meta robots tests  
if (seoTestMetaRobotsIsNoFollow) {
  dataLayer.push ({'event': 'santianoEvent',
                   'eventCommand': 'seoMonitoringMetaRobots',
                   'eventCategory': 'SEO Monitoring by santiano.io',
                   'eventAction': 'Page is set to nofollow',
                   'eventLabel': {{seoUrlCurrent}}
                   // 'eventSegment': undefined,
                   // 'eventPartition': undefined
                });
  
}  
 
if (seoTestMetaRobotsIsNoIndex) {
  dataLayer.push ({'event': 'santianoEvent',
                   'eventCommand': 'seoMonitoringMetaRobots',
                   'eventCategory': 'SEO Monitoring by santiano.io',
                   'eventAction': 'Page is set to noindex',
                   'eventLabel': '{{seoUrlCurrent}}',
                   // 'eventSegment': undefined,
                   // 'eventPartition': undefined
                });
  
}  
</script>