Setting the Google Analytics ID
by 1999.io Wednesday, August 10, 2016

New in v0.90p.

If you use Google Analytics, now you can have it use your account ID to monitor hits to your blog. You can also set the default for all sites hosted on your server. 

For users

  1. If you've got a site on my.1999.io and want to change the Google Analytics ID, 
  2. Choose Settings from the System menu, at the right edge of the menu bar.
  3. Click on the Misc tab.
  4. Enter your Google Analytics user ID in the entry box. Screen shot.
  5. Click OK.

To test, edit a post, save it, then visit the rendered page. It should now show up on your Google Analytics dashboard. 

For server admins

Add a new element to the config.json file for your server with the Google Analytics ID you want to be the default for sites hosted on your 1999.io server. 

The ID should be here:  homePage.googleAnalyticsAccount.

Here's an example config.json that contains the new element.

After saving, be sure to reboot your server. It only reads config.json at startup.

To test, reload the home page of your server to reload the 1999.io editor, then publish a page. Visit it. It should show up in your Google Analytics dashboard.

Your users will be able to override your choice by entering a different ID in their Settings dialog, as explained above.