We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.
Custom HTML issue: Old snippets seamingly not being removed
I had a custom html snippet for plausible.io in the head section, but then replaced it by a custom one. Yet both are in the head section, plausible.io and tchncs.de. How to remove the obsolete one?
Are you sure that you have no custom changes in your theme or plausible plugin installed? If you saved your settings, Publii should inject only the updated HTML head code.
Yes, I just switched hosting from plausible.io to tchncs.de and made sure there is no custom html elsewhere. Also, I tried blanking the head section of custom html in the gui and saving, but the old Plausible snippet remains in the head section of the website (I checked with developer tools).
@Gyges – are you sure that you have properly synced your website after this change? I have tried to reproduce such issue and always when I make the HTML code for head section empty my custom code disappears.
And additionally as I mentioned – are you sure that you are not using plausible plugin? It also injects code to the head section.
Yes, I have the Plausible Plugin installed… but since it`s self-hostable, I did not presume it hard-injecting the plausible.io url into the head section. Does that mean that the Plausible Plugin is not meant for self-hosting at this stage?
@Gyges – you’re right – we forgot about add support for self-hosted version of Plausible analytics 🙂 I will prepare new updated version of the plugin in 1-2 days.