-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b25806
commit 2b1617f
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Google Analytics sample for Google App Engine | ||
|
||
<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page=editor&open_in_editor=appengine-java8/analytics/README.md"> | ||
<img alt="Open in Cloud Shell" src ="http://gstatic.com/cloudssh/images/open-btn.png"></a> | ||
|
||
Integrating App Engine with Google Analytics. | ||
|
||
## Project setup, installation, and configuration | ||
|
||
- Register for [Google Analytics](http://www.google.com/analytics/), create | ||
an application, and get a tracking Id. | ||
- [Find your tracking Id](https://support.google.com/analytics/answer/1008080?hl=en) | ||
and set it as an environment variable in [`appengine-web.xml`](src/main/webapp/WEB-INF/appengine-web.xml). | ||
|
||
## Running locally | ||
This example uses the | ||
[Maven Cloud SDK based plugin](https://cloud.google.com/appengine/docs/java/tools/using-maven). | ||
To run this sample locally: | ||
|
||
$ mvn appengine:run | ||
|
||
## Deploying | ||
|
||
$ mvn appengine:deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,3 @@ | |
<env-var name="GA_TRACKING_ID" value="YOUR-GA-TRACKING-ID" /> | ||
</env-variables> | ||
</appengine-web-app> | ||
|