Google Analytics is the enterprise-class web analytics solution that gives you rich insights into your website traffic and marketing effectiveness. Powerful, flexible and easy-to-use features now let you see and analyze your traffic data in an entirely new way.
Before we can go any further, you will need to create a free account with Google Analytics to get the script to paste into your store!
[alert_yellow]Get a free account now![/alert_yellow]
Ok, now that you have signed up we will want to login to your Yahoo! Store editor and add a variable!
Store Manager >> Store Editor >> Variables
Once you have made it to the “Variables” page you will want to click on the “Define New Variable” button located on the top of the page.
For the name “Google-analytics” without the quotes.
For the type “big-text”.
Ok, the Google Analytics big text field is set for use now. Let go ahead and hit that “update” button on the top left side of the page before the time-out occurs on you!
Now we should be back on the front page of your site in the Store Editor still! Let go ahead and add the RTML to the template that is needed to get the Google Analytics script to work.
Click on the template – or your default store template name link on the tool bar.
Now inside your default page template click on the first RTML word that shows up in blue. Now, click the new button up top on the tool bar and select “TEXT” in the long list of complexes there! Click create and than it will redirect you to template again. On the top tool bar you will want to click the “paste after” button, and than the edit button after the “paste after” button is no longer clickable. In the “TEXT” arg field you will need to type “@google-analytics” without the quotes again like the picture shows below! Now click the update button.

Now that we have the TEXT @google-analytics in place we will need to add the script into this text field in the variables! First we will need to grab your code from Google Analytics.
- Log in to Google Analytics at http://www.google.com/analytics
- From the Overview page, select the account that has the profile for the tracking code you’re looking for, as the code is profile-specific.
- Select the profile from the accounts Overview page.
- From that profile’s Actions column, click Edit
- At the top right of the ‘Main Website Profile Information’ box, click Check Status
- Your tracking code can be copied and pasted from the text box in the Instructions for adding tracking section
Now that you have your Google Analytics on your clip board ready to be pasted. Lets go to your Variables page again to paste it!
Store Manager >> Store Editor >> Variables
Now in the Variables page scroll down until you see the google-analytics big text field and copy and paste the script in the to text field!
Once, you have the script in the right place you will need to click the update button on the top left hand side of the page!
This should be it! Once you complete this it should take a couple of days before you will see any results , but be sure to look at all the features that Google Analytics has to offer on your account there!
...
View all articles by Adam