File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,19 @@ extra:
179179 twitter: 'my-twitter-handle'
180180` ` `
181181
182+ # ## Google Analytics integration
183+
184+ Material makes it easy to integrate site tracking with Google Analytics.
185+ Besides basic tracking, clicks on all outgoing links can be tracked, clicks on
186+ the download and star button, as well as how site search is used. Tracking can
187+ be activated in your project's `mkdocs.yml` :
188+
189+ ` ` ` yaml
190+ google_analytics:
191+ - 'UA-XXXXXXXX-X'
192+ - 'auto'
193+ ` ` `
194+
182195# ## More advanced customization
183196
184197If you want to change the general appearance of the Material theme, see
@@ -294,6 +307,11 @@ extra:
294307 github: 'my-github-handle'
295308 twitter: 'my-twitter-handle'
296309
310+ # Google Analytics
311+ google_analytics:
312+ - 'UA-XXXXXXXX-X'
313+ - 'auto'
314+
297315# Extensions
298316markdown_extensions:
299317 - codehilite(css_class=code)
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ theme: 'material'
4141 the screen is too small and well-defined print styles.
4242
4343- Extra configuration options like a [project logo][], links to the authors
44- [GitHub and Twitter accounts][] and display of the amount of stars the
45- project has on GitHub.
44+ [GitHub and Twitter accounts][], display of the amount of stars the
45+ project has on GitHub and [Google Analytics integration][] .
4646
4747- Easily [extendable and customizable][] due to a well-designed asset pipeline
4848 built on-top of [Gulp][] with ` npm` and `bower` and modular and abstracted
@@ -60,6 +60,7 @@ it up and running.
6060[project logo] : getting-started.md#adding-a-logo
6161[easily customizable color palette] : getting-started.md#changing-the-color-palette
6262[GitHub and Twitter accounts] : getting-started.md#adding-a-github-and-twitter-account
63+ [Google Analytics integration] : getting-started.md#google-analytics-integration
6364[extendable and customizable] : customization.md
6465[Gulp] : http://gulpjs.com
6566[SASS] : http://sass-lang.com
You can’t perform that action at this time.
0 commit comments