Title: HTTP method option not working
Last modified: December 17, 2021

---

# HTTP method option not working

 *  [martindupont](https://wordpress.org/support/users/martindupont/)
 * (@martindupont)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/http-method-option-not-working/)
 * Hello,
 * I have met 2 issues with the HTTP method.
    This option does not seem to work 
   as expected whatever I choose POST or GET.
 * I have installed WP-Matomo (1.0.26) on my wordpress (5.8.2) website.
    I have 
   connected this plugin with my self-hosted matomo (4.6.2).
 * In expert settings, the HTTP method is POST.
    When I test my website, I see the
   ajax call with POST method but all the data are filled as GET parameters. Why
   do the data remain as GET parameters ?
 * When I choose GET HTTP method, the ajax call remains POST method.

Viewing 1 replies (of 1 total)

 *  Thread Starter [martindupont](https://wordpress.org/support/users/martindupont/)
 * (@martindupont)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/http-method-option-not-working/#post-15175252)
 * I have just resolved temporarily my issue by adding in my tracking code:
    `_paq.
   push(["setRequestMethod", "POST"]);`
 * I may misunderstood the purpose of the setting “HTTP method” in expert settings.
   
   This setting may be used for the API authentification with my matomo but not 
   for the tracking code right ?
 * If this is right then I think it could be useful to have an option “HTTP method”
   for the tracking code

Viewing 1 replies (of 1 total)

The topic ‘HTTP method option not working’ is closed to new replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [martindupont](https://wordpress.org/support/users/martindupont/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/http-method-option-not-working/#post-15175252)
 * Status: not resolved