monsterinsights_create_client

The Google Analytics for WordPress by MonsterInsights monsterinsights create client function.

Description

monsterinsights_create_client(); 

Usage

  1. if ( !function_exists( 'monsterinsights_create_client' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/lite/includes/google.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = monsterinsights_create_client(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/lite/includes/google.php  
  1. function monsterinsights_create_client() { 
  2. require_once MONSTERINSIGHTS_PLUGIN_DIR . 'assets/lib/google/src/Google/autoload.php'; 
  3. require_once MONSTERINSIGHTS_PLUGIN_DIR . 'assets/lib/google/class-ga-client.php'; 
  4. $client = new MonsterInsights_GA_Client( $config, 'lite' ); 
  5. return $client;