I have two code snippets which I want to add before the end of body tag. One is an analytics script and another one is a code snippet to change all hyperlinks so that it matches our styleguide.
The purpose of analytics snippet is analytics which is non-essential. If the user refuses all cookies, this won’t function and that’s fine. However, this also rejects the code snippet that is used to stylize the links. I would expect a way to add another custom code at the end of body with a different purpose but wix does not allow this!
An elegant solution would be to be able to provide a way to select hyperlinks using $w. And add the code within dev mode to the masterPage. Is this possible? What do the developers of wix think about this?
Let me correct you, the custom code added before the end of body categorised as analytics won’t be executed by wix if the cookie consent was refused. This is how they have built it. And secondly, wix does not allow us to add multiple code snippets at the end of body under different categories! Do you understand?