# Piwik changing GA4 domain

**URL:** <https://community.piwik.pro/t/piwik-changing-ga4-domain/4741>\
**Category:** Data collection and tags\
**Created:** [December 19, 2024, 9:27am UTC](https://community.piwik.pro/t/piwik-changing-ga4-domain/4741 "2024-12-19T09:27:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rachael\_les](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@rachael\_les](https://community.piwik.pro/u/rachael_les)\
**Post date:** [December 19, 2024, 9:27am UTC](https://community.piwik.pro/t/piwik-changing-ga4-domain/4741/1 "2024-12-19T09:27:01Z")

</div>

I’ve implemented Piwik on our website which has a subdomain. However it looks like the subdomain is being attributed to landing pages in our GA4 account causing duplicate event tracking.

In the Piwik script there is a “setDomains” which is pushing both domain names, could you please support with this issue.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/2/28bdc6723245d576ccdbaa9fb4026908175fe4ce.png)

---

<div class="post-metadata">

**Author:** ![Adam](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/adam/32/1494_2.png) [@Adam](https://community.piwik.pro/u/Adam)\
**Post date:** [December 19, 2024, 9:42am UTC](https://community.piwik.pro/t/piwik-changing-ga4-domain/4741/2 "2024-12-19T09:42:32Z")

</div>

Hi @rachael_les,

I’m not sure how I can help there as the issue appears in GA4. Could you please elaborate?

---

<div class="post-metadata">

**Author:** ![rachael\_les](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@rachael\_les](https://community.piwik.pro/u/rachael_les)\
**Post date:** [December 19, 2024, 9:48am UTC](https://community.piwik.pro/t/piwik-changing-ga4-domain/4741/3 "2024-12-19T09:48:56Z")

</div>

Hi, I think the Piwik script is interfering and I wondered if there was anything around subdomains in the set up for Piwik? I’ve currently just added both url addresses in the admin?

---

<div class="post-metadata">

**Author:** ![Adam](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/adam/32/1494_2.png) [@Adam](https://community.piwik.pro/u/Adam)\
**Post date:** [December 19, 2024, 11:19am UTC](https://community.piwik.pro/t/piwik-changing-ga4-domain/4741/4 "2024-12-19T11:19:27Z")

</div>

Hi @rachael_les,

GA4 and Piwik PRO can work together in the same time. Our engine is a totally seperated from GA4’s and shouldn’t break data tracking of GA4. Also, by default our tracking container tracks data from all pages where it’s placed. Unfortunately, there is no possibility to change here the subdomains tracking behavior
