-
-
Notifications
You must be signed in to change notification settings - Fork 360
As an admin I can add a Google Analytics ID #171
Comments
#44 holds some of the earlier conversation. |
Will this be done per chapter or per instance? |
It seems this would depend on the organization. For the MVP we may have talked about just 1 at the organization level. For post-MVP, perhaps both, where the organization can track stats on every page and an individual chapter can provide their own code to track only their own internal pages. On #44 we talked about the ability to drop in a Javascript snippet. Of course, there may be some security issues with that approach, so limiting the tracking to specific services and allowing people to drop in just their account ID at the organization or chapter levels might be the way to start. |
I agree we should just do this at the organization level. The organizer can always manually add other people in Google Analytics if they need to. |
To continue the note from the meeting where we said that the easiest way for people to setup the email credentials would be to just have them as a .env var. Since the MVP will mainly be hosted on Heroku it's dead simple to set them up in Heroku, so maybe we could just have a This will not only make it easier for us to develop (no need to add any code on the backend whatsoever), but also make it easier for people setting it up, because they could add Email credentials, google auth credentials and google analytics id in one place |
Sounds good. Since we're talking about post-MVP allowing for individual Chapters to track their own internal pages would we want to qualify this env variable a bit, like GOOGLE_ANALYTICS_ID_ORG ? |
We could do something like const id = process.env[`GOOGLE_ANALYTICS_ID_${CHAPTER_ID}`] || process.env.GOOGLE_ANALYTICS_ID;
if(id) {
render GA(id);
} |
I think when we get to the point of having chapter-specific tracking that we'd want to execute both codes. The organization will likely still want to see the overall stats, while the chapter would possibly have their own Analytics account that's independent of the organizations? So, that snippet is a reasonable example, but we can figure the right way to execute / track the interior pages against two Analytics accounts when the time comes. Thanks |
Yeah we can also do that. Also if we're doing that we can add chapter admins ability to do that from the dashboard (we can easily add that to the DB). But there could be some limitations with multiple codes on one page |
For our MVP, we should just use a single Google Analytics account for the entire instance, and add it as an environment variable in Heroku. We can leave this as a blank default environment variable in Heroku so people remember to configure it. |
No description provided.
The text was updated successfully, but these errors were encountered: