Hello,
Using this code-snippet for disable tracking-code for my ip-address at home:
<?php if ($_SERVER['REMOTE_ADDR'] != '00.000.000.000') { ?>
// TRACKING CODE
<?php } ?>
Now i replace the hardcoded IP-address with a variable @{ myIpAddress } and add it in the Data and Files settings, so i can change the IP address in the dashboard:
<?php if ($_SERVER['REMOTE_ADDR'] != '@{ myIpAddress' }) { ?>
// TRACKING CODE
<?php } ?>
For testing, i can show the ip-address without problem, but the if-then structure doesn't work, so the tracking-code is not disabled anymore.
Someone know why?