<?php
function global_head_data() {
    $link = "{$_SERVER['REQUEST_SCHEME']}://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
    ?>

    <link rel="alternate" hreflang="en" href="<?php echo $link; ?>">
    <link rel="alternate" hreflang="x-default" href="<?php echo $link; ?>">
	<script src="https://analytics.ahrefs.com/analytics.js" data-key="keYboEghRAu6lueRKB4qqQ" async></script>
    <?php /*
    <!-- Twitter Card -->
    <meta name="twitter:card" content="summary">
    <meta name="twitter:title" content="WareGo">
    <meta name="twitter:site" content="@WareGoGlobal">
    <meta name="twitter:description" content="At WareGo, we're dedicated to making warehouse operations as smooth as possible. WareGo empowers businesses to streamline warehouse operations and boost efficiency.">
    <meta name="twitter:image" content="https://opengraph.b-cdn.net/production/images/2942dcaf-9260-425b-92a0-86a244d8ed71.jpg?token=a7WhcigFHPp-X-9XSm9gKymEzu91t219R_DLZiLTCyk&height=630&width=1200&expires=33276666297">
    <meta name="twitter:image:alt" content="WareGo">

    <!-- OG Business Tags -->
    <meta property="og:type" content="business.business">
    <meta property="og:title" content="WareGo">
    <meta property="og:url" content="https://warego.co/">
    <meta property="og:image" content="https://opengraph.b-cdn.net/production/images/2942dcaf-9260-425b-92a0-86a244d8ed71.jpg?token=a7WhcigFHPp-X-9XSm9gKymEzu91t219R_DLZiLTCyk&height=630&width=1200&expires=33276666297">
    <meta property="og:description" content="WareGo helps you take control of your tasks and increase staff productivity. Saving you time and money through intuitive automation">
    <meta property="business:contact_data:street_address" content="721 Broadway, New York, NY 10003, USA">
    <meta property="business:contact_data:locality" content="New York">
    <meta property="business:contact_data:region" content="NY">
    <meta property="business:contact_data:postal_code" content="10003">
    <meta property="business:contact_data:country_name" content="United States of America">


    <!-- OG Website Tags -->
    <meta property="og:type" content="website">
    <meta property="og:title" content="WareGo">
    <meta property="og:url" content="https://warego.co/">
    <meta property="og:image" content="https://opengraph.b-cdn.net/production/images/2942dcaf-9260-425b-92a0-86a244d8ed71.jpg?token=a7WhcigFHPp-X-9XSm9gKymEzu91t219R_DLZiLTCyk&height=630&width=1200&expires=33276666297">
    <meta property="og:description" content="At WareGo, we're dedicated to making warehouse operations as smooth as possible. WareGo empowers businesses to streamline warehouse operations and boost efficiency.">

    <!-- OG Product Tags -->
    <meta property="og:type" content="product">
    <meta property="og:title" content="WareGo">
    <meta property="og:url" content="https://warego.co/">
    <meta property="og:image" content="https://opengraph.b-cdn.net/production/images/2942dcaf-9260-425b-92a0-86a244d8ed71.jpg?token=a7WhcigFHPp-X-9XSm9gKymEzu91t219R_DLZiLTCyk&height=630&width=1200&expires=33276666297">
    <meta property="og:description" content="At WareGo, we're dedicated to making warehouse operations as smooth as possible. WareGo empowers businesses to streamline warehouse operations and boost efficiency. Our advanced warehouse management software offers a comprehensive solution for industries like retail, e-commerce, 3PL, cold storage, food & beverage, wholesale, manufacturing, and more. With features like real-time inventory tracking, automated order processing, and advanced analytics, we help you optimize your supply chain and drive growth through innovation.">
    <meta property="product:plural_title" content="WareGo">
    <meta property="product:price.amount" content="449">
    <meta property="product:price.currency" content="USD">
    */ ?>

    <!-- Google Tag Manager -->
    <script>
        (function(w, d, s, l, i) {
            w[l] = w[l] || [];
            w[l].push({'gtm.start': new Date().getTime(), event: 'gtm.js'});
            var f = d.getElementsByTagName(s)[0],
                j = d.createElement(s),
                dl = l != 'dataLayer' ? '&l=' + l : '';
            j.async = true;
            j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
            f.parentNode.insertBefore(j, f);
        })(window, document, 'script', 'dataLayer', 'GTM-MW5QDXC9');
    </script>
    <!-- End Google Tag Manager -->
    
    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-JPLQZJKE9F"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag() { dataLayer.push(arguments); }
        gtag('js', new Date());
        gtag('config', 'G-JPLQZJKE9F');
    </script>
    
    <meta name="msvalidate.01" content="F523D466662D86C19F5A5CAD4351A0DF" />
    <meta name="yandex-verification" content="026240328b40460f" />
    
    <!-- Schema Markup -->
    <script type="application/ld+json">
        {
            "@context": "https://schema.org",
            "@type": "Organization",
            "name": "WareGo",
            "url": "https://warego.co/",
            "logo": "https://warego.co/wp-content/themes/waregowp/assets/img/logo.webp",
            "sameAs": [
                "https://www.facebook.com/waregoglobal/",
                "https://www.instagram.com/warego.global/",
                "https://www.linkedin.com/company/warego"
            ]
        }
    </script>
    
    
    <script type="application/ld+json">
        {
            "@context": "https://schema.org/",
            "@type": "WebSite",
            "name": "WareGo",
            "url": "https://warego.co/",
            "potentialAction": {
                "@type": "SearchAction",
                "target": "https://warego.co/blog/?s={search_term_string}",
                "query-input": "required name=search_term_string"
            }
        }
    </script>
    <?php
}
add_action('wp_head', 'global_head_data', 1);


function wms_wp_body_open() {
    $body_start_content = '
    <!-- Google Tag Manager (noscript) -->
        <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MW5QDXC9" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
        <!-- End Google Tag Manager (noscript) -->
    ';

    echo $body_start_content;
}

add_action( 'wp_body_open', 'wms_wp_body_open' );