2010/8/4 John-Scott Atlakson <[email protected]> > > Satchmo 'tip' uses the latest async code snippet from Google. > > However, Google seems to change their recommendation of where to place this > snippet without necessarily announcing it. > > Currently they recommend placing the snippet just before the closing > </head> tag [1]. > > From a cursory search of the current tip of Satchmo, this snippet is > inserted into satchmo_store/shop/templates/shop/base.html just before the > closing </body> tag [2]. I'm nearly 100% confident that this was the > recommended location previously. But as mentioned, Google seems to randomly > change this recommendation without explanation. They have their own reasons, > based on incredible volumes of data, so I'm not inclined to argue with them. > > However, to the OP's point, using the async snippet should/will reduce page > load times without affecting your current tracking, so you should upgrade > your snippet. I do not use Satchmo as an all-in-one solution, it's always > integrated with a proper Django project, so I do not rely on the built in > templates very much. As such, I cannot speak to any issues you might have > upgrading your particular installation. > > Cheers,
I'm sure that async was to put on header also some months ago, when it was still a beta feature and not the main js code for stats. Surely ga.js has to be included just before body end. I think Satchmo integration of google analytics is not standard, because it track orders data. If you tell me that it's simply a matter of change the code included as this code: http://bitbucket.org/chris1610/satchmo/changeset/e94bae47e14f and the checkout process does the rest of tracking without problems, it needs only to be splitten in two parts, one for urchin in the bottom (with an if to check if urchin is used) and one before head closing, for async mode. -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
