The solution works with SharePoint 2010 and 2013.
Why this is not an App? The solution uses a special behavior of features so that the master pages or other pages haven’t to be modified. Unfortunately that’s not possible with an app. The following app looks as it's modifying the pages, it's another way to solve the issue: http://officepreview.microsoft.com/en-us/store/web-analytics-integration-WA103045499.aspx?redir=0
- Open your SharePoint 2013 site collection or your public website
Rename the URL in the browser (Login as needed with a site collection administrator / your admin account):
Current URL: http://www.fiechter.eu/about-us
Rename to: http://www.fiechter.eu/_catalogs/solutions
Note: Somehow Microsoft has removed the possibility to show the sandbox solutions folder from the UI in public websites. Anyway as they are using it for design packages and website templates, I assume there will be no difficulties with no-code sandbox solutions.
Select Upload Solution
Click Open and OK to upload the solution.
Select Activate to install the solution.
- Now, verify the activation was successfully
Finally you have to add your Google Analytics code. For that you can open Site Settings:
There is a new menu entry point under Site Collection Administration which is called Google Analytics
- Paste the google analytics code into the red square and press OK. That's it.
To test if it works as expected, just open the website in a different browser and take a look on the html source. If your Google Analytics code is there, then everything is fine.
If you are unhappy with the solution, then just deactivate the sandbox solution over the same URL. As there is no modification on existing sites done, your site will work as before.