google analytics event for loop formation

fixes #2170 by adding a GA event for tracking when data loops are formed.