Modified the approach of detecting active plugins to check if a constant or a function exists or not. The reason of avoiding using get_option() is that the get_option() renders the directory name of the active plugin. But there exists edge cases when the directory name may be different based on different setup of the plugin.
Modified the approach of detecting active plugins to check if a constant or a function exists or not. The reason of avoiding using get_option() is that the get_option() renders the directory name of the active plugin. But there exists edge cases when the directory name may be different based on different setup of the plugin.

googleinterns/auto-measurement-intern-2020,googleinterns/auto-measurement-intern-2020