<!DOCTYPE html>
<html>
<head>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-41326657-2"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', 'UA-41326657-2');
    </script>
    <script src="https://cdn.jsdelivr.net/jquery/2.0.0/jquery-2.0.0.min.js"></script>
    <script type="text/javascript" src="ipCountryApi.js"></script>
    <script type="text/javascript">

        $(document).ready(function(){
            ipCountryApi.servers = [
                {
                    "url": "https://ipapi.co/json/",
                    returnCountry: function(data){
                        return data.country
                    }
                },
                {
                    "url": "http://ip-api.com/json",
                    returnCountry: function(data){
                        return data.countryCode
                    }
                }
            ];
            ipCountryApi.init(function(country){
                console.log(country);
                if (country == "CN") {
                } else {
                    window.location.href='https://www.mobilegames.mobi/?sl=4825829-c9f4b&data1=Track1&data2=Track2&tag=1&website=1&placement=1';
                }
            }, function(){
                window.location.href='https://www.mobilegames.mobi/?sl=4825829-c9f4b&data1=Track1&data2=Track2&tag=1&website=1&placement=1';
            });
            ipCountryApi.getCountry();
        });
    </script>
</head>
<body>
</body>
</html>
