developers:javascript-api:modules:context

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
developers:javascript-api:modules:context [2015/12/01 15:35]
178.83.199.102
developers:javascript-api:modules:context [2016/01/07 14:41] (current)
Line 6: Line 6:
 ===== Available Functions ===== ===== Available Functions =====
  
-==== duckprove.context.visitor([key]) ==== +==== duckprove.context.consumer([key]) ==== 
-Gets or sets the unique ​visitor ​key for this user. This key should actually not change for a user at any time.+Gets or sets the unique ​consumer ​key for this user. This key should actually not change for a user at any time.
  
 ==== duckprove.context.update() ==== ==== duckprove.context.update() ====
Line 38: Line 38:
 ==== duckprove.context.sample(hex,​ sampleRate) ==== ==== duckprove.context.sample(hex,​ sampleRate) ====
 Uses a method of checking whether the hex string falls within the submitted sample rate. Uses a method of checking whether the hex string falls within the submitted sample rate.
-If the same hex string is submitted again, the result will be the same. This allows checking the sample rate per visitor, session or other hex strings.+If the same hex string is submitted again, the result will be the same. This allows checking the sample rate per consumer, session or other hex strings.