Hi @sarathkumarrajendran
That fixed the issue. However I would expect that not having that option checked shouldn’t cause a JS error as it’s stopping other JS from working on the page.
Thanks
Thanks for your reply. The wp_head hook is being called in the header.php template. If this was not the case the site wouldn’t be working as the majority of the header code is rendered through this hook. This makes me think that something else is causing the issue. In your code, it looks like there is a condition statement before the variable is rendered out. Specifically:
if (is_admin() || $this->ga_ST == "" || current_user_can("manage_options") || !$this->ga_PrivacyPolicy) {
return;
}
Could it be that it is not getting passed this point?