Bypass admin-ajax.php and track through a JS file?

[ad_1]

Hi @ashubetta

we use the admin-ajax.php approach because it is faster. In the end there is still a JS file used which is tracking the visit even if a caching plugin is used.

See this PR for more technical details:
https://github.com/pluginkollektiv/statify/pull/109

Or our documentation:
https://statify.pluginkollektiv.org/documentation/settings/
(Please look at the section “Tracking method”)

In the future, we will not use AJAX anymore and move to a REST API endpoint. Please see this PR for more technical details:
https://github.com/pluginkollektiv/statify/pull/226

Hope this helps!

All the best
Torsten

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer