Code Add Google Analytics to Jekyll Learn how-to add Google Analytics to your Jekyll theme. Add the following code snippet to your themes default.html file in-between the head HTML tags.