Loading...
 
Skip to main content

History: Google Analytics

Source of version: 11 (current)

Copy to clipboard
            ! Google Analytics
New in ((Tiki11)), just add your account number.

Your account number from Google looks like UA-XXXXXXX-YY. All you need to enter is XXXXXXX-YY

* See also ((PluginGoogleAnalytics)) for the older way.
* A Free / Libre / Open Source alternative is ((Matomo)) (formerly knows as Piwik).
* https://sourceforge.net/p/tikiwiki/code/45260

! Where to place your GA code
!! Best practice
Go to __Controls Panels > Look & Feel > Customization (tab)__ and enter you Google Analytics account number in input labeled "Google Analytics account number". Save the form and that's it!

!!!!! GTag
If you wish to use latest __gtag.js__ for more advance analytics data reports, rather than ga.js, enable "Google Global Site Tag Mode" option right under "Google Analytics account number" form field. 

!! Note: if the Customization tab isn't visible
You might need to enable advanced preference filters.
This is found under Control Panels > top leftmost icon (this button appears similar to the "Tesla" logo) > Preference Filters > Advanced.
 
! Short cut
There are other ways to accomplish the same.  This method below  may not be best practice  to connect your tiki site, yet it works. 

!! Dot html index file
Create a dot html index file and place your GA code at root. 
So that there is no supersedence issue, when you create your index file add a language extension. 

!! Example of a shortcut
Your .html file can be named like this:
index_en.html

Check with your system administrator if your not 100% sure.