PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / 2.0.3
ShareThis Dashboard for Google Analytics v2.0.3
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / googleanalytics.php
googleanalytics Last commit date
class 9 years ago css 9 years ago js 9 years ago lib 9 years ago overwrite 9 years ago view 9 years ago LICENSE 9 years ago googleanalytics.php 9 years ago options.php 9 years ago readme.txt 9 years ago screenshot-1.png 9 years ago screenshot-2.png 9 years ago screenshot-3.png 9 years ago screenshot-4.png 9 years ago screenshot-5.png 9 years ago
googleanalytics.php
48 lines
1 <?php
2
3 /*
4 * Plugin Name: Google Analytics
5 * Plugin URI: http://wordpress.org/extend/plugins/googleanalytics/
6 * Description: Use Google Analytics on your Wordpress site without touching any code, and view visitor reports right in your Wordpress admin dashboard!
7 * Version: 2.0.3
8 * Author: ShareThis
9 * Author URI: http://sharethis.com
10 */
11 if ( ! defined( 'WP_CONTENT_URL' ) ) {
12 define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
13 }
14 if ( ! defined( 'WP_CONTENT_DIR' ) ) {
15 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
16 }
17 if ( ! defined( 'WP_PLUGIN_URL' ) ) {
18 define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
19 }
20 if ( ! defined( 'WP_PLUGIN_DIR' ) ) {
21 define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
22 }
23 if ( ! defined( 'GA_NAME' ) ) {
24 define( 'GA_NAME', 'googleanalytics' );
25 }
26 if ( ! defined( 'GA_PLUGIN_DIR' ) ) {
27 define( 'GA_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . GA_NAME );
28 }
29 if ( ! defined( 'GA_PLUGIN_URL' ) ) {
30 define( 'GA_PLUGIN_URL', WP_PLUGIN_URL . '/' . GA_NAME );
31 }
32 if ( ! defined( 'GA_MAIN_FILE_PATH' ) ) {
33 define( 'GA_MAIN_FILE_PATH', __FILE__ );
34 }
35 if ( ! defined( 'GA_SHARETHIS_SCRIPTS_INCLUDED' ) ) {
36 define( 'GA_SHARETHIS_SCRIPTS_INCLUDED', 0 );
37 }
38 define( 'GOOGLEANALYTICS_VERSION', '2.0.3' );
39 include_once GA_PLUGIN_DIR . '/overwrite/ga_overwrite.php';
40 include_once GA_PLUGIN_DIR . '/class/Ga_Autoloader.php';
41 Ga_Autoloader::register();
42 Ga_Hook::add_hooks( GA_MAIN_FILE_PATH );
43
44 add_action( 'plugins_loaded', 'Ga_Admin::loaded_googleanalytics' );
45 add_action( 'init', 'Ga_Helper::init' );
46
47 ?>
48