-[GANCustomVariableBuffer retain]: message sent to deallocated instance
This error occurs with Google Analytics for iOS - GANTracker.
The error occurs when setting a custom variable after deploying a TrackEvent method. The solution is to set the custom variable first and then issue a track event method. The reason is because the variable gets transmitted along with the track event. If you set the custom variable up first, then track event
So:
call setCustomVariableAtIndex
then trackEvent
And not in the other order.
