From 3ceef385faf9cd13c84bd54314406fdacf7e174d Mon Sep 17 00:00:00 2001 From: Blake LaFleur Date: Mon, 17 Jun 2024 13:25:23 -0500 Subject: [PATCH] Add support for fullstory relay options --- .gitignore | 1 + integrations/fullstory/lib/index.js | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b8bf25428..a5e1f5faf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.idea/ bin/ node_modules/ coverage/ diff --git a/integrations/fullstory/lib/index.js b/integrations/fullstory/lib/index.js index f9884e05e..bf81d2937 100644 --- a/integrations/fullstory/lib/index.js +++ b/integrations/fullstory/lib/index.js @@ -21,9 +21,11 @@ var FullStory = (module.exports = integration('FullStory') .option('trackNamedPages', false) .option('trackCategorizedPages', false) .option('trackPagesWithEvents', true) + .option('script', 'edge.fullstory.com/s/fs.js') + .option('host', 'fullstory.com') .option('isOuterScript', false) .tag( - '' + '' )); /** @@ -39,8 +41,8 @@ var apiSource = 'segment'; FullStory.prototype.initialize = function() { window._fs_is_outer_script = this.options.isOuterScript; window._fs_debug = this.options.debug; - window._fs_host = 'fullstory.com'; - window._fs_script = 'edge.fullstory.com/s/fs.js'; + window._fs_host = this.options.host; + window._fs_script = this.options.script; window._fs_org = this.options.org; window._fs_namespace = 'FS';