Question. Can the website tracking code be placed on two different URLs (one domain, one subdomain), or is it restricted to just one URL? Thank you!
Hi
Thank you for sharing your question with the Klaviyo Community.
In theory, yes you can paste our onsite tracking snippet onto separate URLs. However, I would not recommend doing so for purposes of data integrity. For example, if site A and site B use the same snippet, web tracking data will not flow consistently to account A nor account B. Therefore, if you are operating multiple sites, I recommend using two separate web trackingsnippets - one for each site rather than using the same web tracking snippet for both.
Thanks and have a great day.
Hi DD,
We have a related question. We have a setup with a main content website like dd.com and a ecommerce subdomain shop.dd.com. We have one klaviyo account for customer marketing. Should we install the same klaviyo snippet on both domains? I think that would make sense and Klaviyo only offers us one API key anyway. Is that the recommended approach? Anything we need to be aware of?
Hey
Great question!
Yes, you would just use the same Klaviyo Javascript on this alternate domain. Using that same snippet provided within your Klaviyo account would allow you to trigger the Active Onsite event and to publish signup forms to this secondary website. You can learn more about this from the How to Install Klaviyo.js to Publish Signup Forms article.
Hope this helps!
David
Reply
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.