PluginProbe
Analytics Head / 0.6
Analytics Head v0.6
1.6.7 1.7.0 trunk 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.6 1.4.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6
analytics-head / analytics_head.php

analytics_head.php in Analytics Head 0.6, at analytics_head.php

44 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Google Analytics Head
4 Plugin URI: https://wordpress.org/plugins/analytics-head/
5 Description: This plugin adds tracking code for <strong>Google Analytics</strong> to your WordPress site. Unlike other plugins, code is added to the <i>&lt;head&gt;</i> section, so you can authorize your site in <strong>Google Webmaster Tools</strong>. Of course you can also move your tracking code into footer.
6 Author: Lukasz Nowicki
7 Author URI: http://lukasznowicki.info/
8 Version: 0.6
9 License: GNU General Public License v2
10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
11 */
12
13 namespace Phylax\Plugin;
14
15 /**
16 * This software need WP to run, outside it is useless.
17 */
18 defined('ABSPATH') or die('Run me within WordPress environment.');
19
20
21 define( __NAMESPACE__ . '\PLUGIN_DIR', dirname( __FILE__ ) . DIRECTORY_SEPARATOR );
22 define( __NAMESPACE__ . '\PLUGIN_FILE', __FILE__ );
23 define( __NAMESPACE__ . '\PLUGIN_BASE', dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
24
25 /**
26 * Include configuration file and installer
27 */
28 require_once( PLUGIN_DIR . 'inc' . DIRECTORY_SEPARATOR . 'config.php' );
29 require_once( PLUGIN_DIR . 'inc' . DIRECTORY_SEPARATOR . 'installer.php' );
30
31 /**
32 * If user is in the admin area, add options view
33 */
34 if ( is_admin() ) {
35 require_once( PLUGIN_DIR . 'inc' . DIRECTORY_SEPARATOR . 'options.php' );
36 }
37
38 /**
39 * Include and run the plugin!
40 */
41 require_once( PLUGIN_DIR . 'inc' . DIRECTORY_SEPARATOR . 'plugin.php' );
42
43 #die('<br />Klik');
44 # EOF