diff --git a/roles/matomo/tasks/install.yml b/roles/matomo/tasks/install.yml index 68942ea3c..e5d22fcfb 100644 --- a/roles/matomo/tasks/install.yml +++ b/roles/matomo/tasks/install.yml @@ -139,8 +139,23 @@ url: "{{ matomo_host_url }}" ecommerce: 0 body_format: form-urlencoded + status_code: [200, 302] + register: _result + +- name: Fallback Configure Matomo to track IIAB + uri: + url: "{{ matomo_full_url }}index.php?action=firstWebsiteSetup&module=Installation" + method: POST + headers: + Cookie: "{{ matomo_session_cookie }}" + body: + siteName: "IIAB" + url: "{{ matomo_host_url }}" + timezone: "Europe/London" + ecommerce: 0 + body_format: form-urlencoded status_code: 302 - #register: matomo_first_website_setup + when: _result.status == 200 - name: Matomo Tracking Code uri: