Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Latest commit

 

History

History
18 lines (14 loc) · 642 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 642 Bytes

Google Analytics Tracker

Provides easy way to add google analytics tracking with just your tracking ID. No need to connect to your google account.

NOTICE

This plugin only works for Universal Analytics and not GA4. For GA4 use the offical Google Site Kit plugin.

Filters

mc_ga_show_tracking_code

This will allow the tracking to be enabled (true, default) or disabled (false).

Example to disable tracking via filter. This must happen before wp_head is called.

add_filter( 'mc_ga_show_tracking_code', function( $status ){
    return false;
});