diff --git a/wordpress/wp-content/plugins/google-analytics-for-wordpress/CONTRIBUTING.md b/wordpress/wp-content/plugins/google-analytics-for-wordpress/CONTRIBUTING.md deleted file mode 100644 index f5ef2372a67069554c7046f2a9f9d905402fcc62..0000000000000000000000000000000000000000 --- a/wordpress/wp-content/plugins/google-analytics-for-wordpress/CONTRIBUTING.md +++ /dev/null @@ -1,44 +0,0 @@ -#Contribute To Google Analytics for WordPress - -Community made patches, localisations, bug reports and contributions are very welcome and help make Google Analytics for WordPress the #1 GA plugin for WordPress. - -When contributing please ensure you follow the guidelines below so that we can keep on top of things. - -__Please Note:__ GitHub is for bug reports and contributions only - if you have a support question or a request for a customisation don't post here, go to our [Support Forum](http://wordpress.org/support/plugin/google-analytics-for-wordpress) instead. - -For localization, please refer to [translate.yoast.com](http://translate.yoast.com/projects/google-analytics-for-wordpress), though bugs with strings that can't be translated are welcome here. - -## Getting Started - -* Submit a ticket for your issue, assuming one does not already exist. - * Raise it on our [Issue Tracker](https://github.com/Yoast/google-analytics-for-wordpress/issues) - * Clearly describe the issue including steps to reproduce the bug. - * Make sure you fill in the earliest version that you know has the issue as well as the version of WordPress you're using. - -_Note:_ do **not** report security issues here. Email them to security at yoast dot com so we can deal with them swiftly and securely. - -## Making Changes - -* Fork the repository on GitHub -* Make the changes to your forked repository - * Ensure you stick to the [WordPress Coding Standards](http://codex.wordpress.org/WordPress_Coding_Standards) and have properly documented any new functions. -* When committing, reference your issue (if present) and include a note about the fix. -* Push the changes to your fork and submit a pull request to the 'master' branch of the Google Analytics for WordPress repository. - -## Code Documentation - -* We ensure that every Google Analytics for WordPress function is documented well and follows the standards set by phpDoc. -* An example function can be found [here](https://gist.github.com/jdevalk/5574677) -* Please make sure that every function is documented so that when we update our API Documentation things don't go awry! -* Finally, please use tabs and not spaces. The tab indent size should be 8 for all Google Analytics for WordPress code. - -At this point you're waiting on us to merge your pull request. We'll review all pull requests, and make suggestions and changes if necessary. - - -## "Patch welcome" issues - -Some issues are [labeled "Patch-welcome"](https://github.com/Yoast/google-analytics-for-wordpress/issues?q=is%3Aopen+is%3Aissue+label%3APatch-Welcome). This means we see the value in the particular enhancement being suggested but have decided for now not to prioritize it. If you however decide to write a patch for it we'll gladly include it after some code review. - -# Additional Resources -* [General GitHub Documentation](http://help.github.com/) -* [GitHub Pull Request documentation](http://help.github.com/send-pull-requests/) diff --git a/wordpress/wp-content/plugins/google-analytics-for-wordpress/README.md b/wordpress/wp-content/plugins/google-analytics-for-wordpress/README.md deleted file mode 100644 index f1bac58bbb9a2bb1f03a612937ebb92f38a235ec..0000000000000000000000000000000000000000 --- a/wordpress/wp-content/plugins/google-analytics-for-wordpress/README.md +++ /dev/null @@ -1,57 +0,0 @@ -Google Analytics for WordPress -============================== - -[](https://travis-ci.org/Yoast/google-analytics-for-wordpress) [](https://codeclimate.com/repos/54523bb669568068b8093b43/feed) - -Add Google Analytics to WordPress and be able to use all the powerful functions Google Analytics offers! - - -Welcome to the Google Analytics for WordPress Github repository ----------------------------------------------- - -While the documentation for the [Google Analytics for WordPress plugin](http://yoast.com/wordpress/google-analytics/) can be found on yoast.com, here -you can browse the source of the project, find and discuss open issues and even -[contribute yourself](https://github.com/Yoast/google-analytics-for-wordpress/blob/master/CONTRIBUTING.md). - -Installation ------------- - -Here's a [guide on how to install Google Analytics for WordPress in your WordPress site](http://yoast.com/wordpress/google-analytics/installation/). - -If you want to run the Git version for development though, you can set it up with [Composer](https://getcomposer.org/): - -```bash -composer create-project yoast/google-analytics:dev-trunk --prefer-source --keep-vcs -``` - -This will download the latest development version of Google Analytics for WordPress by Yoast. While this version is usually stable, -it is not recommended for use in a production environment. - -Bugs ----- -If you find an issue, [let us know here](https://github.com/Yoast/google-analytics-for-wordpress/issues/new)! - -Please report security issues privately to **security@yoast.com**. - -Support -------- -This is a developer's portal for Google Analytics for WordPress by Yoast and should not be used for support. Please visit the -[support forums](http://wordpress.org/support/plugin/google-analytics-for-wordpress). - -Contributions -------------- -Anyone is welcome to contribute to Google Analytics for WordPress. Please -[read the guidelines](https://github.com/Yoast/google-analytics-for-wordpress/blob/master/CONTRIBUTING.md) for contributing to this -repository. - -There are various ways you can contribute: - -* [Raise an issue](https://github.com/Yoast/google-analytics-for-wordpress/issues) on GitHub. -* Send us a Pull Request with your bug fixes and/or new features. -* [Translate Google Analytics for WordPress by Yoast into different languages](http://translate.yoast.com/projects/google-analytics-for-wordpress). -* Provide feedback and [suggestions on enhancements](https://github.com/Yoast/google-analytics-for-wordpress/issues?direction=desc&labels=Enhancement&page=1&sort=created&state=open). - -Changelog -========= - -Please see readme.txt for the changelog. diff --git a/wordpress/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin-assets.php b/wordpress/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin-assets.php deleted file mode 100644 index 6260ae7c0cb27648120506de51aa1a33c243cee8..0000000000000000000000000000000000000000 --- a/wordpress/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin-assets.php +++ /dev/null @@ -1,101 +0,0 @@ -add_dashboard_js_translations(); - } - - /** - * Getting the full path to given $asset - * - * @param string $asset - * - * @return string - */ - public static function get_asset_path( $asset ) { - static $plugin_directory; - - if ( $plugin_directory == null ) { - $plugin_directory = plugin_dir_url( GAWP_FILE ); - } - - $return = $plugin_directory . $asset; - - return $return; - } - - /** - * Check whether we can include the minified version or not - * - * @param string $ext - * - * @return string - */ - private static function file_ext( $ext ) { - if ( ! defined( 'SCRIPT_DEBUG' ) || ! SCRIPT_DEBUG ) { - $ext = '.min' . $ext; - } - - return $ext; - } - -} \ No newline at end of file diff --git a/wordpress/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin-form.php b/wordpress/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin-form.php deleted file mode 100644 index 952fb35fdee27cf3660cb17946a81b1d0bed82f2..0000000000000000000000000000000000000000 --- a/wordpress/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin-form.php +++ /dev/null @@ -1,338 +0,0 @@ -' . wp_nonce_field( 'save_settings', 'yoast_ga_nonce', null, false ); - } - - - /** - * Return the form end tag and the submit button - * - * @param string $button_label - * @param string $name - * @param string $onclick - * - * @return null|string - */ - public static function end_form( $button_label = null, $name = 'submit', $onclick = null ) { - if ( $button_label === null ) { - $button_label = __( 'Save changes', 'google-analytics-for-wordpress' ); - } - - $output = null; - $output .= '
';
-
- return $help;
- }
-
-
- /**
- * Will parse the optgroups.
- *
- * @param array $values
- *
- * @return array
- */
- public static function parse_optgroups( $values ) {
- $optgroups = array();
- foreach ( $values as $key => $value ) {
- foreach ( $value['items'] as $subitem ) {
- $optgroups[ $subitem['name'] ]['items'] = $subitem['items'];
- }
- }
-
- return $optgroups;
- }
-
- /**
- * Creates a label
- *
- * @param string $id
- * @param string $title
- * @param string $type
- *
- * @return string
- */
- private static function label( $id, $title, $type ) {
- return '';
- }
-
- /**
- * Creates a optgroup with the items. If items contain items it will create a nested optgroup
- *
- * @param string $optgroup
- * @param array $value
- * @param array $select_value
- *
- * @return string
- */
- private static function create_optgroup( $optgroup, $value, $select_value ) {
- $optgroup = '';
-
- return $optgroup;
- }
-
-
- /**
- * Getting the value from the option, if it doesn't exist return empty string
- *
- * @param string $name
- *
- * @return string
- */
- private static function get_formfield_from_options( $name ) {
- static $options;
-
- if ( $options === null ) {
- $options = Yoast_GA_Options::instance()->get_options();
- }
-
- // Catch a notice if the option doesn't exist, yet
- return ( isset( $options[ $name ] ) ) ? $options[ $name ] : '';
- }
-
- /**
- * Parsing given array with attributes as an attribute string
- *
- * @param array $attributes_to_parse
- *
- * @return string
- */
- private static function parse_attributes( $attributes_to_parse ) {
- $parsed_attributes = '';
- foreach ( $attributes_to_parse as $attribute_name => $attribute_value ) {
- $parsed_attributes .= $attribute_name . '="' . $attribute_value . '" ';
- }
-
- return trim( $parsed_attributes );
- }
-
-}
\ No newline at end of file
diff --git a/wordpress/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin-menu.php b/wordpress/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin-menu.php
deleted file mode 100644
index d1a6e14361a905ce66fbe181bda39112a260c6c5..0000000000000000000000000000000000000000
--- a/wordpress/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin-menu.php
+++ /dev/null
@@ -1,255 +0,0 @@
-target_object = $target_object;
-
- add_action( 'admin_menu', array( $this, 'create_admin_menu' ), 10 );
-
- if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
- require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
- }
-
- if ( is_plugin_active_for_network( GAWP_PATH ) ) {
- add_action( 'network_admin_menu', array( $this, 'create_admin_menu' ), 5 );
- }
-
- $this->dashboards_disabled = Yoast_GA_Settings::get_instance()->dashboards_disabled();
- $this->parent_slug = ( ( $this->dashboards_disabled ) ? 'yst_ga_settings' : 'yst_ga_dashboard' );
- }
-
- /**
- * Create the admin menu
- */
- public function create_admin_menu() {
- /**
- * Filter: 'wpga_menu_on_top' - Allows filtering of menu location of the GA plugin, if false is returned, it moves to bottom.
- *
- * @api book unsigned
- */
-
- // Base 64 encoded SVG image
- $icon_svg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCIgWw0KCTwhRU5USVRZIG5zX2Zsb3dzICJodHRwOi8vbnMuYWRvYmUuY29tL0Zsb3dzLzEuMC8iPg0KCTwhRU5USVRZIG5zX2V4dGVuZCAiaHR0cDovL25zLmFkb2JlLmNvbS9FeHRlbnNpYmlsaXR5LzEuMC8iPg0KCTwhRU5USVRZIG5zX2FpICJodHRwOi8vbnMuYWRvYmUuY29tL0Fkb2JlSWxsdXN0cmF0b3IvMTAuMC8iPg0KCTwhRU5USVRZIG5zX2dyYXBocyAiaHR0cDovL25zLmFkb2JlLmNvbS9HcmFwaHMvMS4wLyI+DQpdPg0KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYWFnXzEiIHhtbG5zOng9IiZuc19leHRlbmQ7IiB4bWxuczppPSImbnNfYWk7IiB4bWxuczpncmFwaD0iJm5zX2dyYXBoczsiDQoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOmE9Imh0dHA6Ly9ucy5hZG9iZS5jb20vQWRvYmVTVkdWaWV3ZXJFeHRlbnNpb25zLzMuMC8iDQoJIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDAgMzEuODkiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDQwIDMxLjg5IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KPHBhdGggZmlsbD0iI0ZGRkZGRiIgZD0iTTQwLDEyLjUyNEM0MCw1LjYwOCwzMS40NjksMCwyMCwwQzguNTMsMCwwLDUuNjA4LDAsMTIuNTI0YzAsNS41Niw1LjI0MywxMC4yNzIsMTMuNTU3LDExLjkwN3YtNC4wNjUNCgljMCwwLDAuMDQtMS0wLjI4LTEuOTJjLTAuMzItMC45MjEtMS43Ni0zLjAwMS0xLjc2LTUuMTIxYzAtMi4xMjEsMi41NjEtOS41NjMsNS4xMjItMTAuNDQ0Yy0wLjQsMS4yMDEtMC4zMiw3LjY4My0wLjMyLDcuNjgzDQoJczEuNCwyLjcyLDQuNjQxLDIuNzJjMy4yNDIsMCw0LjUxMS0xLjc2LDQuNzE1LTIuMmMwLjIwNi0wLjQ0LDAuODQ2LTguNzIzLDAuODQ2LTguNzIzczQuMDgyLDQuNDAyLDMuNjgyLDkuMzYzDQoJYy0wLjQwMSw0Ljk2Mi00LjQ4Miw3LjIwMy02LjEyMiw5LjEyM2MtMS4yODYsMS41MDUtMi4yMjQsMy4xMy0yLjYyOSw0LjE2OGMwLjgwMS0wLjAzNCwxLjU4Ny0wLjA5OCwyLjM2MS0wLjE4NGw5LjE1MSw3LjA1OQ0KCWwtNC44ODQtNy44M0MzNS41MzUsMjIuMTYxLDQwLDE3LjcxMyw0MCwxMi41MjR6Ii8+DQo8L2c+DQo8L3N2Zz4=';
-
- $menu_name = is_network_admin() ? 'extensions' : 'dashboard';
-
- if ( $this->dashboards_disabled ) {
- $menu_name = 'settings';
- }
-
- // Add main page
- add_menu_page(
- __( 'Yoast Google Analytics:', 'google-analytics-for-wordpress' ) . ' ' . __( 'General settings', 'google-analytics-for-wordpress' ), __( 'Analytics', 'google-analytics-for-wordpress' ), 'manage_options', 'yst_ga_' . $menu_name,
- array(
- $this->target_object,
- 'load_page',
- ),
- $icon_svg,
- $this->get_menu_position()
- );
-
- $this->add_submenu_pages();
- }
-
- /**
- * Get the menu position of the Analytics item
- *
- * @return string
- */
- private function get_menu_position() {
- $on_top = apply_filters( 'wpga_menu_on_top', true );
-
- if ( $on_top ) {
- $position = $this->get_menu_position_value( 'top' );
-
- }
- else {
- $position = $this->get_menu_position_value( 'bottom' );
- }
-
- // If the dashboards are disabled, force the menu item to stay at the bottom of the menu
- if ( $this->dashboards_disabled ) {
- $position = $this->get_menu_position_value( 'bottom' );
- }
-
- return $position;
- }
-
- /**
- * Get the top or bottom menu location number
- *
- * @param string $location
- *
- * @return string
- */
- private function get_menu_position_value( $location ) {
- if ( $location == 'top' ) {
- return '2.00013467543';
- }
-
- return '100.00013467543';
- }
-
- /**
- * Prepares an array that can be used to add a submenu page to the Google Analytics for Wordpress menu
- *
- * @param string $submenu_name
- * @param string $submenu_slug
- * @param string $font_color
- *
- * @return array
- */
- private function prepare_submenu_page( $submenu_name, $submenu_slug, $font_color = '' ) {
- return array(
- 'parent_slug' => $this->parent_slug,
- 'page_title' => __( 'Yoast Google Analytics:', 'google-analytics-for-wordpress' ) . ' ' . $submenu_name,
- 'menu_title' => $this->parse_menu_title( $submenu_name, $font_color ),
- 'capability' => 'manage_options',
- 'menu_slug' => 'yst_ga_' . $submenu_slug,
- 'submenu_function' => array( $this->target_object, 'load_page' ),
- );
- }
-
- /**
- * Parsing the menutitle
- *
- * @param string $menu_title
- * @param string $font_color
- *
- * @return string
- */
- private function parse_menu_title( $menu_title, $font_color ) {
- if ( ! empty( $font_color ) ) {
- $menu_title = '' . $menu_title . '';
- }
-
- return $menu_title;
- }
-
- /**
- * Adds a submenu page to the Google Analytics for WordPress menu
- *
- * @param array $submenu_page
- */
- private function add_submenu_page( $submenu_page ) {
- $page = add_submenu_page( $submenu_page['parent_slug'], $submenu_page['page_title'], $submenu_page['menu_title'], $submenu_page['capability'], $submenu_page['menu_slug'], $submenu_page['submenu_function'] );
- $is_dashboard = ( 'yst_ga_dashboard' === $submenu_page['menu_slug'] );
- $this->add_assets( $page, $is_dashboard );
- }
-
- /**
- * Adding stylesheets and based on $is_not_dashboard maybe some more styles and scripts.
- *
- * @param string $page
- * @param boolean $is_dashboard
- */
- private function add_assets( $page, $is_dashboard ) {
- add_action( 'admin_print_styles-' . $page, array( 'Yoast_GA_Admin_Assets', 'enqueue_styles' ) );
- add_action( 'admin_print_styles-' . $page, array( 'Yoast_GA_Admin_Assets', 'enqueue_settings_styles' ) );
- add_action( 'admin_print_scripts-' . $page, array( 'Yoast_GA_Admin_Assets', 'enqueue_scripts' ) );
- if ( ! $is_dashboard && filter_input( INPUT_GET, 'page' ) === 'yst_ga_dashboard' ) {
- Yoast_GA_Admin_Assets::enqueue_dashboard_assets();
- }
- }
-
- /**
- * Prepares and adds submenu pages to the Google Analytics for Wordpress menu:
- * - Dashboard
- * - Settings
- * - Extensions
- *
- * @return void
- */
- private function add_submenu_pages() {
- foreach ( $this->get_submenu_types() as $submenu ) {
- if ( isset( $submenu['color'] ) ) {
- $submenu_page = $this->prepare_submenu_page( $submenu['label'], $submenu['slug'], $submenu['color'] );
- }
- else {
- $submenu_page = $this->prepare_submenu_page( $submenu['label'], $submenu['slug'] );
- }
- $this->add_submenu_page( $submenu_page );
- }
- }
-
- /**
- * Determine which submenu types should be added as a submenu page.
- *
- * Dashboard can be disables by user
- *
- * Dashboard and settings are disables in network admin
- *
- * @return array
- */
- private function get_submenu_types() {
- /**
- * Array structure:
- *
- * array(
- * $submenu_name => array(
- * 'color' => $font_color,
- * 'label' => __( 'text-label', 'google-analytics-for-wordpress' ),
- * 'slug' => $menu_slug,
- * ),
- * ..,
- * )
- *
- * $font_color can be left empty.
- *
- */
- $submenu_types = array();
-
- if ( ! is_network_admin() ) {
-
- if ( ! $this->dashboards_disabled ) {
- $submenu_types['dashboard'] = array(
- 'label' => __( 'Dashboard', 'google-analytics-for-wordpress' ),
- 'slug' => 'dashboard',
- );
- }
-
- $submenu_types['settings'] = array(
- 'label' => __( 'Settings', 'google-analytics-for-wordpress' ),
- 'slug' => 'settings',
- );
- }
-
- $submenu_types['extensions'] = array(
- 'color' => '#f18500',
- 'label' => __( 'Extensions', 'google-analytics-for-wordpress' ),
- 'slug' => 'extensions',
- );
-
- return $submenu_types;
- }
-}
\ No newline at end of file
diff --git a/wordpress/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin.php b/wordpress/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin.php
deleted file mode 100644
index 8fd5ec52b83aa01953cd955faf9f1c62c3eb85d9..0000000000000000000000000000000000000000
--- a/wordpress/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin.php
+++ /dev/null
@@ -1,633 +0,0 @@
-is_running_cron() || $this->is_running_ajax() ) || strpos( $current_page, 'yst_ga' ) === 0 ) {
- add_action( 'admin_init', array( $this, 'init_settings' ) );
- }
- }
-
- }
-
- /**
- * Init function when the plugin is loaded
- */
- public function init_ga() {
-
- new Yoast_GA_Admin_Menu( $this );
-
- add_filter( 'plugin_action_links_' . plugin_basename( GAWP_FILE ), array( $this, 'add_action_links' ) );
-
- }
-
- /**
- * Init function for the settings of GA
- */
- public function init_settings() {
- $this->options = $this->get_options();
-
- try {
- // Loading Google Api Libs with minimal version 2.0.
- new Yoast_Api_Libs( '2.0' );
- }
- catch( Exception $exception ) {
- if ( $exception->getMessage() === 'required_version' ) {
- add_action( 'admin_notices', array( $this, 'set_api_libs_error' ) );
- }
- }
-
- $dashboards = Yoast_GA_Dashboards::get_instance();
-
- // Listener for reconnecting with google analytics
- $this->google_analytics_listener();
-
- if ( is_null( $this->get_tracking_code() ) && $this->show_admin_warning() ) {
- add_action( 'admin_notices', array( 'Yoast_Google_Analytics_Notice', 'config_warning' ) );
- }
-
- // Check if something has went wrong with GA-api calls
- $has_tracking_code = ( ! is_null( $this->get_tracking_code() ) && empty( $this->options['manual_ua_code_field'] ) );
- if ( $has_tracking_code && $this->show_admin_dashboard_warning() ) {
- Yoast_Google_Analytics::get_instance()->check_for_ga_issues();
- }
-
-
- if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
- $this->handle_ga_post_request( $dashboards );
- }
-
- /**
- * Show the notifications if we have one
- */
- $this->show_notification( 'ga_notifications' );
-
- // Load the Google Analytics Dashboards functionality
- $dashboards->init_dashboards( $this->get_current_profile() );
- }
-
- /**
- * There is an error with the API libs. So show a notice.
- */
- public function set_api_libs_error() {
- echo '' . __( 'Yoast plugins share some code between them to make your site faster. As a result of that, we need all Yoast plugins to be up to date. We\'ve detected this isn\'t the case, so please update the Yoast plugins that aren\'t up to date yet.', 'google-analytics-for-wordpress' ) . '
'; - printf( __( 'If you want to track custom dimensions like page views per author or post type, you should upgrade to the %1$spremium version of Google Analytics by Yoast%2$s.', 'google-analytics-for-wordpress' ), '', '' ); - echo ' '; - _e( 'This will also give you email access to the support team at Yoast, who will provide support on the plugin 24/7.', 'google-analytics-for-wordpress' ); - echo '
'; - echo ''; - var_dump( $this->options ); - echo '
' . $error_message . '
| - - | - - - |
|---|
'; - echo sprintf( - __( 'We need you to authenticate with Google Analytics to use this functionality. If you set your UA-code manually, this won\'t work. You can %sauthenticate your Google Analytics profile here%s to enable dashboards.', 'google-analytics-for-wordpress' ), - '', - '' - ); - echo '
'; - echo sprintf( - __( 'Because we\'ve switched to a newer version of the Google Analytics API, you\'ll need to re-authenticate with Google Analytics. We\'re sorry for the inconvenience. You can %sre-authenticate your Google Analytics profile here%s.', 'google-analytics-for-wordpress' ), - '', - '' - ); - echo '
'; - echo sprintf( - __( 'You have not yet finished setting up Google Analytics for Wordpress by Yoast. Please %sadd your Analytics profile here%s to enable tracking.', 'google-analytics-for-wordpress' ), - '', - '' - ); - echo '
'; - echo sprintf( - __( 'We need you to authenticate with Google Analytics to use this functionality. If you set your UA-code manually, this won\'t work. You can %sauthenticate your Google Analytics profile here%s to enable dashboards.', 'google-analytics-for-wordpress' ), - '', - '' - ); - echo '
'; - echo sprintf( - __( 'Because we\'ve switched to a newer version of the Google Analytics API, you\'ll need to re-authenticate with Google Analytics. We\'re sorry for the inconvenience. You can %sre-authenticate your Google Analytics profile here%s.', 'google-analytics-for-wordpress' ), - '', - '' - ); - echo '
'; - echo sprintf( - __( 'You have not yet finished setting up Google Analytics for Wordpress by Yoast. Please %sadd your Analytics profile here%s to enable tracking.', 'google-analytics-for-wordpress' ), - '', - '' - ); - echo '
' . __( 'Your server is blocking requests to Google, to fix this, add *.googleapis.com to the WP_ACCESSIBLE_HOSTS constant in your wp-config.php or ask your webhost to do this.', 'google-analytics-for-wordpress' ) . '
' . __( 'Your firewall or webhost is blocking requests to Google, please ask your webhost company to fix this.', 'google-analytics-for-wordpress' ) . '
'; - } - echo '' . __( 'Until this is fixed, you can only use the manual authentication method and cannot use the dashboards feature.', 'google-analytics-for-wordpress' ) . '
'; - } - - echo ''; - echo '' . __( 'Warning: If you use a manual UA code, you won\'t be able to use the dashboards.', 'google-analytics-for-wordpress' ) . '
'; - echo '_anonymizeIp' ) );
- echo Yoast_GA_Admin_Form::select( __( 'Ignore users', 'google-analytics-for-wordpress' ), 'ignore_users', $yoast_ga_admin->get_userroles(), __( 'Users of the role you select will be ignored, so if you select Editor, all Editors will be ignored.', 'google-analytics-for-wordpress' ), true );
- echo Yoast_GA_Admin_Form::input( 'checkbox', __( 'Disable analytics dashboard', 'google-analytics-for-wordpress' ), 'dashboards_disabled', null, __( 'This will completely disable the dashboard and stop the plugin from fetching the latest analytics data.', 'google-analytics-for-wordpress' ) );
-
- ?>
- _setDomainName' ) );
-
- echo Yoast_GA_Admin_Form::input( 'text', __( 'Set path for internal links to track as outbound links', 'google-analytics-for-wordpress' ), 'track_internal_as_outbound', null, sprintf( __( 'If you want to track all internal links that begin with %1$s, enter %1$s in the box above. If you have multiple prefixes you can separate them with comma\'s: %2$s', 'google-analytics-for-wordpress' ), '/out/', '/out/,/recommends/' ) );
- echo Yoast_GA_Admin_Form::input( 'text', __( 'Label for those links', 'google-analytics-for-wordpress' ), 'track_internal_as_label', null, 'The label to use for these links, this will be added to where the click came from, so if the label is "aff", the label for a click from the content of an article becomes "outbound-article-aff".' );
-
- echo Yoast_GA_Admin_Form::input( 'checkbox', __( 'Tag links in RSS feed with campaign variables', 'google-analytics-for-wordpress' ), 'tag_links_in_rss', null, __( 'Do not use this feature if you use FeedBurner, as FeedBurner can do this automatically and better than this plugin can. Check this help page for info on how to enable this feature in FeedBurner.', 'google-analytics-for-wordpress' ) );
- echo Yoast_GA_Admin_Form::input( 'checkbox', __( 'Allow anchor', 'google-analytics-for-wordpress' ), 'allow_anchor', null, sprintf( __( 'This adds a %1$s call to your tracking code, and makes RSS link tagging use a %2$s as well.', 'google-analytics-for-wordpress' ), '_setAllowAnchor', '#' ) );
- echo Yoast_GA_Admin_Form::input( 'checkbox', __( 'Add _setAllowLinker', 'google-analytics-for-wordpress' ), 'add_allow_linker', null, sprintf( __( 'This adds a %1$s call to your tracking code, allowing you to use %2$s and related functions.', 'google-analytics-for-wordpress' ), '_setAllowLinker', ' _link' ) );
- if ( current_user_can( 'unfiltered_html' ) ) {
- echo Yoast_GA_Admin_Form::textarea( __( 'Custom code', 'google-analytics-for-wordpress' ), 'custom_code', sprintf( __( 'Not for the average user: this allows you to add a line of code, to be added before the %1$s call.', 'google-analytics-for-wordpress' ), '_trackPageview' ) );
- }
-
- /**
- * Action: 'yst_ga_advanced-tab' - Allow adding to the advanced tab of the settings
- */
- do_action( 'yst_ga_advanced-tab' );
- ?>
- ' . __( 'If you want to confirm that tracking on your blog is working as it should, enable this option and check the console of your browser. Be absolutely sure to disable debugging afterwards, as it is slower than normal tracking.', 'google-analytics-for-wordpress' ) . '
'; - echo '' . __( 'Note the debugging is only loaded for administrators.', 'google-analytics-for-wordpress' ) . '
'; - echo '| ",{valign:"top",colSpan:ba(a),"class":a.oClasses.sRowEmpty}).html(c))[0];w(a,"aoHeaderCallback","header",[g(a.nTHead).children("tr")[0], -Ma(a),h,n,j]);w(a,"aoFooterCallback","footer",[g(a.nTFoot).children("tr")[0],Ma(a),h,n,j]);d=g(a.nTBody);d.children().detach();d.append(g(b));w(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function R(a,b){var c=a.oFeatures,d=c.bFilter;c.bSort&&mb(a);d?ga(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;M(a);a._drawHold=!1}function nb(a){var b=a.oClasses,c=g(a.nTable),c=g("").insertBefore(c),d=a.oFeatures,e=g("", -{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),h,i,j,n,l,r,q=0;q | ").html(y(a,c,b,"display"))[0]:d.anCells[b]}function Hb(a,b){for(var c,d=-1,e=-1,f=0,h=a.aoData.length;f | ").addClass(b),g("td",c).addClass(b).html(a)[0].colSpan=ba(d),e.push(c[0]))};f(a,b);c._details&&c._details.remove();c._details=g(e);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});p(["row().child.show()", -"row().child().show()"],function(){Wb(this,!0);return this});p(["row().child.hide()","row().child().hide()"],function(){Wb(this,!1);return this});p(["row().child.remove()","row().child().remove()"],function(){cb(this);return this});p("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var ec=/^(.+):(name|visIdx|visible)$/,Xb=function(a,b,c,d,e){for(var c=[],d=0,f=e.length;d |