Skip to content

Commit caf65b9

Browse files
authored
adds environment variable for analytics tracking (GoogleCloudPlatform#277)
1 parent a809c73 commit caf65b9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

appengine/flexible/analytics/app.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
runtime: php
22
env: flex
33

4-
runtime_config:
5-
document_root: web
4+
env_variables:
5+
GA_TRACKING_ID: "YOUR-GA-TRACKING-ID"
6+

appengine/flexible/analytics/web/index.php renamed to appengine/flexible/analytics/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
// Install composer dependencies with "composer install"
1919
// @see http://getcomposer.org for more information.
20-
require __DIR__ . '/../vendor/autoload.php';
20+
require __DIR__ . '/vendor/autoload.php';
2121

22-
$app = require __DIR__ . '/../app.php';
22+
$app = require __DIR__ . '/app.php';
2323

2424
// Run the app!
2525
// use "gcloud app deploy"

0 commit comments

Comments
 (0)