SIMON Master Console Rebuild
True command center for SIMON + WEB360
This rebuild gives you a cleaner production spine: interactive tree, live viewer, guarded editor, dynamic graphics, architecture map, and note storage. It is designed to sit beside your existing
console.php
and become the stronger replacement path.
Dashboard
Tree
Viewer
System Map
File Registry
Notes
Files
15,341
Folders
408
Scanned Size
3.84 GB
PHP Files
891
Editable Text Files
12,602
File viewer
guarded to /htdocs
/_inc/simon_tracking.php
<?php declare(strict_types=1); require_once __DIR__ . '/simon_event_bus.php'; if (!function_exists('simon_tracking_head')) { function simon_tracking_head(): string { $c = simon_phase2_config(); $gtm = htmlspecialchars((string) ($c['gtm_web_container_id'] ?? ''), ENT_QUOTES, 'UTF-8'); $ga4 = htmlspecialchars((string) ($c['ga4_measurement_id'] ?? ''), ENT_QUOTES, 'UTF-8'); $meta = htmlspecialchars((string) ($c['meta_pixel_id'] ?? ''), ENT_QUOTES, 'UTF-8'); $tiktok = htmlspecialchars((string) ($c['tiktok_pixel_id'] ?? ''), ENT_QUOTES, 'UTF-8'); $impact = htmlspecialchars((string) ($c['impact_verification'] ?? ''), ENT_QUOTES, 'UTF-8'); return <<<HTML <meta name="simon-impact-verification" content="{$impact}"> <script> window.SIMON_TRACKING = Object.freeze({ ga4: "{$ga4}", gtmWeb: "{$gtm}", metaPixel: "{$meta}", tiktokPixel: "{$tiktok}", webhook: "/connlink/test1/ui/webhook_inbox.php", visitStream: "visits", pulseStream: "default" }); </script> <script async src="https://www.googletagmanager.com/gtag/js?id={$ga4}"></script> <script> window.dataLayer=window.dataLayer||[]; function gtag(){dataLayer.push(arguments);} gtag('js',new Date()); gtag('config','{$ga4}',{send_page_view:true}); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','{$gtm}'); !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init','{$meta}');fbq('track','PageView'); !function(w,d,t){w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=['page','track','identify','instances','debug','on','off','once','ready','alias','group','enableCookie','disableCookie'];ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.load=function(e){var i='https://analytics.tiktok.com/i18n/pixel/events.js',n=d.createElement('script');n.type='text/javascript';n.async=!0;n.src=i+'?sdkid='+e+'&lib='+t;var a=d.getElementsByTagName('script')[0];a.parentNode.insertBefore(n,a)};ttq.load('{$tiktok}');ttq.page()}(window,document,'ttq'); </script> HTML; } } if (!function_exists('simon_track_page')) { function simon_track_page(string $module, string $page, array $meta = []): array { $config = simon_phase2_config(); return simon_phase2_emit('page_view', [ 'what' => ['action' => 'view', 'entity_type' => 'page', 'entity_name' => $page, 'result' => 'rendered'], 'where' => ['relative_path' => $page, 'url' => (string) ($_SERVER['REQUEST_URI'] ?? $page)], 'why' => ['reason' => 'user_navigation', 'trigger' => 'http_request'], 'how' => ['method' => 'web', 'tool' => $module], 'meta' => array_merge([ 'module' => $module, 'visit_stream' => $config['visit_stream'] ?? 'visits', 'pulse_stream' => $config['pulse_stream'] ?? 'default', ], $meta), ]); } }
Save file
Quick jump
open a path
Open