knightoftheoldcode / knightoftheoldcode.github.io-old

Jekyll source code.
https://knightoftheoldcode.com/
MIT License
0 stars 0 forks source link

Exclude Analytics from head.html include if config token isn't set #2

Closed ghost closed 9 years ago

ghost commented 9 years ago

https://github.com/knightoftheoldcode/knightoftheoldcode.github.io/blob/master/_includes/head.html#L12

The above code needs to be excluded with liquid if tags if the google_analytics token isn't set in the _config.yml file.

Template:

https://github.com/knightoftheoldcode/knightoftheoldcode.github.io/blob/master/_includes/analytics.html

ghost commented 9 years ago

Also ensure that we are using analytics correctly. Check for proper locations in the resulting structure, etc...

ghost commented 9 years ago

This was just the segment.io code so we will remove it.