Skip to content

Commit

Permalink
Enable includeRefferer in Amplitude init options (#2397)
Browse files Browse the repository at this point in the history
  • Loading branch information
shakao authored Oct 7, 2022
1 parent 3060136 commit 5e3d598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amplitude/static/vendor/amplitude-snippet.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ e=(!e||e.length===0?"$default_instance":e).toLowerCase()
;e.amplitude=n})(window,document);


amplitude.getInstance().init("%(AMPLITUDE_API_KEY)s", undefined, undefined, function(client) {
amplitude.getInstance().init("%(AMPLITUDE_API_KEY)s", undefined, { includeReferrer: true }, function(client) {
document.cookie = 'jf_device_id=' + client.options.deviceId + ';path=/';
});
amplitude.getInstance().setVersionName("%(code_version)s");

0 comments on commit 5e3d598

Please sign in to comment.