Getting Started
Cross-Domain Tracking
Setup and configure cross-domain tracking.
If your application and marketing website are hosted on different domains, you can combine tracking on these domains through a cross-domain cookie.
Example:
- Landing page -> https://example.com
- Application -> https://app.example.com
Cookie's domain -> .example.com
JS SDK
For our example domain, the JS SDK setup would look like this in both places (landing page and application):
Logspot.init({
publicKey: 'YOUR_PUBLIC_KEY',
cookieDomain: '.example.com',
});Web SDK
For our example domain, the Web SDK setup would look like this in both places (landing page and application):
<script
async
data-logspot-pk="YOUR_PUBLIC_KEY"
data-domain=".example.com"
src="https://cdn.logspot.io/lg.js"
></script>