Skip to content
View in the app

A better way to browse. Learn more.

Clicshopping AI, Free generative artificial intelligence e-commerce Open Source , Open Source Store Onlne

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Tool analytics

Featured Replies

Hello,

Google analytics seems the best, do you some other can be usefull or  better ?

I use Google Analytics, I hoster propose some other tools, but I do not like.
Others companies can propose something similar but not sure it's better than google analytics and it's not free.

Analytics it's correct for me for my needs

For google anlytics is enough and powerfull.

It' possible to find somle template adapted for the e-commerce.

 

With google search console, I think it's possible to make some action on the website.

 

  • 7 months later...
  • 5 months later...
  • Author

It seems Google has improved the script, do you think there is a new module for that ?

Hello

 

I am looking the new code . Below th new code inside the panel.

 

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-1xxxxxxx-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-1xxxxxxxxxx-1');
</script>

 

Hello,

 

It must someting like that ?

 

<?php
  /**
   *
   * @copyright 2008 - https://www.clicshopping.org
   * @Brand : ClicShopping(Tm) at Inpi all right Reserved
   * @Licence GPL 2 & MIT
   * @licence MIT - Portion of osCommerce 2.4
   * @Info : https://www.clicshopping.org/forum/trademark/
   *
   */

  use ClicShopping\OM\Registry;
  use ClicShopping\OM\CLICSHOPPING;

  class ht_google_analytics
  {
    public $code;
    public $group;
    public string $title;
    public string $description;
    public ?int $sort_order = 0;
    public bool $enabled = false;

    public function __construct()
    {
      $this->code = get_class($this);
      $this->group = basename(__DIR__);

      $this->title = CLICSHOPPING::getDef('module_header_tags_ganalytics_title');
      $this->description = CLICSHOPPING::getDef('module_header_tags_ganalytics_description');

      if (defined('MODULES_HEADER_TAGS_GANALYTICS_STATUS')) {
        $this->sort_order = MODULES_HEADER_TAGS_GANALYTICS_SORT_ORDER;
        $this->enabled = (MODULES_HEADER_TAGS_GANALYTICS_STATUS == 'True');
      }
    }

    public function execute()
    {

      $CLICSHOPPING_Template = Registry::get('Template');

      $header_flow = '<!--Start of Google analytics Script-->' . "\n";
      $header_flow .= '
      <script async src="https://www.googletagmanager.com/gtag/js?id="' . MODULES_HEADER_TAGS_GANALYTICS_KEY .'"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag(\'js\', new Date());

  gtag(\'config\', " . MODULES_HEADER_TAGS_GANALYTICS_KEY .");
      ';.
      $header_flow .= '</script>' . "\n";

      $header_flow .= '<script type="text/javascript">mixpanel.track("' . MODULES_HEADER_TAGS_GANALYTICS_SPEUDO . '");</script>' . "\n";
      $header_flow .= '<!--End Mixpanel Script-->' . "\n";

      $CLICSHOPPING_Template->addBlock($header_flow, $this->group);
    }

    public function isEnabled()
    {
      return $this->enabled;
    }

    public function check()
    {
      return defined('MODULES_HEADER_TAGS_GANALYTICS_STATUS');
    }

    public function install()
    {
      $CLICSHOPPING_Db = Registry::get('Db');

      $CLICSHOPPING_Db->save('configuration', [
          'configuration_title' => 'Do you want to install this module ?',
          'configuration_key' => 'MODULES_HEADER_TAGS_GANALYTICS_STATUS',
          'configuration_value' => 'True',
          'configuration_description' => 'Do you want to install this module ?',
          'configuration_group_id' => '6',
          'sort_order' => '1',
          'set_function' => 'clic_cfg_set_boolean_value(array(\'True\', \'False\'))',
          'date_added' => 'now()'
        ]
      );

      $CLICSHOPPING_Db->save('configuration', [
          'configuration_title' => 'Veuillez insérer la clef (https://mixpanel.com)',
          'configuration_key' => 'MODULES_HEADER_TAGS_GANALYTICS_KEY',
          'configuration_value' => '',
          'configuration_description' => 'Cette clef est nécessaire pour pouvoir afficher les statistiques<br> ex : 203927b013fdbf2f7322b1865b4ea54e',
          'configuration_group_id' => '6',
          'sort_order' => '60',
          'set_function' => '',
          'date_added' => 'now()'
        ]
      );

      $CLICSHOPPING_Db->save('configuration', [
          'configuration_title' => 'Sort Order',
          'configuration_key' => 'MODULES_HEADER_TAGS_GANALYTICS_SORT_ORDER',
          'configuration_value' => '80',
          'configuration_description' => 'Sort order. Lowest is displayed in first',
          'configuration_group_id' => '6',
          'sort_order' => '60',
          'set_function' => '',
          'date_added' => 'now()'
        ]
      );
    }

    public function remove()
    {
      return Registry::get('Db')->exec('delete from :table_configuration where configuration_key in ("' . implode('", "', $this->keys()) . '")');
    }

    public function keys()
    {
      return array('MODULES_HEADER_TAGS_GANALYTICS_STATUS',
        'MODULES_HEADER_TAGS_GANALYTICS_KEY',
        'MODULES_HEADER_TAGS_GANALYTICS_SORT_ORDER'
      );
    }
  }

 

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.