Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2019-02-03 15:55:07

felipe808
Member
Registered: 2005-11-04
Posts: 16

cannot edit Form Code: Site Top throws 403

Tried to add Matomo code to Site Top Form. Perhaps it is the wrong place because this is Html code?
Matomo instructs to palce the code just before the <\head> tag.

Where should the Matomo code go? Thanks very much. Cheers!

Offline

#2 2019-02-03 16:22:44

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

Re: cannot edit Form Code: Site Top throws 403

Hi felipe,

You’re probably doing things correctly – e.g. editing your page template or page header form to add the Matomo code – but the problem might be with something in the code being blocked by your web host.

Almost all the other forum threads about 403 errors happening when updating a form or page seem to point to restrictions resulting from the host’s use of the apache mod_security module.

One possible solution – though it depends on your host permitting it – is to add the following to the top of your .htaccess file:

<IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
</IfModule>

to disable that module. Some people have reported that they can then update their pages/forms. Others had no luck.

Another quick fix – which basically circumvents the filter – is to edit the page template or form directly in the database (make a backup first). If you need help with that, feel free to get in touch again via email.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2019-02-03 16:55:26

felipe808
Member
Registered: 2005-11-04
Posts: 16

Re: cannot edit Form Code: Site Top throws 403

Thanks. I already sent an email to TXP Builders with this request.

Offline

#4 2019-02-03 18:12:35

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: cannot edit Form Code: Site Top throws 403

Hi Felipe,

If you use matomo and you live in the EU it is prudent to also use oui_cookie so as to allow your visitors to opt in to tracking and comply to GDPR.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB