Tips Tricks, Traps and Tools: # 3b of many: The Art of Troubleshooting almost Anything

The technical activity of Debugging and Troubleshooting is an art, in much the same way as painting, whether by natural ability or by numbers. One either has the knack, goes madly off in all direction or has methods in their madness. As artists go, I have acquired a method.

Many problems of the digital variety are breaks in the planned sequence of events from the beginning to the very end of a process. Obvious? Yes, in word but not in deed.

It’s much like a simple electric circuit: Why after flicking the switch is it still lights out?

It’s all in the mind … :

The psychology of debugging is both extremely interesting and instructive….

I discovered it on a collaboration programming listserv group focused on troubleshooting. One type of programmer would succinctly and logically set out the details of how the problem arose, a description of the environment in which it occurred, the precise spot where it occurred and question being asked. The 2nd group’s emails were even more succinct: ‘HELP!!!’

In working with and mentoring programmers one-on-one, and being one, I also learned that programmers’ regular personalities had little connection with their debugging personality. The most logical, methodical programmers fell randomly into either debugging personality group and vice versa.

But how can this “National Enquirer”-level psycho-thesis help us troubleshoot anything?

Well, by amazing grace, it helped a wretch like me recognize that I belonged in the ‘HELP!!!’ Anonymous Group, acknowledge it and change my ways.

If you are in the sober group, you need not attend ‘HELP!!!’ Anonymous meetings, but you will benefit from being conscious of the approach that comes naturally to you.

It’s all about the sequence of events.

Psychologically, follow the 5-step HA program. After Acknowledgment comes Step Back, Settle Down (if necessary, with a whiskey), Know The Sequence and Focus on The Sequence of Events.

Ask where on that continuum can the problem can occur. It might be easier to ask where in the sequence can it not occur.

If one cannot do that, one needs to know more about the sequence. If one does not have the time to do it, it’s probably more necessary than ever to do so. Do you have the time to not do it?

I won’t foam at the mouth soap-boxing against hacking … on one condition: hacking attempts, by definition, don’t always work but they must, at least, contribute to determining the sequence and where the problem might lie within it. If not, hacking will blow the budget going around in circles. Despite our analogy, the sequence is generally not a circuit but a straight line.

Some examples:

  1. If you’re getting a Server error (E.g. HTTP 500) — if you are pointing to the correct server, it is not a connection problem — you must have already connected to the server to get the server error.
  2. If, in GA, you see the goal page in the top content report, it’s not an include or exclude filter problem preventing the goal from being recorded
  3. Check out Quick Diagnostics for different type of problem but with a similar approach. There, the problem is the creation of a 2nd set of cookies during a visit and the sequence is the visit.
  4. I’d like to make my posts more engaging so please leave a comment if you didn’t get to this paragraph in the post!

Sample Sequence:

As regards GA, here is a sequence of events that will help troubleshoot many problems.

  1. The first page of a visit loads
  2. Ga.js is downloaded
  3. The _gat object is instantiated with the Web Property ID (‘UA-NNNNNN-NN’) (var pageTracker = _gat._getTracker(“UA-NNNNNN-N”);
  4. _trackPageview() is called
  5. GA cookies are created or those that already exist are updated as required
  6. _trackPageview() completes by sending the _gif request to GA
  7. GA receives the data
  8. For each profile:
    1. GA strips the profile’s unwanted query parameters
    2. GA processes internal search terms
    3. Applies the profile’s filters in order, determining whether to include or exclude the gif request’s data from the profile
  9. GA reports the page level data (which could be a pageView, transaction, item or event)
  10. GA processes the visit level data after the end of the visit (I suspect some visit based data may be processed during the visit, e.g. goal pages — it should not need to wait for the end of a visit to know a goal has been achieved)

Here’s to Happy Debugging

It takes some practice but the results are almost always rewarding. I’ve been debugging dry for some years now.

Cardinal Path

Share
Published by
Cardinal Path

Recent Posts

Google Delays Third-Party Cookie Deprecation to 2025

Google announced on April 23 that it will again delay third-party cookie deprecation (3PCD) in…

3 days ago

Understanding Funnel Reports in GA4

Funnel reports have long been one of the most actionable reports in a marketing analyst’s…

5 days ago

GA4 Monetization Reports: An Overview

GA4’s Monetization reports provide organizations with simple but actionable views into the revenue-generating aspects of…

1 week ago

This website uses cookies.