Archived topic
What happens if script in "Elements" is wrong?
1 reply · Started by anabella on March 17, 2022
Hi,
I want to add a few scripts (Google Analytics, Linkedin Ads, etc) to my website through the "Elements" option.
They are Javascript scripts to implement cookies upon consent.
My question is: is there's something wrong with that code (scripts), what would happen? Would Generatepress simply not execute the script (but the website will work fine)? Or would an error in the code (script) break the site somehow or display an error in the front-end?
Thanks in advance.
Hi there,
Or would an error in the code (script) break the site somehow or display an error in the front-end?
This would be the likely scenario as elements cannot tell whether a script is correct or not.