hackforla / website

Hack for LA's website
https://www.hackforla.org
GNU General Public License v2.0
325 stars 759 forks source link

Setup Google Analytics on website #503

Closed harishlingam closed 3 years ago

harishlingam commented 4 years ago

Overview

Setup Google Analytics on website. This includes implementation of code snippets, deciding on metrics to track, and set up of the dashboard.

Repeated visits to the various sections of the website will skew dashboard data and impede the team's ability to get an accurate picture of user behavior. GA provides a mechanism to exclude individual IP addresses from data collection. See instructions below.

Action Items

Resources/Instructions

Google Analytics

Exclude IP address instructions: https://support.google.com/analytics/answer/1034840?hl=en

GA account setup: https://support.google.com/analytics/answer/1008015?hl=en Tag setup: https://support.google.com/analytics/answer/1008080

Matomo https://matomo.org https://github.com/matomo-org/matomo/issues/13016

harishlingam commented 4 years ago

@wesrowe It turns out that Hotjar's free tier caps users at 3 funnels and doesn't allow page-specific recordings (only the default home page). Can Google Analytics service our needs entirely? If not, I looked into Mixpanel and their free tier appears to be more generous, including funnels and recordings by segment. Also, do we already have a Google Analytics account set up, or do we need to create one?

wesrowe commented 4 years ago

@harishlingam I don't believe there is a GA account already for the HfLA website. Might as well created a new one. As for hotjar -- honestly, for the use cases I'm aware of GA would be adequate for understanding user behavior on our site. Recordings are typically useful at the margins, and we're not there yet. GA would be good to focus on as a next step.

harishlingam commented 4 years ago

@wesrowe That makes sense Wes. A new member of our team suggested looking at Matomo, an open-source GA alternative: https://matomo.org/get-matomo/, but the advantages it offers don't appear to be relevant to us. I will bring up getting GA set up in our next meeting.

harishlingam commented 4 years ago

Google Analytics code snippet:

harishlingam commented 4 years ago

A Google Analytics account has been created for HFLA under the webadmin@hackforla.org account. The GA snippet is to be pasted as the first item into the HEAD tag of every page we want to track.

ExperimentsInHonesty commented 4 years ago

Remove full story and replace with GA code https://github.com/hackforla/website/issues/503#issuecomment-633163692

ExperimentsInHonesty commented 4 years ago

If stable, next week, exclude these ips from GA Bonnie: 107.184.87.14 CNK: 66.215.74.250 - same 6/14 Yuiko: 172.91.110.17 Stella: 47.136.122.181 Susan: 
24.24.137.226 Ruben: 172.113.122.208 Danielle: 104.175.48.39 Josh B: 76.168.134.2 


harishlingam commented 4 years ago

@wesrowe

View: I have created a View titled "Master View." In the event something goes awry, the administrator can revert to the Master View to restore all reporting.

Acquisition Report: Under All Traffic > channels, I have added a Secondary dimension of Source/Medium. This will likely be a preferred view, until such time when UTM parameters are set, in which case the Source/Medium view would be preferred.

Conversions Report: I have created conversion goals for all major pages, buttons, and social media links currently found on the website. Please add/remove conversion goals as a better picture emerges about what to track/not track.

harishlingam commented 4 years ago

At some point in the future, UTM tracking may be useful to track incoming traffic sources to the website. This requires the use of UTM URLs. For example, if the team wanted to measure the number of visitors arriving at the home page from the Hack for LA Facebook page, UTM tags would serve this purpose.

UTM tags fall into one of four categories: (1) Where is the traffic coming from? (2) What type of traffic is it? (3) What is the name of the marketing campaign you have created? (4) What is the name or code associated with your marketing content?

Google provides the following tool to build campaign URLs: https://ga-dev-tools.appspot.com/campaign-url-builder/

The tracking link generated by this tool is then pasted in your creative content (e.g. blog post, Facebook post, Instagram post, etc.). Anytime someone clicks this link, this activity is recorded by Google Analytics.

harishlingam commented 4 years ago

@ExperimentsInHonesty

The Google Analytics Dashboard may be incorporated into the HFLA Organizational Dashboard via Google Data Studio. I would recommend doing so once a clearer picture of most valuable data has emerged. This way, all analytics information is consolidated in one place.

harishlingam commented 4 years ago

It may be appropriate to have the incoming digital marketer or product manager build a guide page for Google Analytics. A skeleton outline of topics to cover is begun here: https://github.com/hackforla/website/wiki/Digital-Marketing-Overview

ExperimentsInHonesty commented 4 years ago

Do your IPs match? Yes or No answer. If no, please also provide new ip, so we can see if there is a pattern. @cnk @yuikomajima @leestella748 @ye-susan @ruben1s @DanielekPark

Last week's ips Bonnie: 107.184.87.14 - yes CNK: 66.215.74.250 - yes Yuiko: 172.91.110.17 - yes Stella: 47.136.122.181 - 47.136.122.53 - same as last week on the third check Susan: 
24.24.137.226 - yes Ruben: 172.113.122.208 - yes Danielle: 104.175.48.39 - yes Kian: 47.147.143.207 - yes Hannah: 192.168.86.35 - yes Eric: 98.184.221.144 Leo: 192.168.1.14

ExperimentsInHonesty commented 4 years ago

@harishlingam is there a reason to leave hotjar code on the website. Does it do anything that we are not going to do via GA?

Please mention @ye-susan in your reply

ExperimentsInHonesty commented 4 years ago

Will coordinate with ops team and potentially John Ritchey on GA configuration.

harishlingam commented 4 years ago
  1. Progress - Filters have been created for each of the above IP addresses.
  2. Blocks - None
  3. Availability - n/a
  4. ETA - n/a
harishlingam commented 4 years ago

To add/remove IP address filters, please see instructions here: https://support.google.com/analytics/answer/1034823

Steps: (1) Click the Gear icon -> (2) Under View select the drop down, then select "All Web Site Data" -> (3) Click on Filters

ExperimentsInHonesty commented 4 years ago

Find ga password for developer and move hotjar user/pass to secure folder

ExperimentsInHonesty commented 4 years ago

@harishlingam - sorry to bother you with this, but I have no idea where the Google Analytics password is. Do you?

ExperimentsInHonesty commented 4 years ago

@ExperimentsInHonesty will email @harishlingam to see if I can get credentials

alexandrastubbs commented 4 years ago

Log-in information spreadsheet has been added to HFLA Site team folder. GA log-in information is available there.

alexandrastubbs commented 4 years ago

We should create a guide for how to use GA on any project site. Good project for a special project coordinator.

Follow up with Bonnie on this.

alexandrastubbs commented 4 years ago

@harishlingam sorry to bother you again - in order to log-in to GA, there is a second layer of identification confirmation that involves a text message to the number on file. Would you be able to go in and change the phone number to mine? 201-572-1361. From there I can leave as is or change to whoever will be using the account the most. Let me know!

alexandrastubbs commented 4 years ago

@harishlingam disregard, Bonnie was able to help update settings. Thanks!

alexandrastubbs commented 4 years ago

Progress - Working on learning GA. Blocks - None Availability - n/a ETA - TBD, aiming for 8/16

alexandrastubbs commented 4 years ago

Added Hotjar log-in information to the Google Sheet for log-ins.

alexandrastubbs commented 4 years ago

Check status of this issue: https://github.com/hackforla/civic-opportunity/issues/35

alexandrastubbs commented 4 years ago

Progress: none yet Blocks: was moving this week Availability: some time this week to start digging in ETA: tbd, hoping to have a better idea of what needs to be done this week

Samhitha444 commented 2 weeks ago