diff --git a/src/makefile b/src/makefile index 401560d5..d0ca1434 100644 --- a/src/makefile +++ b/src/makefile @@ -5,7 +5,7 @@ build-js-dir=${build-dir}/js theme=blue-icon -all: help-dir +all: patch-analytics help-dir help-dir: @@ -21,10 +21,12 @@ clean: (find ${build-dir} -mindepth 1 -maxdepth 1 ! -name js -print0 | xargs -0n1 rm -rf) - - - - - - - +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