Add PIWIK PRO on localhost for development

I’m trying to add PIWIK PRO to my local machine (MAMP on port 8887) for development before pushing it to the live server. I added the Basic container (async) to the tag of my page. I saw the cookie consent pop-up once and after refreshing the page, without clicking any button or closing the pop-up.

Apparently I need to delete
ppms_webstorage from Local Storage
and
ppms_privacy_[SOME NUMBER STRING] from cookies

Is that a known/wanted behaviour?

I suggest setting up some local domain name pointing to localhost to simulate better the production environment.

As for the consent popup, the behaviour after page refresh depends on your configuration:

1 Like