We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38cf32c commit b93505aCopy full SHA for b93505a
lib/ab_panel/javascript.rb
@@ -1,11 +1,14 @@
1
module AbPanel
2
class Javascript
3
def self.environment
4
- props = { distinct_id: AbPanel.env["distinct_id"] }
+ props = {
5
+ distinct_id: AbPanel.env["distinct_id"]
6
+ }.merge(AbPanel.env[:properties])
7
8
AbPanel.funnels.each { |f| props["funnel_#{f}"] = true }
9
10
AbPanel.experiments.each { |exp| props[exp] = AbPanel.conditions.send(exp).condition }
11
+
12
props.to_json
13
end
14
0 commit comments