GTM Container Setup for Marketo Landing Pages - Subdomain Strategy Clarification
Hi Sanford and community,
I'm implementing GTM tracking for our Marketo landing pages and need guidance on container strategy for our multi-region setup.
Our Current Setup:
- Marketo subdomain
- 2 domain aliases
- We promote pages using the region-specific subdomain
My Questions:
- Do I need a separate GTM container specifically for our Marketo subdomain? Or can I use one of our existing corporate domain containers?
- If I need a dedicated container for the Marketo subdomain, will one container work across all three regional subdomains given the domain alias setup and non-partitioned database?
- Form tracking: I've read your posts about needing eventCallback for proper form tracking. For our use case (form submissions that redirect to TY pages), is this the correct implementation in the form listener?
form.onSuccess(function handleSuccess (values, followUpUrl) { window.dataLayer.push({ "event": "mkto.form.success", "mkto.form.values": values, "mkto.form.followUpUrl": followUpUrl, "eventCallback": function () { document.location.href = followUpUrl; }, "eventTimeout": 3000 }); return false; });
Any guidance would be greatly appreciated!
Thanks, L