<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.completenoobs.com/noobs/index.php?action=history&amp;feed=atom&amp;title=Ubuntu_Mediawiki_Tracking_Visitors</id>
	<title>Ubuntu Mediawiki Tracking Visitors - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.completenoobs.com/noobs/index.php?action=history&amp;feed=atom&amp;title=Ubuntu_Mediawiki_Tracking_Visitors"/>
	<link rel="alternate" type="text/html" href="https://www.completenoobs.com/noobs/index.php?title=Ubuntu_Mediawiki_Tracking_Visitors&amp;action=history"/>
	<updated>2026-04-30T05:04:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.completenoobs.com/noobs/index.php?title=Ubuntu_Mediawiki_Tracking_Visitors&amp;diff=588&amp;oldid=prev</id>
		<title>AwesomO: Created page with &quot; Options to See If Anyone is visiting your Wiki  ==HitCounters==  As easy as installing an extension: https://www.mediawiki.org/wiki/Extension:HitCounters  * Move to your wiki&#039;s extensions directory &lt;code&gt;cd /var/www/html/mediawiki/extensions&lt;/code&gt; * Download the extension from GIT &lt;code&gt;git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HitCounters&lt;/code&gt; * Enable it in LocalSettings.php by adding the line: &lt;pre&gt; wfLoadExtension( &#039;HitCounters&#039; ); &lt;/pre&gt; * Ru...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.completenoobs.com/noobs/index.php?title=Ubuntu_Mediawiki_Tracking_Visitors&amp;diff=588&amp;oldid=prev"/>
		<updated>2025-06-24T14:57:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; Options to See If Anyone is visiting your Wiki  ==HitCounters==  As easy as installing an extension: https://www.mediawiki.org/wiki/Extension:HitCounters  * Move to your wiki&amp;#039;s extensions directory &amp;lt;code&amp;gt;cd /var/www/html/mediawiki/extensions&amp;lt;/code&amp;gt; * Download the extension from GIT &amp;lt;code&amp;gt;git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HitCounters&amp;lt;/code&amp;gt; * Enable it in LocalSettings.php by adding the line: &amp;lt;pre&amp;gt; wfLoadExtension( &amp;#039;HitCounters&amp;#039; ); &amp;lt;/pre&amp;gt; * Ru...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
