Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Google Analytics support with custom events #68

Open
davidheyman opened this issue Jan 29, 2020 · 4 comments
Open

Add Google Analytics support with custom events #68

davidheyman opened this issue Jan 29, 2020 · 4 comments
Assignees

Comments

@davidheyman
Copy link
Member

  • Custom events can track any user behavior requested by TransitCenter including MSAs selected and indicators selected
@davidheyman
Copy link
Member Author

Here's the list of events to track:

  • Indicator selected
  • MSA selected
  • Years changed

The category for each event will be 'data' and the action for each will be 'selected'. Then the label should be 'indicator' / 'year' / 'msa' and the value should be the selected value.

@davidheyman davidheyman self-assigned this May 8, 2020
awoodruff pushed a commit that referenced this issue May 11, 2020
@awoodruff
Copy link
Member

I've added these event functions though I don't know if they're actually doing anything. Is there a decent way to test?

In general it is only sending them when something changes; so for example when you first enter MSA mode it will send the selected MSA but not the census indicator because it's still the default one, which the user didn't actually choose.

@davidheyman
Copy link
Member Author

At the moment, I think there's a configuration issue with the ga variable. I can't switch to regional mode because that's throwing an error.

@awoodruff
Copy link
Member

Do you have the error it's throwing? It hasn't been causing that kind of issue for me, so far.

awoodruff pushed a commit that referenced this issue May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants