Skip to content

Analytics event tracking

Dave Kaplan edited this page Aug 13, 2019 · 7 revisions

We have these events as of this PR:

Interacting with a Feedback Test

  • event: formSubmission
  • formType: ${actionName} Feedback Test

${actionName} can be launch, close, or reopen.

Targeting an audience with a test

  • event: formSubmission
  • formType: Audience targeted with a test

Creating a Collection (of any kind)

  • event: formSubmission
  • formType: Create ${collectionType}

collectionType can be a Submission Box, Foamcore (Board), Test Collection, etc.

Collection <-- normal collection
Collection::SubmissionBox
Collection::Board
Collection::TestCollection

Creating an Item

  • event: formSubmission
  • formType: Create ${type},
  • parentType: this.props.parent.isBoard ? 'foamcore' : 'anywhere'

${type} will be one of the item types like Link, Text, etc.

Item::TextItem
Item::FileItem
Item::VideoItem
Item::LinkItem
Item::ExternalImageItem
Item::DataItem <-- data report
Item::QuestionItem <-- in a test collection

Creating an Audience

  • event: formSubmission
  • formType: Create Audience

Creating a Test Feedback Question

  • event: formSubmission
  • formType: Create ${ITEM_TYPES.QUESTION}

Adding a payment method

  • event: formSubmission
  • formType: Added Payment Method

GTM Preview Mode

Using "Preview" from GTM allows you to use the debugger to track your events and see how they are firing, as well as any tags that were triggered (or none):

Preview Mode in Chrome

Other information

Google Analytics vs reading from the database

  • While there are some queries we can write against the database to track user behavior, there are some fields google analytics provides that we aren't storing in postgres, such as location, ip, timestamp, etc.

Cross domain tracking for Ads

  • When traffic gets redirected from one host to another, ie: shape.space/signup to profile.ideo.com and vice-versa. TODO: How are we making sure that the whole flow is tracked from the source to its destination?

More in-app data reporting

Clone this wiki locally