VE-1680: Tracking for inserting gallery

Tracking for gallery insertion was only being captured on the logic path for inserting the new style of gallery. I've moved the logic so that it is always tracked despite the gallery format.