Analytics Events - pressden/emma GitHub Wiki

We track a variety of common events, and fire off analytics payloads to Google Analytics and Facebook Pixel (coming soon). Here's a list of the current events:

Email Address Link Click

All links that start with mailto:

Google Analytics

  • Category: Contact
  • Action: Email Address Click
  • Label: [email address]

Facebook Pixel

  • Event Name: Contact
  • Content Category: Email Address Click
  • Content Name: [email address]

Phone Number Link Click

All links that start with tel:

Google Analytics

  • Category: Contact
  • Action: Phone Number Click
  • Label: [phone number] (whatever is in the link after the tel:)

Facebook Pixel

  • Event Name: Contact
  • Content Category: Phone Number Click
  • Content Name: [phone number] (whatever is in the link after the tel:)

NinjaForm Submission

Google Analytics

  • Category: Contact
  • Action: Form Submission
  • Label: [Form ID]

Facebook Pixel

  • Event Name: Contact
  • Content Category: Form Submission
  • Content Name: [Form ID]

MailChimp Subscription

Tests for normal form submissions (not AJAX ones) with the action submitting to a URL containing list-manage (which is the domain that MailChimp uses to process posted subscriptions). Embedding one of the MailChimp-generated normal sign-up forms (not their popup form) will trigger this event.

Google Analytics

  • Category: Newsletter
  • Action: Subscription
  • Label: [Form ID]

Facebook Pixel

  • Event Name: CompleteRegistration
  • Content Category: Newsletter
  • Content Name: [Form ID]

File Download

By default, fires when links with the following file extensions are clicked: doc, docx, exe, js, pdf, ppt, pptx, tgz, zip, xls, xlsx

Google Analytics

  • Category: File
  • Action: Download
  • Label: [Filename]

Facebook Pixel

  • Event Name: ViewContent
  • Content Category: Download
  • Content Name: [Filename]