2013-10-10

I'm currently working on a custom implementation of the Google Analytics measurement protocol in Apache Flex, and am having an issue with visit durations.

Currently, the initial page-view is tracked in the HTML containing the flex app using the standard ga.js code. As stated earlier, the application tracks custom events with custom actionscript code using the measurement protocol.

The issue is that a large portion of site visits are incredibly short, and we know that this is not accurate. My guess is that while events are being tracked properly, they are not being correctly related to the visit session that they are created in.

Should I be grabbing the _utmb value of the ga.js generated cookie and sending that via my measurement protocol code? Is my hypothesis even remotely correct?

Show more