GA Code Visibility

By Off Site Services

10+ active installationsVersion 1.1.0

Easily add Google Analytics code to your head and use it only when site is switched to "Search Engine Visibility".

Description

Allows admins to add Google Analytics code to <head> and use it only when site is switched to “Search Engine Visibility”.

Use Settings->Reading: check/uncheck “Search Engine Visibility” and add code to “GA code fields”.

Installation

  1. Upload entire /ga-add folder to /wp-content/plugins/ directory
  2. Activate plugin through Plugins menu in WordPress
  3. Add code Google Analytics in Settings>Reading “GA code fields”

Screenshots

Changelog

1.1.0

  • Updated compatibility with WordPress 7.0 and PHP 8.x.
  • Fixed deprecated WP_PLUGIN_URL constant usage.

0.4

  • Tested with WP 5.7

0.3

  • Tested with WP 5.0.3

0.2

  • Tested with WP 4.9.4