Skip to content

Instantly share code, notes, and snippets.

@sitefinitySDK
Last active October 13, 2023 17:43
function initInsight() {
var insightClient = new sfDataIntell.Client({
apiKey: '12345678-1234-1234-1234-1234567890ab', // replace with your Insight data center API key
apiServerUrl: 'https://api.insight.sitefinity.com', // change this to the API server URL where your Insight account is hosted
source: 'Website',
trackPageVisits: true,
trackBrowserInformation: true,
trackUtmParameters: true,
crossDomainTrackingEntries: ["example.org", "example.com"],
sessionLengthInMinutes: 30,
trackYouTubeVideos: true,
trackVimeoVideos: true
});
}
document.addEventListener('insight-sdk-ready', initInsight);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment