Solved

Web Tracking Code on multiple domains?

  • 7 April 2021
  • 3 replies
  • 1416 views

Badge +2

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!

icon

Best answer by Dov 8 April 2021, 21:14

View original

3 replies

Userlevel 7
Badge +60

Hey @Stefan,

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

Badge +1

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?

Userlevel 7
Badge +61

Hi @geneellis,

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.

Reply