Using the datariot:ganalytics plugin, very confused as to how to setup the settings.json/meteor.settings file


I’ve read the section on the docs and still just dont understand. How exactly to I set Meteor.settings to this json file? I can’t do it on deploy because I need to bundle for production.


In development
meteor --settings pathtosettings.json

Deploying to
meteor deploy --settings pathtosettings.json

In production, use the environment variable METEOR_SETTINGS
METEOR_SETTINGS="$(cat pathtosettings.json)"

EventedMind walkthrough: