This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sample get cookie value function for reference | |
function getCookie(cname) { // Simple getCookie utility stolen from https://www.w3schools.com/js/js_cookies.asp | |
var name = cname + "="; | |
var decodedCookie = decodeURIComponent(document.cookie); | |
var ca = decodedCookie.split(';'); | |
for(var i = 0; i <ca.length; i++) { | |
var c = ca[i]; | |
while (c.charAt(0) == ' ') { | |
c = c.substring(1); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drift.on('ready', function() { | |
drift.api.setUserAttributes({ | |
query_param1: value1, //replace with your param and pass value | |
query_param2: value2, //replace with your param and pass value | |
query_param3: value3, //replace with your param and pass value | |
query_param4: value4, //replace with your param and pass value | |
... | |
}) | |
}) |