Either the unique identifier for your site or the full options object
Optional
options: InitOptionsOptional configuration settings (only used if first parameter is a string)
// Basic initialization with string UUID
init('your-site-uuid');
// With custom options
init('your-site-uuid', {
apiUrl: 'https://99dev-proxy.yourdomain.com',
navType: 'hash',
recordView: false,
});
// With options object only
init({
uuid: 'your-site-uuid',
apiUrl: 'https://99dev-proxy.yourdomain.com',
navType: 'hash',
recordView: false,
});
Initializes the analytics library with either a site UUID and options, or just options containing the UUID.