I am considering attaching onclick events to internal links on my site to do some Google Analytics event tracking. But I am concerned about performance. My understanding is that the workflow will change:
- User clicks on hyperlink
- A call is made to Google Analytics to send event tracking data
- Browser waits for response from GA server
- Browser follows the link and opens the new page.
I am concerned about the delay introduced by steps 2 and 3. So the questions are:
- Is my understanding of the flow correct?
- What's the typical delay (in milliseconds) that the call to GA event tracking introduces?