Skip to content

Commit

Permalink
Add support for fullstory relay options
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackburn29 committed Sep 9, 2024
1 parent dd29160 commit 40ac2b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
bin/
node_modules/
coverage/
Expand Down
8 changes: 5 additions & 3 deletions integrations/fullstory/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
'<script async src="https://edge.fullstory.com/s/fs.js" crossorigin="anonymous"></script>'
'<script async src="https://{{script}}" crossorigin="anonymous"></script>'
));

/**
Expand All @@ -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';

Expand Down

0 comments on commit 40ac2b9

Please sign in to comment.