This file contains 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
import io.moonsense.sdk.Moonsense | |
import io.moonsense.sdk.model.Session | |
Moonsense.initialize( | |
context, | |
"ADD PUBLIC TOKEN HERE .." | |
) | |
var session: Session? = Moonsense.startSession( | |
15, |
This file contains 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
import MoonsenseSDK | |
Moonsense.initialize( | |
publicToken: "ADD PUBLIC TOKEN HERE .." | |
) | |
var session: Session? = try? Moonsense.startSession( | |
duration: 15, | |
labels: ["label1", "label2"] | |
) |
This file contains 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
import { Moonsense } from '@moonsense/moonsense-web-sdk'; | |
const moonsenseSdk = new Moonsense({ | |
publicToken: 'ADD PUBLIC TOKEN HERE ..' | |
}); | |
const session = moonsenseSdk.startSesssion(15000); | |
session.stopSession(); |
This file contains 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
session.addCustomEvent( | |
"page_view", | |
"/65242628309/orders/0741e175be4d5ddb25291b4a189aa1e9", | |
{ | |
"referer" : "", | |
"fragment": "..." | |
... other page metadata as needed | |
} | |
) |
OlderNewer