mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
add evil tracking code
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<script>var gaJsHost="http://www.";document.write(unescape("%3Cscript src='"+gaJsHost+".google-analytics.com/ga.js'%3E%3C/script%3E"));</script><script>try{var pageTracker=_gat._getTracker("UA-7434570-3");pageTracker._trackPageview();}catch(err){}</script>
|
||||
@@ -11,6 +11,12 @@ for f in *.html; do
|
||||
python htmlminimizer.py "$f" build/"$f"
|
||||
done
|
||||
|
||||
# add evil tracking code
|
||||
for f in build/*.html; do
|
||||
cat "$f" ga.js > build/tmp
|
||||
mv build/tmp "$f"
|
||||
done
|
||||
|
||||
# jQuery will be served by Google AJAX Libraries API
|
||||
sed -i -e "s|jquery\.js|http://www.google.com/jsapi|g" build/*.html
|
||||
sed -i -e "s|//google\.|google.|g" build/dip3.js
|
||||
|
||||
Reference in New Issue
Block a user