Skip to content

Commit

Permalink
Merge pull request #280 from virtual-labs/gtm-analytics
Browse files Browse the repository at this point in the history
Analytics code snippet added
  • Loading branch information
pavanchow authored Jan 7, 2020
2 parents 91b36bf + e4fa68b commit 259fcd1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
build-dir=../build
theme=green-icon

all: ${theme}
all: patch-analytics ${theme}

green-icon:
mkdir ${build-dir};rsync -avC --progress lab/* themes/${theme}/* ${build-dir}
clean:
rm -rf ${build-dir}

patch-analytics:
git clone https://github.com/virtual-labs/vlabs-analytics.git
cp vlabs-analytics/gtm-patcher.py ../scripts/.
cp vlabs-analytics/patch-analytics.sh ../scripts/.
chmod +x ../scripts/patch-analytics.sh
../scripts/patch-analytics.sh
rm -rf vlabs-analytics
rm -rf ../scripts/patch-analytics.sh
rm -rf ../scripts/gtm-patcher.py

0 comments on commit 259fcd1

Please sign in to comment.