Options to See If Anyone is visiting your Wiki&lt;br /&gt;
&lt;br /&gt;
==HitCounters==&lt;br /&gt;
&lt;br /&gt;
As easy as installing an extension: https://www.mediawiki.org/wiki/Extension:HitCounters&lt;br /&gt;
&lt;br /&gt;
* Move to your wiki&amp;#039;s extensions directory&lt;br /&gt;
&amp;lt;code&amp;gt;cd /var/www/html/mediawiki/extensions&amp;lt;/code&amp;gt;&lt;br /&gt;
* Download the extension from GIT&lt;br /&gt;
&amp;lt;code&amp;gt;git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HitCounters&amp;lt;/code&amp;gt;&lt;br /&gt;
* Enable it in LocalSettings.php by adding the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wfLoadExtension( &amp;#039;HitCounters&amp;#039; );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Run the MediaWiki update script to create necessary database tables:&lt;br /&gt;
&amp;lt;code&amp;gt;php /var/www/html/mediawiki/maintenance/update.php&amp;lt;/code&amp;gt;&lt;br /&gt;
* Check &amp;lt;b&amp;gt;Special:PopularPages&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;https://www.completenoobs.com/noobs/Special:PopularPages&amp;lt;/code&amp;gt;&lt;br /&gt;
* Can add the line in a wiki page to link to PopluarPages&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Special:PopularPages/10}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Error Warning===&lt;br /&gt;
for some reason i had a clash with &amp;lt;b&amp;gt;ContributionScores&amp;lt;/b&amp;gt; , i did not take notes on the error, it was trying to use a database entrie that was not avable (this only happened after installing HitCounters), Error only on Main_Page&lt;br /&gt;
* Solved:&lt;br /&gt;
Commented out all ContributionScores lines in LocalSettings.php, re-ran wiki update &amp;lt;code&amp;gt;php /var/www/html/mediawiki/maintenance/update.php&amp;lt;/code&amp;gt;, worked, uncommented all ContributionScores and updated wiki again, and so some reason it worked! now both are running on wiki.&lt;br /&gt;
&lt;br /&gt;
==Google Analytics== &lt;br /&gt;
&lt;br /&gt;
* Extension used:Google Analytics Integration https://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration&lt;br /&gt;
&lt;br /&gt;
* Requires an Google Account &lt;br /&gt;
&lt;br /&gt;
=== Extension Install ===&lt;br /&gt;
* Go to your wiki&amp;#039;s extensions directory&lt;br /&gt;
&amp;lt;code&amp;gt;cd /var/www/html/mediawiki/extensions&amp;lt;/code&amp;gt;&lt;br /&gt;
* Download the extension from GIT&lt;br /&gt;
&amp;lt;code&amp;gt;git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/googleAnalytics&amp;lt;/code&amp;gt;&lt;br /&gt;
* This part is done for now, go to Google Analytics Page to create a DataStream For your wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Google Account ===&lt;br /&gt;
* ADD STREAM &amp;gt; WEB &amp;gt; Enter WEBSITE URL and give the STREAM a name &amp;gt; Click &amp;#039;CREATE AND CONTINUE&amp;#039; &amp;gt; Click &amp;#039;Install manually&amp;#039;, there you will see your Unique &amp;lt;b&amp;gt;Measurement ID&amp;lt;/b&amp;gt; in the javascript&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- Google tag (gtag.js) --&amp;gt;&lt;br /&gt;
&amp;lt;script async src=&amp;quot;https://www.googletagmanager.com/gtag/js?id=G-T9920YJMQ3&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
  window.dataLayer = window.dataLayer || [];&lt;br /&gt;
  function gtag(){dataLayer.push(arguments);}&lt;br /&gt;
  gtag(&amp;#039;js&amp;#039;, new Date());&lt;br /&gt;
&lt;br /&gt;
  gtag(&amp;#039;config&amp;#039;, &amp;#039;G-T9920YJMQ3&amp;#039;);&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* My Unique &amp;lt;b&amp;gt;Measurement ID&amp;lt;/b&amp;gt; is: &amp;lt;code&amp;gt;G-T9920YJMQ3&amp;lt;/code&amp;gt;&lt;br /&gt;
===LocalSettings.php===&lt;br /&gt;
* This line is required: &amp;lt;code&amp;gt;require_once &amp;quot;$IP/extensions/googleAnalytics/googleAnalytics.php&amp;quot;;&amp;lt;/code&amp;gt;&lt;br /&gt;
* This Line is where you append your unique &amp;lt;b&amp;gt;Measurement ID&amp;lt;/b&amp;gt;: &amp;lt;code&amp;gt;$wgGoogleAnalyticsOtherCode = &amp;#039;&amp;lt;script async src=&amp;quot;https://www.googletagmanager.com/gtag/js?id=MEASUREMENT_ID&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In this Example my Measurement ID is &amp;lt;code&amp;gt;G-T9920YJMQ3&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# GoogleAnalyticsAccount&lt;br /&gt;
require_once &amp;quot;$IP/extensions/googleAnalytics/googleAnalytics.php&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$wgGoogleAnalyticsOtherCode = &amp;#039;&amp;lt;script async src=&amp;quot;https://www.googletagmanager.com/gtag/js?id=G-T9920YJMQ3&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;#039;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Should now all be working, If you now test in Google it should good.&lt;br /&gt;
&lt;br /&gt;
== Analyze Apache Access Logs with Log Analysis Software ==&lt;br /&gt;
&lt;br /&gt;
you already have your apache logs: &amp;lt;code&amp;gt;/var/log/apache2/access.log&amp;lt;/code&amp;gt; which you can already read with no app, been having problems with all app&amp;#039;s i have been trying, will try again later.&lt;/div&gt;</summary>
		<author><name>AwesomO</name></author>
	</entry>
</feed>