MC Google Analytics archived
[EOL] Wordpress plugin that adds Google Analtyics (UA) tracking code and tracks click events for External, Mailto, and documents.
by U-M: Digital · github.com/umdigital/mc-google-analytics · website
★ 0stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/umdigital/mc-google-analytics/archive/refs/heads/master.zipReadme
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;
});