Plugin Directory

Changeset 3272282


Ignore:
Timestamp:
04/14/2025 10:57:10 AM (12 months ago)
Author:
StuartCole
Message:

Initial commit of plugin version 1.0.0

Location:
jg-website-analytics
Files:
49 added
3 edited

Legend:

Unmodified
Added
Removed
  • jg-website-analytics/trunk/README.txt

    r3251039 r3272282  
    11=== JG Website Analytics ===
    2 Contributors: StuartCole
    3 Tags: analytics, stats, Google Analytics, Website Analytics
     2Contributors: Jumping Giraffe Ltd
     3Tags: analytics, stats, Google Analytics, visitor analytics, Website Analytics
    44Requires at least: 5.7
    5 Requires PHP: 5.4
    6 Tested up to: 6.6.1
    7 Stable tag: 0.4.2
     5Tested up to: 6.9
     6Stable tag: 1.0.0
    87License: GPLv2 or later
    98License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2524Reporting on how your visitors use your website is only the first version of the plugin, it will do so much more in the future which will also help increase user experience for your visitors but also increase the volume of traffic to your website.
    2625
    27 What this plugin will do:
     26= What this plugin will do =
    2827
    2928* Record 100% of the visitors to your website
     
    3736There is no need for complicated configuration or settings to get going, as soon as the plugin is "Activated" it will start recording your visitors and you can start using JG Website Analytics.
    3837
    39 = Real Time Visitors: =
     38= Real Time Visitors =
    4039Find out exactly how many visitors you have on your website with our LIVE Real Time Visitors.
    4140Did you know that Google Analytics can't show who is on your website right now! It can only show how many visitors have come to your website in the last 30 minutes. Not very helpful.
    4241With JG Website Analytics you can see how many people are on your site now and what pages they are looking at.
    4342
    44 = WooCommerce Analytics: =
     43= WooCommerce Analytics =
    4544JG Website Analytics will not only produce in-depth visitor analytics for your WordPress blog but also for every page of your WooCommerce e-commerce shop. A powerful tool to identify your best selling products.
    4645
    47 = Privacy Protected: =
     46= Privacy Protected =
    4847We value everyone's privacy as, well, private and that is how it should be. JG Website Analytics will not store any personal data.
    4948
     
    8079== Screenshots ==
    8180
     811. Showing live visitors currently on the site and where they came from. Also the main graph, in this case showing the last 30 days traffic.
     822. Tables showing the last 30 days worth of traffic to the site split up by Country, Device and Browser. There are additional tables showing all referrers and Pages landed on as well as linked internally.
     83
    8284== Changelog ==
    8385
    84 = 1.0 =
    85 * First version live
    86 
     86Please see detailed change log at https://jumpinggiraffe.com/product/website-analytics/
  • jg-website-analytics/trunk/jg-website-analytics.php

    r3251039 r3272282  
    11<?php
     2
    23/**
    34 * @wordpress-plugin
    45 * Plugin Name:       JG Website Analytics
    5  * Plugin URI:        https://jumpinggiraffe.com/analyse-visitors/
    6  * Description:       Website analytics functions you normally pay for, but for free: live visitors, pagesviews, referrers, customer insight, improve your site!
    7  * Version:           0.4.2
     6 * Plugin URI:        https://jumpinggiraffe.com/jg-website-analytics/
     7 * Description:       An easy to use, privacy focused website analytics plugin that boasts functionality that only paid analytics tools provide.
     8 * Version:           1.0.0
    89 * Author:            Jumping Giraffe Ltd
    910 * Author URI:        https://jumpinggiraffe.com/
    10  * @since             1.0.0
     11 * @since             0.1.0
    1112 * @package           jgwa_website_analytics
    1213 * Text Domain:       jg-website-analytics
     
    1617 *
    1718 * JG Website Analytics
    18  * Copyright (C) 2023 Jumping Giraffe Ltd
    19  *
    20  * This program is free software: you can redistribute it and/or modify
    21  * it under the terms of the GNU General Public License as published by
    22  * the Free Software Foundation, either version 3 of the License, or
    23  * (at your option) any later version.
    24  *
    25  * This program is distributed in the hope that it will be useful,
    26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    28  * GNU General Public License for more details.
    29  *
    30  * You should have received a copy of the GNU General Public License
    31  * along with this program. If not, see <http://www.gnu.org/licenses/>.
     19 * Copyright (C) 2025 Jumping Giraffe Ltd
    3220 */
    3321
    34 if ( ! defined( 'ABSPATH' ) ) {
    35     exit; // Exit if accessed directly.
     22 namespace jgwa_website_analytics;
     23
     24// If this file is called directly, abort.
     25if ( ( ! defined( 'WPINC' ) ) OR ( ! defined('ABSPATH' ) ) )
     26    die;
     27
     28define( 'JGWA_NAME', 'JG Website Analytics WordPress Plugin' );
     29define( 'JGWA_ID', 'jgwa_website_analytics' );
     30define( 'JGWA_ID_HYPHEN', 'jg-website-analytics' );
     31define( 'JGWA_VERSION', '1.0.0' );
     32define( 'JGWA_PATH', plugin_dir_path(__FILE__) );
     33define( 'JGWA_URL', plugin_dir_url(__FILE__) );
     34define( 'JGWA_HOME', home_url() );
     35define( 'JGWA_SITE', site_url() );
     36
     37function jgwa_website_analytics_activate() {
     38    require_once plugin_dir_path( __FILE__ ) . 'includes/class-jg-website-analytics-activator.php';
     39    JGWA_Website_Analytics_Activator::activate();
    3640}
    3741
    38 $jgwa_plugin = 'jg-website-analytics';
     42function jgwa_website_analytics_deactivate() {
     43    require_once plugin_dir_path( __FILE__ ) . 'includes/class-jg-website-analytics-deactivator.php';
     44    JGWA_Website_Analytics_Deactivator::deactivate();
     45}
     46register_activation_hook( __FILE__, 'jgwa_website_analytics\jgwa_website_analytics_activate' );
     47//register_deactivation_hook( __FILE__, 'jgwa_website_analytics\jgwa_website_analytics_deactivate' );
    3948
    40 define( 'JGWA_NAME', 'JG Website Analytics WordPress Plugin' );
    41 define( 'JGWA_ID', 'JG_website_analytics' );
    42 define( 'JGWA_ID_HYPHEN', $jgwa_plugin );
    43 define( 'JGWA_VERSION', '0.4.2' );
    44 define( 'JGWA_PATH', plugin_dir_path( __FILE__ ) );
    45 define( 'JGWA_URL', plugin_dir_url( __FILE__ ) );
    46 define( 'JGWA_HOME', home_url() );
    47 define( 'JGWA_SITE', site_url() );
    48 define( 'JGWA_PLAN', '1' );
    49 
    50 function jgwa_activate_website_analytics() {
    51 
    52     require_once plugin_dir_path( __FILE__ ) . 'includes/jg-website-analytics-activator.php';
    53     JGWA_Website_Analytics_Activator::activate();
    54 }
    55 register_activation_hook( __FILE__, 'jgwa_activate_website_analytics' );
    56 
    57 require plugin_dir_path( __FILE__ ) . 'includes/jg-website-analytics.php';
     49require plugin_dir_path( __FILE__ ) . 'includes/class-jg-website-analytics.php';
    5850
    5951/**
     
    6254 * @since    0.1.0
    6355 */
    64 function jgwa_run_website_analytics() {
    65 
    66     $plugin = new JGWA_Website_Analytics();
     56function jgwa_website_analytics_run() {
     57    $plugin = new JGWA_website_analytics();
    6758    $plugin->run();
    6859}
    69 jgwa_run_website_analytics();
     60jgwa_website_analytics_run();
  • jg-website-analytics/trunk/uninstall.php

    r3251039 r3272282  
    77 * @author     Jumping Giraffe Ltd
    88 */
     9
     10namespace jgwa_website_analytics;
    911
    1012if ( ! defined( 'ABSPATH' ) ) {
     
    1820 *
    1921 */
    20 //jgwa_website_analytics_clean_db(); // Commented out ready for future function of choosing to delete or not on uninstall.
    21 function jgwa_website_analytics_clean_db() {
    22     global $wpdb;
     22jgwa_website_analytics_uninstall();
     23function jgwa_website_analytics_uninstall() {
     24    global $wpdb;
    2325    $t = esc_sql($wpdb->prefix . 'JG_website_analytics_totals');
    2426    $wpdb->query("DROP TABLE IF EXISTS `$t`");
    2527    $t = esc_sql($wpdb->prefix . 'JG_website_analytics_visitor');
    2628    $wpdb->query("DROP TABLE IF EXISTS `$t`");
     29    $t = esc_sql($wpdb->prefix . 'JG_website_analytics_page_totals');
     30    $wpdb->query("DROP TABLE IF EXISTS `$t`");
     31
     32    $table = 'jg_table_exists_' . $wpdb->prefix . 'JG_website_analytics_totals';
     33    delete_option($table);
     34    $table = 'jg_table_exists_' . $wpdb->prefix . 'JG_website_analytics_visitor';
     35    delete_option($table);
     36    $table = 'jg_table_exists_' . $wpdb->prefix . 'JG_website_analytics_page_totals';
     37    delete_option($table);
    2738}
Note: See TracChangeset for help on using the changeset viewer.