Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: chrome/common/extensions/docs/examples/tutorials/analytics/analytics.js

Issue 9212044: Improving `content_security_policy` documentation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Meggin's feedback. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /**
2 * Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
3 * source code is governed by a BSD-style license that can be found in the
4 * LICENSE file.
5 *
6 * Below is a modified version of the Google Analytics asynchronous tracking
7 * code snippet. It has been modified to pull the HTTPS version of ga.js
8 * instead of the default HTTP version. It is recommended that you use this
9 * snippet instead of the standard tracking snippet provided when setting up
10 * a Google Analytics account.
11 *
12 * See http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html
13 * for information on how to use the asynchronous tracking API.
14 *
15 * If you wish to use this file in your own extension, replace UA-12026369-1
16 * with your own Google Analytics account number. Note that the default code
17 * will automatically track a page view for any page this file is included in.
18 *
19 * When including this file in your code, the best practice is to insert the
20 * <script src="analytics.js"></script> include at the top of the <body>
21 * section of your pages, after the opening <body> tag.
22 */
23
24 var _gaq = _gaq || [];
25 _gaq.push(['_setAccount', 'UA-12026369-1']);
26 _gaq.push(['_trackPageview']);
27
28 (function() {
29 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.asy nc = true;
30 ga.src = 'https://ssl.google-analytics.com/ga.js';
31 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore( ga, s);
32 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698