Live data from Hacker News

Google Analytics for developers

blog.arkency.com

21–30 of 45 posts

Re: Google Analytics for developers

#21

Perhaps I'm confused but what benefit do you get from using event tracking for an outbound click, and lastly what does ET have to do with real time? Thanks

If gives you more context around an exit to your site, ie someone didn't just hit back or close their browser, they left your site via a means you provided, and this is where they went

Re: Google Analytics for developers

#23
If you want to track if people are reading your blog, you can use the onscroll javascript event that fires events into Google Analytics. (eg: http://cutroni.com/blog/2012/02/21/advanced-content-tracking...)

By looking at time to scroll, time to the end of the blog post, and comparing that to the number of unique page views per visit, you can tell if your content is engaging.

Re: Google Analytics for developers

#24
Is anyone using GA to track mobile apps? The mobile SDKs shows a lot of potential until you start wondering about offline usage, GA being a website tracker first. I couldn't find any final answers but from what I can see it might be a sore point: the SDK docs dodge the topic [1] and I see complaints, ie events can be batched for later but get the timestamps of when they were uploaded, instead of when they happened [2,3,4].

[1] https://www.google.com/search?q=site:https://developers.goog...

[2] http://stackoverflow.com/questions/6618719/how-does-google-a...

[3] http://stackoverflow.com/questions/4484748/what-happens-with...

[4] http://productforums.google.com/forum/#!msg/analytics/132Eet...

Re: Google Analytics for developers

#25

How can you see individual user sessions using Google Analytics? In other words, how can I see, for an individual visitor, their landing page, sequence of subsequent page views, and finally their exit page?

Generally you should be paying attention to trends, not individual users. Either way:

Landing pages: Go to Content > Site Content > Landing Pages

What you probably want is to create an advanced segment: Landing page = something. You can use regex or an exact match term.

Then go to audience > visitor flow, select the advanced segment you used and you can visually see how users navigated your site.

Remember: Keep in mind that a user can technically visit your site using browser tabs. That would give you a report where people went from page A to page B even if there isn't a link on page A going to page B.

Hence: Use GA to gain insight into trends.

Re: Google Analytics for developers

#26

Here are two of my favorite tricks. You can do this just after you set your account ID: var _gaq = _gaq || []; _gaq.push(['_setAccount', 'YOUR ANALYTICS ID GOES HERE']); _gaq.push(['_trackPageview']); //******************* // Trick #1: Track page load time in Google Analytics // (note: only works for HTML5 browsers) //******************* _gaq.push(['_trackPageLoadTime']); (function() { var ga = document.createElement…

_trackPageLoadTime is deprecated. It's already enabled by default, so you don't need that line.

Place this stuff in the head tag rather than the bottom. It's async code and placing it closer to the top you can make sure you're setting up tracking the page as soon as possible.

Re: Google Analytics for developers

#27
Those are some good basics.

Tracking user actions can be very useful: I use it on movieterminals.com to see everything that gets typed into each console. The theory being that (one day?) I'll use that to enhance the scripts to work how people expect.

Tracking an event per page 404 or 500 can also be very helpful. If you aren't already using something more robust to track errors you could even setup alerts to watch for those events and contact you.

Goals are good, although funnels are even better.

Finally: if you can afford it I've found that Clicky offers many great advantages over google analytics. More helpful default reports, a better realtime view, etc.

Re: Google Analytics for developers

#28

Here are two of my favorite tricks. You can do this just after you set your account ID: var _gaq = _gaq || []; _gaq.push(['_setAccount', 'YOUR ANALYTICS ID GOES HERE']); _gaq.push(['_trackPageview']); //******************* // Trick #1: Track page load time in Google Analytics // (note: only works for HTML5 browsers) //******************* _gaq.push(['_trackPageLoadTime']); (function() { var ga = document.createElement…

As others have noted, _trackPageLoadTime is depreciated.

However, Google Analytics only automatically samples the page load time for 1% of visitors.

To change this call

_gaq.push([‘_setSiteSpeedSampleRate’, 100]);

before tracking the pageview. This will sample 100% of users for the site load time.

https://developers.google.com/analytics/devguides/collection...

Re: Google Analytics for developers

#29
At the risk of going off topic, a question about sampling and sampling rates. If I set sampling to 1%, will the visitor totals in the Google Analytics dashboards reflect 1% of my true values or do they compensate/extrapolate out to 100% based on the sampling rate?

Re: Google Analytics for developers

#30
post #24

Is anyone using GA to track mobile apps? The mobile SDKs shows a lot of potential until you start wondering about offline usage, GA being a website tracker first. I couldn't find any final answers but from what I can see it might be a sore point: the SDK docs dodge the topic [1] and I see complaints, ie events can be batched for later but get the timestamps of when they were uploaded, instead of when they happened [2…

We are using GA to track mobile apps. The local queuing and dispatch of hits to GA is covered here[1]. We've found it to be pretty reliable. You can also modify the dispatch time for testing, etc.

[1]https://developers.google.com/analytics/devguides/collection...

Post reply on HN