Author Topic: General settings  (Read 515 times)

Offline RonR

  • Posts: 43
General settings
« 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

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4451
  • Gender: Male
Re: General settings
« Reply #1 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)

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline dbs

  • Betatester
  • **
  • Posts: 8639
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: General settings
« Reply #2 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;

Offline RonR

  • Posts: 43
Re: General settings
« Reply #3 on: January 22, 2021, 04:39:59 PM »
Ok, all clear!
Was just not sure.

Thanks for clarification!

 

postern-length