mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-26 01:44:37 +00:00
Update to latest version of google analytics code (#2671)
* trying to implement new googleanalytics tracker * trying to put new google tracker. Not working... * more dev options for testing still don"t understand wants goes wrong * New version. Seems to work * achieved update for new tests brought back tiddlywiki.com settings value created a settings tab to make it easier * adding settings to plugin add a settings tab to plugin to make it easier to use and see which GA account is in use * fixes bug with GA_ACCOUNT and GA_DOMAIN tiddlers containing newlines at their end, preventing plugins to work * soft rebase on jermolene's master * revert to oldest version of GA_account and GA_domain tiddlers - had been overwritten by ones with a new line at the end * Integrates some @tobibeer comments * googleanalytics.js : removed "rebranding", var declaration and console log. Did not manage to get a non-minified version of Google script. But as far as I can see, jermolene's original plugin did same way * plugin.info : placed "readme" first * readme : back to previous "legacy" version. No more mention to temporary fork. Added mention and link to google official code. * signed CLA
This commit is contained in:
committed by
Jeremy Ruston
parent
56131e4563
commit
c16f96626e
@@ -1,16 +1,23 @@
|
||||
title: $:/plugins/tiddlywiki/googleanalytics/usage
|
||||
|
||||
These instructions assume you are using TiddlySpot to publish your wiki.
|
||||
!! Create a google analytics account
|
||||
If you already got one, go to next step, else
|
||||
|
||||
# Go to the Google Analytics website: http://www.google.com/analytics/
|
||||
# Click the ''Access Google Analytics'' button and follow instructions to set up your account
|
||||
# Enter the name of your TiddlySpot domain, for example "mysite.tiddlyspot.com"
|
||||
# You will be given your own Tracking ID for this domain
|
||||
# Go to http://tiddlywiki.com -- open the More/System tab and drag the links to these three tiddlers across to a local copy of your site:
|
||||
#* [[$:/GoogleAnalyticsDomain]]
|
||||
#* [[$:/GoogleAnalyticsAccount]]
|
||||
#* [[$:/plugins/tiddlywiki/googleanalytics]]
|
||||
# Edit the first two of these tiddlers to reflect your Domain and Tracking ID
|
||||
# Upload the new version to TiddlySpot or other web host
|
||||
# Return to your Google Analytics page to check that your site is being tracked
|
||||
# Enter the URL of your hosting domain, might be a TiddlySpot one for example "mysite.tiddlyspot.com" or even a github.io or gitlab.io url
|
||||
# You will be given your own Tracking ID for this domain `UA-XXXXXX-XX`
|
||||
|
||||
!! Install the plugin on your local copy of the tiddlywiki
|
||||
|
||||
# ''BACKUP your tiddlywiki''. Just in case.
|
||||
# grab a copy of the plugin [[$:/plugins/tiddlywiki/googleanalytics]] from a wiki containing it like http://tiddlywiki.com to yours
|
||||
# save the tiddlywiki, refresh the page to load the plugin
|
||||
# in your tiddlywiki, go to [[$:/ControlPanel]] > Plugins tab. Unfold the Google Analytics box.
|
||||
# go to //settings// tabs and edit parameters : Google Analytics Account and Google Analytics Domain
|
||||
# save the tiddlywiki
|
||||
|
||||
!! Upload the new version of your tiddlywiki
|
||||
|
||||
# Upload the saved tiddlywiki to TiddlySpot, github, gitlab or other web host
|
||||
# Return to your Google Analytics page to check that your site is being tracked
|
||||
|
||||
Reference in New Issue
Block a user