# Add PIWIK PRO on localhost for development

**URL:** <https://community.piwik.pro/t/add-piwik-pro-on-localhost-for-development/712>\
**Category:** Data collection and tags\
**Created:** [June 8, 2022, 6:02am UTC](https://community.piwik.pro/t/add-piwik-pro-on-localhost-for-development/712 "2022-06-08T06:02:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![froot](https://avatars.discourse-cdn.com/v4/letter/f/9dc877/32.png) [@froot](https://community.piwik.pro/u/froot)\
**Post date:** [June 8, 2022, 6:02am UTC](https://community.piwik.pro/t/add-piwik-pro-on-localhost-for-development/712/1 "2022-06-08T06:02:20Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [June 8, 2022, 9:19am UTC](https://community.piwik.pro/t/add-piwik-pro-on-localhost-for-development/712/2 "2022-06-08T09:19:22Z")

</div>

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:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/1X/97b137d1c4c5888e956c5520c2ed1e9a827215bc.png)
