Skip to content

Commit 40ac2b9

Browse files
committed
Add support for fullstory relay options
1 parent dd29160 commit 40ac2b9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.idea/
12
bin/
23
node_modules/
34
coverage/

integrations/fullstory/lib/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ var FullStory = (module.exports = integration('FullStory')
2121
.option('trackNamedPages', false)
2222
.option('trackCategorizedPages', false)
2323
.option('trackPagesWithEvents', true)
24+
.option('script', 'edge.fullstory.com/s/fs.js')
25+
.option('host', 'fullstory.com')
2426
.option('isOuterScript', false)
2527
.tag(
26-
'<script async src="https://edge.fullstory.com/s/fs.js" crossorigin="anonymous"></script>'
28+
'<script async src="https://{{script}}" crossorigin="anonymous"></script>'
2729
));
2830

2931
/**
@@ -39,8 +41,8 @@ var apiSource = 'segment';
3941
FullStory.prototype.initialize = function() {
4042
window._fs_is_outer_script = this.options.isOuterScript;
4143
window._fs_debug = this.options.debug;
42-
window._fs_host = 'fullstory.com';
43-
window._fs_script = 'edge.fullstory.com/s/fs.js';
44+
window._fs_host = this.options.host;
45+
window._fs_script = this.options.script;
4446
window._fs_org = this.options.org;
4547
window._fs_namespace = 'FS';
4648

0 commit comments

Comments
 (0)