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

Side by Side Diff: server/analytics/doc.go

Issue 2248893002: Settings page for analytics ID (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: y Created 4 years, 3 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
« no previous file with comments | « server/analytics/analytics.go ('k') | server/analytics/settings.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file.
4
5 // Package analytics provides a standard way to store the Google Analytics
6 // tracking ID.
7 //
8 // Usage Example
9 //
10 // This analytics package provides a convenient way to configure an analytics
11 // ID for an app. To use, just call analytics.ID(c) and inject that ID
12 // into a template.
13 //
14 // import (
15 // ...
16 // "github.com/luci/luci-go/server/analytics"
17 // ...
18 // )
19 //
20 // func myHandler(c context.Context, rw http.ResponseWriter, r *http.Request, p httprouter.Params) {
21 // ...
22 // return templates.Args{
23 // "Analytics": analytics.Snippet(c),
24 // }
25 // }
26 //
27 // And in the base html:
28 //
29 // {{ .Analytics }}
30 package analytics
OLDNEW
« no previous file with comments | « server/analytics/analytics.go ('k') | server/analytics/settings.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698