ushahidi / tenfour

API For TenFour
MIT License
7 stars 3 forks source link

Implement Google Analytics on TenFour #128

Open CeciliaHinga opened 5 years ago

CeciliaHinga commented 5 years ago

From tenfour-archive created by caharding: ushahidi/tenfour-archive#1186

We have Google Analytics on our website right now but need to add it into the app as well so that we can analyze behavior across pages.

The last two requirements require some customization of the segment embedding code. Recommend to wait until Ionic app transition before implementing.

CeciliaHinga commented 5 years ago

@mackers I've given you access to google analytics. Can you check this is working?

I think you should use a single tracking ID for the website and the app. Then I think you'll want to set up views and filters to make the data useful

I think I followed the 'Set up reporting views and add filters' section in this article https://support.google.com/analytics/answer/1034342?hl=en

Basically you want a couple of views:

  1. reconfigured so that reports include domain in the request URI
  2. Another filtered to show just traffic to the website (not the app)
  3. Probably keep the original showing ALL data so you can track transitions from the website to the app.

If you try to set up tracking funnels it should become apparent if you have the data you need or not.

CeciliaHinga commented 5 years ago

Thanks @rjmackay. I think I also need access to global account filters.

CeciliaHinga commented 5 years ago

I've configured this on Segment.

I don't have access to our Google Analytics so I can't test if it's working.

CeciliaHinga commented 5 years ago

@mackers fixed I think?

CeciliaHinga commented 5 years ago

@mackers can you turn on IP anonymization for TenFour? https://support.google.com/analytics/answer/2763052?hl=en

CeciliaHinga commented 5 years ago

@rjmackay Thanks, have access now.

I have updated the issue with all requirements.