Add Option to Exclude Klaviyo Analytics in Certain Post Types
-
The constructor method of the class Klaviyo has this code to start the analytics:
if ( !is_admin() ) { $klaviyowp_analytics = new WPKlaviyoAnalytics($klaviyo_public_key); }
It doesn’t make sense to enable it on all post types. Right now, I fix this by using the
template_redirect
hook, but it’s better if you can add options in the Klaviyo Settings Panel to add to exclude it in certain post types.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add Option to Exclude Klaviyo Analytics in Certain Post Types’ is closed to new replies.