Hi,
I think this is related and hopefully I’m able to change the behavior. I have version 4.6.7 and looks like the nonce is called via Ajax using wp_ajax_ig_es_get_updated_subscription_nonce every time the class ES_Handle_Subscription is initialized. This is done on every page load. Homepage, etc.
Normally this would be okay but what this is causing is a Page View count and 1 Unique visitor count for everyone who goes to my homepage. This has nothing to do with my Email subscribers. My hosting site wants to up my plan to the next level based on the number of unique visitors. I Full Page Cache the website on my CDN and those pages use to never reach my hosting provider and never counted it as a Page View / Unique visitor. My hosting provider counts Ajax calls as a page view / unique visitor.
My question is, is there any way to get the WordPress nonce via Ajax only on the webpage that it is needed and not on every single page. Can I add some custom code in my functions to do this? The two actions I would like to call only when actually it is needed is wp_ajax_ig_es_get_updated_subscription_nonce and wp_ajax_nopriv_ig_es_get_updated_subscription_nonce And not call them on every single page. Is this possible?
Thanks
Dana