Mobile Menu

Menu

Analytics 1 min read By HOX Media

Name events so they survive the redesign

Track what the visitor did, not which button they pressed. The button will change; the intent will not.

Tracking set up around a page's markup breaks the day the page is rebuilt, and nobody notices for a month. Name events for the action instead and the redesign cannot touch them.

A naming scheme

Object, then action, in plain words: lead_form_submit, quote_request_start, phone_number_click. Not button_3_click or hero_cta. Put the location in a parameter, not the name, so one event can be compared across pages.

Own the list

  • Keep one document of every event, what fires it and what it is for.
  • Fire events from the code, not from click selectors in a tag manager, wherever you can.
  • Check the list against reality once a quarter; dead events are noise.

Keep reading

More in Analytics

All Analytics tips