{"id":767,"date":"2021-10-13T13:29:17","date_gmt":"2021-10-13T17:29:17","guid":{"rendered":"http:\/\/www.tracemyip.org\/learn\/?post_type=ht_kb&#038;p=767"},"modified":"2023-02-14T13:31:48","modified_gmt":"2023-02-14T18:31:48","slug":"add-a-flag-counter-to-a-website","status":"publish","type":"ht_kb","link":"https:\/\/www.tracemyip.org\/learn\/add-flag-counter-to-a-website-767\/","title":{"rendered":"Add a Flag Counter to a website"},"content":{"rendered":"TraceMyIP provides a wide variety of <a href=\"https:\/\/www.tracemyip.org\/tools\/website-visitors-counter-traffic-tracker-statistics\/\" data-internallinksmanager029f6b8e52c=\"68\" title=\"visitor tracking, visitor IP tracker\">visitor tracker<\/a> image styles, including a <strong>Country Flag Counter<\/strong> that can be added to websites, personal profile pages, website forums, and so on. While recording advanced information about <a href=\"https:\/\/www.tracemyip.org\/learn\/how-to-build-a-website-for-visitors-optimization-2814\/\" data-internallinksmanager029f6b8e52c=\"69\" title=\"How to Build a Website for Visitors: Understanding Needs and Optimizing for Success\">website visitors<\/a>, a Flag Counter displays a list of visitor countries and the number of visits per each country listed.<\/p>\n<p style=\"padding: 10px 0;\"><strong><a href=\"https:\/\/www.tracemyip.org\/tools\/website-visitors-counter-traffic-tracker-statistics\/index.php?sto=1&amp;refLinkID=WPLearn_tracemyip_signup_link_1\" target=\"_blank\" rel=\"noopener\">\ud83d\udcc8 Sign Up<\/a><\/strong> now to <strong>instantly<\/strong> track website visitors IPs!<\/p>\n<p><img decoding=\"async\" class=\"img-trisize-float sz340A\" style=\"float: right;\" src=\"http:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2021\/10\/how-to-add-a-flag-tracker-to-website.jpg\" alt=\"how to add a flag tracker to website\" \/><\/p>\n<p>When you install a <strong>Flag Counter<\/strong> on your website, you are getting the following:<\/p>\n<ol>\n<li>Internal <a href=\"https:\/\/www.tracemyip.org\/learn\/how-to-access-a-projects-statistics-data-7\/\" data-internallinksmanager029f6b8e52c=\"59\" title=\"How to access a project\u2019s statistics data\">statistics<\/a> about website visitors that only you can view when logged in to the TraceMyIP console. This information contains advanced tracking data for all your website visitors<\/li>\n<li>An external widget image that displays your website&#8217;s popularity by a country which can be viewed by your website visitors<\/li>\n<\/ol>\n<h2>What information does the Flag Tracker provide to you as the owner of the website<\/h2>\n<p>The private visitor statistics that is accessible via the console provides significantly more information about all and each visitor individually. This information includes visitors&#8217; IP addresses, their network connection details, <a href=\"https:\/\/www.tracemyip.org\/learn\/how-do-i-track-my-device-ip-changes-522\/\" data-internallinksmanager029f6b8e52c=\"49\" title=\"How do I track my device IP changes?\">IP changes<\/a>, geographical data, web page viewing activity, historical statistics, location maps, and much more. You can also configure <a href=\"http:\/\/www.tracemyip.org\/learn\/website-visitor-ip-alerts-and-email-notifications-1481\/\" target=\"_blank\" rel=\"noopener\">visitor email notifications<\/a> and be notified when a specific or a range of visitors access your website.<\/p>\n<h2>What Country Flag Counter display to your website visitors<\/h2>\n<p><img decoding=\"async\" class=\"img-trisize-float sz340A\" style=\"float: right;\" src=\"http:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2021\/10\/flag-counter-image-style.jpg\" alt=\"Flag counter image style options\" \/><\/p>\n<p>The Flag Counter that is displayed on your website only provides limited data that&#8217;s publicly visible to you and your visitors. This data includes the following:<\/p>\n<ul>\n<li>Country flags icons and the number of visits from each country that has occurred from the very beginning when the flag tracker was installed<\/li>\n<li>Optional information such as\n<ul>\n<li>Total number of page views<\/li>\n<li>Total number of visits (each visitor can have multiple visits)<\/li>\n<li>Visitor <a href=\"https:\/\/www.tracemyip.org\/learn\/what-is-an-ip-address-127\/\" data-internallinksmanager029f6b8e52c=\"14\" title=\"What is an IP address?\">IP address<\/a><\/li>\n<li>Visitor system, such as an OS version and the browser<\/li>\n<li>Visitor GEO location<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>The Flag Counter can be generated with the above options and scaled to an image desired size and a number of website visitor countries to be displayed. You can also configure the Widget to allow your website visitors to access advanced statistics of your website by enabling a &#8220;<strong>guest access<\/strong>&#8221; mode on the Status page of your TraceMyIP console.<\/p>\n<h2>How to create a Flag Counter code for your website<\/h2>\n<p>In order to get your Flag website widget, you would need to follow these steps:<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tracemyip.org\/tools\/codereg.php?rgtype=4684NR-IPIB&amp;ntc=1&amp;adDj=1&amp;refLinkID=WPLearn_createnewsitetrk\" target=\"_blank\" rel=\"noopener\">Create a New User Account<\/a>. If you already have an account, you can either &#8220;<a href=\"http:\/\/www.tracemyip.org\/learn\/add-a-new-website-project-1272\/\" target=\"_blank\" rel=\"noopener\">Add a New Project<\/a>&#8221; for your website or <a href=\"http:\/\/www.tracemyip.org\/learn\/recover-a-visitor-tracker-code-261\/\" target=\"_blank\" rel=\"noopener\">recover your visitor tracker code<\/a> if you already had a project added to your TraceMyIP console.<\/li>\n<li>When <strong>generating<\/strong> your <strong>Flag Counter <a href=\"https:\/\/www.tracemyip.org\/learn\/how-to-install-a-website-visitor-tracker-code-1626\/\" data-internallinksmanager029f6b8e52c=\"27\" title=\"How to install a website visitor tracker code\">visitor tracker code<\/a><\/strong>, you will have access to the &#8220;VISITOR TRACKER STYLES&#8221; page. Scroll down the page until you see the &#8220;<strong>COUNTRY Flag Counter<\/strong>&#8221; configuration section. The configuration will allow you to\n<ul>\n<li>Create custom colors for the flag border, background, country, and stats text<\/li>\n<li>Include additional data on your widget such as the number of page views, number of visits, visitor IP, visitor system, visitor location<\/li>\n<li>Adjust the number of flags and columns that are going to be displayed<\/li>\n<\/ul>\n<\/li>\n<li><strong>Once all options have been selected<\/strong> and configured, click on the &#8220;<strong>Click to Continue<\/strong>&#8221; button<\/li>\n<li><strong>Select your &#8220;Code Type&#8221;<\/strong>. If you have a full-featured website editor and can use a JavaScript version of the code, then it is recommended to use the &#8220;<strong><a href=\"https:\/\/www.tracemyip.org\/learn\/the-difference-between-javascript-and-html-visitor-tracker-codes-1942\/\" data-internallinksmanager029f6b8e52c=\"30\" title=\"The difference between JavaScript and HTML visitor tracker codes\">JavaScript code<\/a><\/strong>&#8221; as it will provide you with full information about your visitors.\u00a0 You can also look through custom configuration trackers and pick the one that matches your website editor. If your website does not support JavaScript, you can select an &#8220;<strong>HTML Code<\/strong>&#8221; tracker.<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"529\" height=\"404\" class=\"tmip-steps-img-no-float mxH400 wp-image-1705\" src=\"http:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2021\/10\/code-installation-javascript-tracking-code-selection.jpg\" alt=\"JavaScript visitor tracker code selection\" srcset=\"https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2021\/10\/code-installation-javascript-tracking-code-selection.jpg 529w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2021\/10\/code-installation-javascript-tracking-code-selection-393x300.jpg 393w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2021\/10\/code-installation-javascript-tracking-code-selection-50x38.jpg 50w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2021\/10\/code-installation-javascript-tracking-code-selection-320x244.jpg 320w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/li>\n<li><strong>Next<\/strong> click on the &#8220;<strong>Get Code<\/strong>&#8221; button. The system will provide you with the <strong>code<\/strong> that you will need to <strong>place<\/strong> either in the <strong>header<\/strong> or the <strong>footer<\/strong> of your website.<\/li>\n<li>After you have installed the code, ensure that the Country Flag Counter appears on ALL pages of your website. You can review all advanced statistics and information about your website visitors collected by the <a href=\"https:\/\/www.tracemyip.org\/learn\/ip-trackers-672\/\" data-internallinksmanager029f6b8e52c=\"7\" title=\"IP trackers - types, security and purpose\">IP tracker<\/a> widget via TraceMyIP console.<\/li>\n<\/ol>\n<p><strong>Important note.<\/strong> You can only use <span style=\"text-decoration: underline;\">ONE<\/span> style of visitor tracker on your website. This means that the Flag Counter code needs to be installed either in the header or a footer of your website and appear on ALL pages of your website. If there are Flag Counter code duplicates or other visitor tracker styles are used, the website visitor tracking data will be inaccurate. When you install a visitor tracker code such as Flag Country Widget, check your website page(s) source code and verify that only a single instance of the code is loaded.<\/p>\n<h2>Changing the style of your existing Country Flag Counter<\/h2>\n<p>If you need to change your existing Flag Counter style, colors or additional data displayed, you would need to do the following:<\/p>\n<ol>\n<li>Remove the existing code from your website pages and ensure that it is completely removed from your website<\/li>\n<li>Generate a new visitor tracker code by clicking on a &#8220;<a href=\"http:\/\/www.tracemyip.org\/learn\/recover-a-visitor-tracker-code-261\/\" target=\"_blank\" rel=\"noopener\">tracker code<\/a>&#8221; link located on &#8220;My Projects&#8221; page of your TraceMyIP console<\/li>\n<li>Place the code into the header or a footer of your website and ensure that the same visitor tracker style appears on ALL pages of your website.<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"img-trisize-float sz340A\" style=\"float: right;\" src=\"http:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2021\/10\/changing-flag-counter-image-options.jpg\" alt=\"changing flag counter image options\" \/><\/p>\n<p>If you have selected the &#8220;Number of page views&#8221; and\/or &#8220;Number of visits&#8221; option for your Country Flag Tracker, you can set the starting numbers for page views and a number of visits by clicking on the &#8220;<strong>edit<\/strong>&#8221; link for your project and scrolling down until you see the options to change the initial counts for your tracker style.<\/p>\n<p style=\"padding: 10px 0;\"><strong>\ud83c\udf0d Who visits your website?<\/strong> <strong><a href=\"https:\/\/www.tracemyip.org\/tools\/codereg.php?rgtype=4684NR-IPIB&amp;ntc=1&amp;adDj=1&amp;refLinkID=WPLearn_tracemyip_signup_link_2\" target=\"_blank\" rel=\"noopener\">Sign Up<\/a><\/strong> now to find out instantly!<\/p>\n<div style=\"clear:both\"><\/div>","protected":false},"excerpt":{"rendered":"<p>provides a wide variety of visitor tracker image styles, including a Country Flag Counter that can be added to websites, personal profile pages, website forums, and so on. While recording advanced information about website visitors, a Flag Counter displays a list of visitor countries and the number of visits per&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[40],"ht-kb-tag":[86],"class_list":["post-767","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-tracker-codes","ht_kb_tag-flag-tracker"],"_links":{"self":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/comments?post=767"}],"version-history":[{"count":2,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/767\/revisions"}],"predecessor-version":[{"id":2116,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/767\/revisions\/2116"}],"wp:attachment":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/media?parent=767"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb-category?post=767"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb-tag?post=767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}