Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Jannes & Mannes Google Analytics

This plugin adds Google Analytics code to your website only if you are in production based on the Bedrock WP_ENV constant.

This plugin adds Google Analytics code to your website only if you are in production based on the Bedrock WP_ENV constant.

Author Jannes & Mannes
Profile
Contributors jannesmannes
Tags google analytics
  1. Activate the plugin
  2. Copy the Google Analytics UA code from your Google Analytics account
  3. Go to the Google Analytics section in your dashboard, paste the UA code in the form field and save the settings page
  4. You are done

0.4

We now use the alternative async tracking script provided by Google for modern browsers: https://developers.google.com/analytics/devguides/collection/analyticsjs/#alternative_async_tracking_snippet

0.3

Tested up to 4.7

0.2

Do not show tracking code if the current user can edit posts, e.g. the user is a website editor

0.1

This is the first version of the plugin.

What is Bedrock?

You can read all about Bedrock here: https://roots.io/bedrock/

Why doesn the Google Analytics code show up in my source on my local environment?

Make sure that you are using Bedrock and you have set the environment to "debug". The code shows only when the constant WP_ENV is defined and is set to "production".

Share  
Download
Version 0.4

Requires WordPress version: 3.0.1 or higher

Compatible up to: 4.7.2

Last Updated 10 Feb 2017

Date Added: 21 Oct 2016

Evaluation
star1
star2
star3
star4
star5

0 stars
0 ratings
40 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0