WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => General Help & Support => Topic started by: RonR on January 22, 2021, 02:09:40 PM

Title: General settings
Post by: RonR on January 22, 2021, 02:09:40 PM
Just a question:
updated from 2.12 to 2.13 rc26
PHP7.3

I had my Google Analytics code on:
Settings->General Settings-> Website footer.

After update the code is gone. Also gone in the database.
New entry of the script in this field is not being recorded/saved.

Is this normal behaviour? I can not recall during previous updates to have the code gone away.

Ended up putting the code in the template file as a workaround.

Greetz,
Ron
Title: Re: General settings
Post by: Luisehahne on January 22, 2021, 03:44:45 PM
Ended up putting the code in the template file as a workaround.

this is the right way, not in input fields to prevent Cross-site scripting (XSS) (https://en.wikipedia.org/wiki/Cross-site_scripting#Exploit_examples)

Dietmar
Title: Re: General settings
Post by: dbs on January 22, 2021, 03:58:16 PM
Maybe also possible.
Create a new droplet, add your code like this:

Code: [Select]
$gacode = '<script>...</script>';
return $gacode;
Title: Re: General settings
Post by: RonR on January 22, 2021, 04:39:59 PM
Ok, all clear!
Was just not sure.

Thanks for clarification!