You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add the option to set a piwik tracking code (the same way as google_analytics). The following code would output the Piwik tracking code at the end of the body section.
It does not seem reasonable to me for MkdDocs to need to support every single analytics option out there. Which one(s) are supported out-of-the-box is up to @d0ugal. However, I think a reasonable work around would be to put the analytics code into an include (or block). Then users can use a custom theme dir to override the analytics part only of the theme without needing to re-implement the entire theme. Just my suggestion.
You can just add a analytics.js file in with your markdown that contains all the JavaScript required for your preferred service and it will then be automatically included (or you can specify it with extra_javascript) I'm not aware of any reason that they need to be included inline other than a slight performance enhancement.
We should consider removing Google and documenting this approach assuming it works well enough.
Google was added before my involvement. I think I'd rather not include any than try to decide which to include.
For now I think this sort of change has to require a custom theme. We should aim to solve it more generally - #607 takes us toward a discussion about this, so let's continue there.
Activity
waylan commentedon Jun 5, 2015
It does not seem reasonable to me for MkdDocs to need to support every single analytics option out there. Which one(s) are supported out-of-the-box is up to @d0ugal. However, I think a reasonable work around would be to put the analytics code into an include (or block). Then users can use a custom theme dir to override the analytics part only of the theme without needing to re-implement the entire theme. Just my suggestion.
Jako commentedon Jun 5, 2015
Any option not to re-implement the entire theme is welcome.
d0ugal commentedon Jun 5, 2015
You can just add a analytics.js file in with your markdown that contains all the JavaScript required for your preferred service and it will then be automatically included (or you can specify it with extra_javascript) I'm not aware of any reason that they need to be included inline other than a slight performance enhancement.
We should consider removing Google and documenting this approach assuming it works well enough.
Google was added before my involvement. I think I'd rather not include any than try to decide which to include.
d0ugal commentedon Jun 5, 2015
Hmm, actually, I see there is a requirement for non-JavaScript code too.
d0ugal commentedon Jun 7, 2015
For now I think this sort of change has to require a custom theme. We should aim to solve it more generally - #607 takes us toward a discussion about this, so let's continue there.