Skip to content

Instantly share code, notes, and snippets.

View marinhero's full-sized avatar

Marín Alcaraz marinhero

View GitHub Profile
@marinhero
marinhero / wootric_events.js
Created February 4, 2020 18:49
An example on how to set events inside the Wootric SDK to use targeted sampling
// You define a global variable to track your events
my_global_event_name = 'loaded_website';
// You define your WootricSettings variable at the beginning of the code
wootricSettings = {
account_token: 'NPS-YOURTOKEN',
email: '[email protected]',
created_at: 1528416000,
properties: {
favorite_color: 'blue'