- Add jQuery to your jekyll blog if its not there yet. I am adding it to _includes/head.html
- Create additional include where we will make our magick. I did this in _includes/google__analytics.html.
File with this code is included in default.html
- Add class=’ga-link’ to all links you want to track to google analytics.
I`ve created such include to help generate links tracked:
Now if i want to have such link i can use: