ElkArte Community

Title: A feature request : Easily add a custom javascript in header or footer
Post by: kucing on December 23, 2013, 11:49:23 am
Hi, so I want to add a tracking/analytics code[1] in ElkArte and failed to do so until this day.  :'(

Now I'm inspired by my wordpress site that included a slot for inserting additional script in header or footer. This will help if anybody want any script loaded in ElkArte without modifying the template files directly and redo every modification if overwritten.

Is this reasonable? or better as mod?
I followed how to insert google analytics code manually in smf2
Title: Re: A feature request : Easily add a custom javascript in header or footer
Post by: IchBin on December 23, 2013, 12:42:03 pm
I could see this being useful for the reasons you pointed out. Would you rather it be a global option that when set it shows in all themes? Or allow each theme the option to set it's own?
Title: Re: A feature request : Easily add a custom javascript in header or footer
Post by: kucing on December 23, 2013, 01:00:16 pm
personally I think global is good enough because I will use it to insert analytics code in header or footer and it will be a hassle to setup the code for each theme. I seldom change my theme though.

Thanks!
Title: Re: A feature request : Easily add a custom javascript in header or footer
Post by: Spuds on December 27, 2013, 10:03:59 am
We should track this at gitHub as a feature request I think
Title: Re: A feature request : Easily add a custom javascript in header or footer
Post by: IchBin on December 29, 2013, 05:50:27 pm
Added:
https://github.com/elkarte/Elkarte/issues/1201
Title: Re: A feature request : Easily add a custom javascript in header or footer
Post by: emanuele on December 31, 2013, 07:49:07 am
A mod should be rather easy to implement I think: a couple of hooks and save the header into the settings table...the most annoying thing would be setup the package-info LOL ... heck me is tempted to do some changes on that respect...
Title: SPLIT: Addons
Post by: emanuele on January 02, 2014, 08:21:48 am
One or more of the messages of this topic have been moved to Feature Discussion (http://www.elkarte.net/community/index.php?board=1.0).

http://www.elkarte.net/community/index.php?topic=882.0
Title: Re: A feature request : Easily add a custom javascript in header or footer
Post by: radu81 on November 06, 2014, 07:33:46 am
is this solved? is it possible to add  google analytics to elkarte?

imho I think it should be as a mod, many users are using Google Analytics
Title: Re: A feature request : Easily add a custom javascript in header or footer
Post by: emanuele on November 06, 2014, 09:19:32 am
http://www.elkarte.net/community/index.php?topic=2179.0
Just a quick one. ;D