Comments on: Non-Blocking Google Analytics Integration http://925html.com/code/non-blocking-google-analytics-integration/ For those of us who work with the web daily. Sun, 16 Jan 2011 12:41:12 +0000 hourly 1 http://wordpress.org/?v=3.0.4 By: Andrew Ingram http://925html.com/code/non-blocking-google-analytics-integration/comment-page-1/#comment-183 Andrew Ingram Mon, 20 Apr 2009 21:05:22 +0000 http://925html.com/?p=12#comment-183 that sounds great, I look forward to it! that sounds great, I look forward to it!

]]>
By: Eric Ferraiuolo http://925html.com/code/non-blocking-google-analytics-integration/comment-page-1/#comment-182 Eric Ferraiuolo Mon, 20 Apr 2009 20:19:27 +0000 http://925html.com/?p=12#comment-182 <strong>@Andrew</strong> I could imagine implementing a generic method on my script which you'd pass a <a href="http://code.google.com/apis/analytics/docs/gaJS/gaJSApi.html" rel="nofollow">Google Analytics API</a> method name and the arguments you'd want to pass to that method. This would require some re-work of the queue's storage and emptying. I'll look into implementing this next time I do a round of coding on this script. I'll ping you if I come up with something that seems like it would be useful to you. @Andrew I could imagine implementing a generic method on my script which you’d pass a Google Analytics API method name and the arguments you’d want to pass to that method. This would require some re-work of the queue’s storage and emptying.

I’ll look into implementing this next time I do a round of coding on this script. I’ll ping you if I come up with something that seems like it would be useful to you.

]]>
By: Andrew Ingram http://925html.com/code/non-blocking-google-analytics-integration/comment-page-1/#comment-181 Andrew Ingram Mon, 20 Apr 2009 20:07:19 +0000 http://925html.com/?p=12#comment-181 Looks good, but it seems to only exposes the track functionality. We have a very integrated GA setup with ecommerce tracking and events which required method calls inaccessible through this script. Is there some way to expose the whole API but still queue the method calls until after GA.js has fully loaded? Looks good, but it seems to only exposes the track functionality. We have a very integrated GA setup with ecommerce tracking and events which required method calls inaccessible through this script.

Is there some way to expose the whole API but still queue the method calls until after GA.js has fully loaded?

]]>
By: Eric Ferraiuolo http://925html.com/code/non-blocking-google-analytics-integration/comment-page-1/#comment-63 Eric Ferraiuolo Fri, 13 Mar 2009 17:44:03 +0000 http://925html.com/?p=12#comment-63 @Alex You're correct, that would be the intended usage. By assigning your var to the result of calling config you're insured that queuing will work as expected.<br /><br /><br />Let me know if anything comes up during your integration. @Alex You're correct, that would be the intended usage. By assigning your var to the result of calling config you're insured that queuing will work as expected.

Let me know if anything comes up during your integration.

]]>
By: Alex http://925html.com/code/non-blocking-google-analytics-integration/comment-page-1/#comment-62 Alex Fri, 13 Mar 2009 11:14:09 +0000 http://925html.com/?p=12#comment-62 Thanks for this code. I would really like to use this in our site to track ajax calls. Just one question: can I assign the "ga().config({ id:'UA-xxxxxxx-x' });" part to a variable in the main template and then call "variable_name.track('ajax_url');" in other places without breaking queuing? Thanks for this code. I would really like to use this in our site to track ajax calls. Just one question: can I assign the "ga().config({ id:'UA-xxxxxxx-x' });" part to a variable in the main template and then call "variable_name.track('ajax_url');" in other places without breaking queuing?

]]>
By: 925 HTML » Blog Archive » Using Google’s Ajax APIs http://925html.com/code/non-blocking-google-analytics-integration/comment-page-1/#comment-5 925 HTML » Blog Archive » Using Google’s Ajax APIs Wed, 12 Nov 2008 21:14:52 +0000 http://925html.com/?p=12#comment-5 [...] Google has an asynchronous loading tool, google.load , which is used to load the code of APIs and Libraries. Asynchronous loading of additional JavaScript files is really important for the page’s DOM to be ready as quickly as possible (the reason I created a way to load Google Analytics asynchronously). [...] [...] Google has an asynchronous loading tool, google.load , which is used to load the code of APIs and Libraries. Asynchronous loading of additional JavaScript files is really important for the page’s DOM to be ready as quickly as possible (the reason I created a way to load Google Analytics asynchronously). [...]

]]>