FriendsOfFlarum / analytics

A Flarum extension that provides your forum piwik's and google's analytics features
https://discuss.flarum.org/d/1983
MIT License
33 stars 12 forks source link

Custom analytics JS #14

Closed XakepSDK closed 5 years ago

XakepSDK commented 5 years ago

Please, add ability to put custom analytics JS

clarkwinkelmann commented 5 years ago

What would be the difference from using custom HTML ?

XakepSDK commented 5 years ago

Custom HTML puts code in top of body. this ext. puts code in bottom of header

clarkwinkelmann commented 5 years ago

I don't think it's a use case we want to solve with this extension. A "custom HEAD content" extension would be more logical I think. And it shouldn't be complicated to make.

You can even inject content in HEAD without an extension by using extend.php. I can't think of the code you need right now but it's a single call to an existing extender.