Hi Here,
I have a WordPress site with a WooCommerce shop, and the same site has a subdomain that also has a WordPress CMS and a WooCommerce shop. The main site has, for example, the domain example.co.il, and the subdomain has sites.example.co.il.
I am a bit confused with the approach and steps that might be involved in the server-side setup of these sites and am seeking some expert advice here.
Currently, the same GTM and GA4 properties are being utilized in both domains.
E-commerce events are repetitive, and not many custom events are there to be tracked. So per my assumption, I can have one server container because there is no overload of events or tags.
I wonder if I can follow the below approach, or please feel free to correct me if my understanding is incorrect.
- Create a custom sub-domain: I can use the main site’s domain for a custom sub-domain. i.e., ss.example.co.il, and it will work for both my subdomains.
- Custom Loader, where I can utilize the same custom domain.
- Utilize “Multi-Domain” Power Ups: Create records for all sub-domains and add DNS records.
- Once the domains are verified, add those server URLs to the GTM server container and then go for the custom loader (probably using the main domain ss.example.co.il).
At this stage, I am not sure if step 1 is not needed in subdomain cases and if I should apply step 3.
Can anyone here please guide me on this one?