LinkStackOrg / LinkStack

LinkStack - the ultimate solution for creating a personalized & professional profile page. Showcase all your important links in one place, forget the limitation of one link on social media. Set up your personal site on your own server with just a few clicks.
https://linkstack.org
GNU Affero General Public License v3.0
2.3k stars 235 forks source link

[FEATURE REQUEST] Add code injection to the <head> #120

Closed MagicLike closed 2 years ago

MagicLike commented 2 years ago

It would be nice to be able to inject code into the <head> , e.g. through the advanced-config.php so that it is available on every page. For example, alternative analytics like Umami can be supported this way without having to integrate them.

JulianPrieber commented 2 years ago

I'm a bit confused.

This is the reason why we added the advanced config. We already have this feature; it's right at the top. You can add any analytics code or custom HTML/JS in the Insert your analytics code here: field.

/*
|--------------------------------------------------------------------------
| Analytics
|--------------------------------------------------------------------------
|
| Add external analytics services to your LittleLink Custom instance by adding them below.
| Everything you enter below will be added to the  tag of every page.
| Formatting in plain HTML is expected.
|
*/

<<


EOD;;
MagicLike commented 2 years ago

Ahh, I thought, it was only for Goggle Analytics! Would it be possible, to change that to something like "Insert custom HTML / JS here:"?

JulianPrieber commented 2 years ago

I will probably add a note clarifying this. However, I can not add this note for existing instances, only to new setups.

MagicLike commented 2 years ago

Thank you for clarifying this and adding the note! 😃