Skip to content

Commit

Permalink
The fabric composer website and playground should be tracked with (hy…
Browse files Browse the repository at this point in the history
…perledger-archives#639)

different Google Analytics IDs

Signed-off-by: James Taylor <[email protected]>
  • Loading branch information
James Taylor authored Apr 7, 2017
1 parent 0f30505 commit 4a7c209
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ fi

# are we building the docs?
if [ "${DOCS}" != "" ]; then
if [ -n "${TRAVIS_TAG}" ]; then
export JEKYLL_ENV=production
fi
cd "${DIR}/packages/composer-website"
npm install
npm run full
Expand Down
2 changes: 1 addition & 1 deletion packages/composer-playground/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
r=n.getElementsByTagName(g)[0];a.async=1;a.src=u;r.parentNode.insertBefore(a,r)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-91314349-1', 'auto');
ga('create', 'UA-91314349-3', 'auto');
ga('send', 'pageview');
</script>

Expand Down
2 changes: 1 addition & 1 deletion packages/composer-website/jekylldocs/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet">
<script src="{{site.baseurl}}/assets/js/clipboard.min.js"></script>

{% if site.github and site.google_tracking_id.production %}
{% if jekyll.environment == "production" and site.google_tracking_id.production %}
{% include googleanalytics.html tracking_id=site.google_tracking_id.production %}
{% elsif site.google_tracking_id.development %}
{% include googleanalytics.html tracking_id=site.google_tracking_id.development %}
Expand Down

0 comments on commit 4a7c209

Please sign in to comment.