Where to Place the Code

Google Analytics Goes in the Header

Here at Web Design Solutions our primary goal is to help you be successful in your online ventures. Whether this is through industry tips, superior customer service, or quality website management for eCommerce, your satisfaction is of the utmost importance. Recently we posted an article explaining the importance of a Google Analytics account, and some basic information to get yours up and running.

Tracking Code In The Header Is Just Better

One of the most crucial steps in properly using your Google Analytics account is adding your tracking code into the template section of your site. The format for this widget code is {{google_tracker id='UA-XXXXXX-X'}}, with the X's being replaced with your unique UA number. With Web Shop Manager this is extremely easy, as you only need to enter it once instead of on each and every page. Previously we had instructed you to enter the code towards the bottom of the text on the page, right before the </body> tag. A recent article on Google, however, informs us that the most effective place to put it is near the top of the JavaScript code, in the <head> section. 

Further information on the topic can be found here, in the Google help article itself. If you find any of this hard to understand, or have any questions at all, please feel free to give us a call. We are always more than happy to assist you in any way we can!

By: Dana Nevins
  • Posted on   01/09/12 at 10:58:15 AM   by Alec  | 
  • RSS
  • |
  • More
Posted in News



Do you want to learn more?

Outpace your competition in 2017 with our eCommerce Success Guide featuring the latest trends and free marketing success tips.

Download Your Success Guide!