diff --git a/index.php b/index.php
new file mode 100644
index 0000000..a4abe2d
--- /dev/null
+++ b/index.php
@@ -0,0 +1,2 @@
+\n";
+ echo "\n";
+ printf( '',
+ MATOMO_PATH,
+ MATOMO_SITE
+ );
+ return;
+ }
+
+ $path = MATOMO_PATH;
+ $site = MATOMO_SITE;
+
+$js = <<
+
+
+EOF;
+
+ echo $js;
+} );
+
+/*
+ * Register the stat menu link icon
+ */
+add_action( 'admin_menu', function () {
+ add_menu_page( 'Matomo Stats', 'Matomo Stats', 'manage_options', 'view_matomo_stats', 'function', 'dashicons-performance' );
+} );
+
+add_action( 'admin_init', function () {
+ if( isset( $_GET['page'] ) && $_GET['page'] === 'view_matomo_stats' ) {
+ wp_redirect( MATOMO_PATH );
+ exit();
+ }
+}, 1 );