Hachemi Posted February 24, 2023 Posted February 24, 2023 Hello, Today i try to setup my forum to add Google Analytics, but now i have all my JavaScript on my forum completely bugged, and can't do anything on it, i just can clic on links. I just enabled and paste the code (provided by Google) in the Google Analytics default plugin, nothing exotic ... I got this code in bottom of the page : ; ipsSettings['maxImageDimensions'] = { width: 1000, height: 750 }; You can check on every pages : https://motardo.com/ I try several things : clear cache disable customization disable and remove google analytics code try to find out in template files if any file are modified with an unwanted semicolon It's seems there is an rebel semicolon, but i can't find where it is ... When I change the "Maximum image dimensions to display" (to unlimited for example) i got only the semicolon, but JavaScript still down. What I'm missing ?
Jim M Posted February 24, 2023 Posted February 24, 2023 Could you please clarify where you've added this script? In the Google Analytics Integration area, even if I disable that, the script error is still present and I am seeing two inclusions.
Hachemi Posted February 24, 2023 Author Posted February 24, 2023 (edited) Oh I remember now, in the first place I added it in the Header and Footer HTML section in the theme, but quickly removed it because saw there is a default plugin ready to use. Here in the first place : I just put this code on this 2 sections, did nothing else. Edited February 24, 2023 by Hachemi
Jim M Posted February 24, 2023 Posted February 24, 2023 1 hour ago, Hachemi said: Oh I remember now, in the first place I added it in the Header and Footer HTML section in the theme, but quickly removed it because saw there is a default plugin ready to use. Here in the first place : I just put this code on this 2 sections, did nothing else. I would advise removing it from there and placing it in the Google Analytics Integration in ACP -> System -> Integrations -> Google Analytics.
Hachemi Posted February 24, 2023 Author Posted February 24, 2023 (edited) 4 minutes ago, Jim M said: I would advise removing it from there and placing it in the Google Analytics Integration in ACP -> System -> Integrations -> Google Analytics. Of course I did it before coming here post this problem. I've clean all what I can, for now I completely removed the Google Analytics code, but JavaScript still down. Edited February 24, 2023 by Hachemi
Solution Jim M Posted February 24, 2023 Solution Posted February 24, 2023 7 minutes ago, Hachemi said: Of course I did it before coming here post this problem. I've clean all what I can, for now I completely removed the Google Analytics code, but JavaScript still down. Unfortunately, you still left some code in ACP -> System -> Advanced Configuration -> Page Output. I have removed that for you now. You will want to insert it in: ACP -> System -> Integrations -> Google Analytics. SeNioR- and Hachemi 1 1
Hachemi Posted February 24, 2023 Author Posted February 24, 2023 1 minute ago, Jim M said: Unfortunately, you still left some code in ACP -> System -> Advanced Configuration -> Page Output. I have removed that for you now. You will want to insert it in: ACP -> System -> Integrations -> Google Analytics. Many thanks for your help.
Recommended Posts