This feature is only available in the Pro version of Independent Analytics.
If you’re testing a new link pattern and your clicks aren’t showing up in the Clicks report, here are a few steps to debug the issue.
Clear the cache
After making changes in the Click Tracking menu, it’s vital that you clear your site’s cache. This allows the new link tracking rules to show up in the tracking script that Independent Analytics adds to every page of your website.
If you are using a CDN like Cloudflare, you may need to clear your site’s cache via your caching plugin first and then empty the CDN cache.
Use a private browser window
When testing clicks, use a private browser window or another browser altogether. If you are logged in, you’re likely not being tracked, which means your clicks won’t be tracked either.
Wait for up to 60s
Click data only syncs once every 60s, so you will see a delay between your test clicks and when they show up in the Clicks report. If you have waited for one minute and you don’t see the data, there is no need to wait any longer, and you can continue to the next debugging step.
We have more info on why there is a delay here: Why the Click Tracking Data Syncs Once Every Minute.
Make sure the class name is spelled correctly
If you’re using a class to track clicks, double-check that the class is spelled the exact same way in the Click Tracking menu as on the element you added it to.
Check if PHP execution is disabled
There are some security tools that block PHP execution in the plugins folder, and that blocks the click tracking feature from functioning. As of now, we are aware of this conflict with the Solid Security plugin and Cloudways hosting.
If you are using either product, please follow the steps here to enable PHP execution.
Make sure cron events are working
The next thing to check is that the site’s cron events are firing. You can install the excellent WP Crontrol plugin and then visit the Tools > Cron Events menu to see all of your site’s upcoming cron events.
They should all have a time scheduled in the future, and you should see an event called iawp_click_processing
scheduled one minute from now. If there is an issue, you will see a yellow warning sign next to each cron event and the time they were supposed to have been executed. If that is the case, it means your site is not running cron events.
If your site isn’t running cron events, it is most likely because they have been disabled with this line of code in the wp-config.php file: define('DISABLE_WP_CRON', true);
You can either delete that line to allow WordPress to run its cron system, or you can leave that code and instead configure a cron schedule from your hosting/cPanel account. If you schedule cron events via your host, you can have it run once per minute and hit the following URL (replaced with your own domain): https://example.com/wp-cron.php?doing_wp_cron
Then, wait a minute or two and revisit the Tools > Cron Events menu, and you should see that the warnings are all gone. It could take a few minutes if there is a large backlog of delayed cron events.
Contact support
If you have followed the steps above and your clicks still aren’t getting tracked, please reach out to us via the Contact page or by emailing support@independentwp.com directly, and we’ll be happy to help.