Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 4a7c209

Browse files
author
James Taylor
authored
The fabric composer website and playground should be tracked with (#639)
different Google Analytics IDs Signed-off-by: James Taylor <[email protected]>
1 parent 0f30505 commit 4a7c209

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.travis/script.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ fi
2727

2828
# are we building the docs?
2929
if [ "${DOCS}" != "" ]; then
30+
if [ -n "${TRAVIS_TAG}" ]; then
31+
export JEKYLL_ENV=production
32+
fi
3033
cd "${DIR}/packages/composer-website"
3134
npm install
3235
npm run full

packages/composer-playground/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
r=n.getElementsByTagName(g)[0];a.async=1;a.src=u;r.parentNode.insertBefore(a,r)
2828
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
2929

30-
ga('create', 'UA-91314349-1', 'auto');
30+
ga('create', 'UA-91314349-3', 'auto');
3131
ga('send', 'pageview');
3232
</script>
3333

packages/composer-website/jekylldocs/_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet">
1414
<script src="{{site.baseurl}}/assets/js/clipboard.min.js"></script>
1515

16-
{% if site.github and site.google_tracking_id.production %}
16+
{% if jekyll.environment == "production" and site.google_tracking_id.production %}
1717
{% include googleanalytics.html tracking_id=site.google_tracking_id.production %}
1818
{% elsif site.google_tracking_id.development %}
1919
{% include googleanalytics.html tracking_id=site.google_tracking_id.development %}

0 commit comments

Comments
 (0)