{"action":"created","issue":{"url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-keen-io/issues/3","labels_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-keen-io/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-keen-io/issues/3/comments","events_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-keen-io/issues/3/events","html_url":"https://github.com/segment-integrations/analytics.js-integration-keen-io/issues/3","id":90831573,"number":3,"title":"Repopulate setGlobalProperties across page reloads","user":{"login":"wcjohnson11","id":5373129,"avatar_url":"https://avatars.githubusercontent.com/u/5373129?v=3","gravatar_id":"","url":"https://api.github.com/users/wcjohnson11","html_url":"https://github.com/wcjohnson11","followers_url":"https://api.github.com/users/wcjohnson11/followers","following_url":"https://api.github.com/users/wcjohnson11/following{/other_user}","gists_url":"https://api.github.com/users/wcjohnson11/gists{/gist_id}","starred_url":"https://api.github.com/users/wcjohnson11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wcjohnson11/subscriptions","organizations_url":"https://api.github.com/users/wcjohnson11/orgs","repos_url":"https://api.github.com/users/wcjohnson11/repos","events_url":"https://api.github.com/users/wcjohnson11/events{/privacy}","received_events_url":"https://api.github.com/users/wcjohnson11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-06-25T02:30:36Z","updated_at":"2015-07-10T18:11:17Z","closed_at":null,"body":"Currently, the Keen integration sets the setGlobalProperties with the user traits after an identify call is made, this ensures that the future .track() events will be sent with the user traits.\r\nhttps://github.com/segment-integrations/analytics.js-integration-keen-io/blob/master/lib/index.js#L121\r\n\r\nHowever, in the case of a page reload, setGlobalProperties becomes empty, sending no traits along with .track() calls unless .identify() is called again.\r\n\r\nIn order to fix this, the integration should be updated to check if there are traits stored in the analytics.user() object and populate setGlobalProperties with those, so that .identify() won't need to be called before .track() in order to send traits with the .track() call."},"comment":{"url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-keen-io/issues/comments/120482593","html_url":"https://github.com/segment-integrations/analytics.js-integration-keen-io/issues/3#issuecomment-120482593","issue_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-keen-io/issues/3","id":120482593,"user":{"login":"BlackVegetable","id":2665839,"avatar_url":"https://avatars.githubusercontent.com/u/2665839?v=3","gravatar_id":"","url":"https://api.github.com/users/BlackVegetable","html_url":"https://github.com/BlackVegetable","followers_url":"https://api.github.com/users/BlackVegetable/followers","following_url":"https://api.github.com/users/BlackVegetable/following{/other_user}","gists_url":"https://api.github.com/users/BlackVegetable/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackVegetable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackVegetable/subscriptions","organizations_url":"https://api.github.com/users/BlackVegetable/orgs","repos_url":"https://api.github.com/users/BlackVegetable/repos","events_url":"https://api.github.com/users/BlackVegetable/events{/privacy}","received_events_url":"https://api.github.com/users/BlackVegetable/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T18:11:17Z","updated_at":"2015-07-10T18:11:17Z","body":"I've updated it with the test broken.  I think you are correct about the `load` call (why would I doubt you?)  I'm not familiar enough with how the `.load()` call works to shove the necessary arguments/context/function inside of it.  Can you give me an example?\r\n\r\n`this.load(argumentA, argumentF);`\r\n\r\nargumentA is the context needed by argumentF?  argumentF is the function to callback?"}}