{"id":30597,"date":"2021-04-28T03:53:30","date_gmt":"2021-04-28T09:53:30","guid":{"rendered":"https:\/\/thirstyaff.wpengine.com\/?post_type=knowledgebase&#038;p=30597"},"modified":"2024-04-16T12:56:17","modified_gmt":"2024-04-16T16:56:17","slug":"how-to-omit-ips-from-click-tracking","status":"publish","type":"ht_kb","link":"https:\/\/thirstyaffiliates.com\/fr\/docs\/how-to-omit-ips-from-click-tracking","title":{"rendered":"Comment omettre les adresses IP dans le suivi des clics ?"},"content":{"rendered":"<p>By default ThirstyAffiliates blocks bots accessing your affiliate links to give you more appropriate data in the report.<\/p>\n<p>In order to block additional bot(s), you should add them to the &#8220;Blocked bots&#8221; list under ThirstyAffiliates-&gt;Settings-&gt;General section:<\/p>\n<p><a href=\"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2021\/04\/Image-2021-05-04-at-11.38.49-AM.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-30659 size-full\" src=\"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2021\/04\/Image-2021-05-04-at-11.38.49-AM.jpg\" alt=\"\" width=\"617\" height=\"142\" srcset=\"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2021\/04\/Image-2021-05-04-at-11.38.49-AM.jpg 617w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2021\/04\/Image-2021-05-04-at-11.38.49-AM-300x69.jpg 300w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/a><\/p>\n<p>If bots have a useragent that can identify them as not genuine users you can add them to the &#8220;Blocked bots&#8221; list shown above.<\/p>\n<p>If needed, ask your webhost to get the useragent from hits that can be found in the access logs.<\/p>\n<p><strong>HOW CAN I OMIT IP&#8217;S FROM CLICK TRACKING?<br \/>\n<\/strong><br \/>\nThirstyAffiliates doesn&#8217;t have an IP block list option currently, but with some custom code, you can stop clicks being tracked for a specific range of IPs.<\/p>\n<p>It won&#8217;t have any negative SEO effect, it&#8217;ll simply not record clicks for the IP address that starts with any value (like 107.178 in the example below).<\/p>\n<p>Insert the following code snippet using the <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">Code Snippets<\/a> plugin:<\/p>\n<pre> add_filter('ta_filter_before_save_click', function ($skip) { $ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : ''; if ($ip &amp;&amp; preg_match('\/^107\\.178\\.\/', $ip)) { $skip = true; } return $skip; });<\/pre>\n<p>Make sure to replace 107 and 178 values with the starting values of the IP address you wish to omit.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Par d\u00e9faut, ThirstyAffiliates bloque les robots qui acc\u00e8dent \u00e0 vos liens d'affiliation afin de vous fournir des donn\u00e9es plus appropri\u00e9es dans le rapport. Pour bloquer d'autres robots, vous devez les ajouter \u00e0 la liste des \"robots bloqu\u00e9s\" dans ThirstyAffiliates-&gt;R\u00e9glages-&gt;G\u00e9n\u00e9ral : Si les robots ont un useragent qui permet de les identifier comme n'\u00e9tant pas des utilisateurs authentiques, vous devez les bloquer.<\/p>\n<p><a class=\"read-more\" href=\"https:\/\/thirstyaffiliates.com\/fr\/docs\/how-to-omit-ips-from-click-tracking\">Lire la suite<\/a><\/p>","protected":false},"author":4923,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"ht-kb-category":[497,498],"ht-kb-tag":[],"class_list":["post-30597","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-thirstyaffiliates-free-version","ht_kb_category-thirstyaffiliates-pro"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/ht-kb\/30597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/users\/4923"}],"replies":[{"embeddable":true,"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/comments?post=30597"}],"version-history":[{"count":0,"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/ht-kb\/30597\/revisions"}],"wp:attachment":[{"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/media?parent=30597"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/ht-kb-category?post=30597"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/ht-kb-tag?post=30597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}