### Data Residency URL Example Source: https://help.wingify.com/hc/en-us/articles/58830155144857-How-to-Track-Offline-Conversions-Using-Wingify-Data360?platform=wingify Example of how to specify a data center path prefix for non-US accounts. ```http https://collect.wingify.net/eu01/events/t?en=EVENT_NAME&a=ACCOUNT_ID ``` -------------------------------- ### Initialize the Wingify SDK Source: https://help.wingify.com/hc/en-us/articles/58766063447705-Set-Up-Feature-Flags-in-Feature-Experimentation Use your Account ID and SDK Key to initialize the Wingify client. ```javascript // Example: Initialize SDK const options = { accountId: 'YOUR_ACCOUNT_ID', // Replace with your actual Account ID sdkKey: 'YOUR_SDK_KEY' // Replace with your actual SDK Key }; const wingifyClient = await wingify.init(options); ``` -------------------------------- ### Example of a standard manifest file Source: https://help.wingify.com/hc/en-us/articles/59187981539353-What-happens-if-you-have-multiple-Manifest-files-on-your-website This represents the initial manifest file structure containing metadata like icons and names. ```json { "name": "ABCD", "icons": [ { "src": "\/android-chrome-36x36.png", "sizes": "36x36", "type": "image\/png", "density": 0.75 }, { "src": "\/android-chrome-48x48.png", "sizes": "48x48", "type": "image\/png", "density": 1 } ``` -------------------------------- ### Product Purchase Event Example Source: https://help.wingify.com/hc/en-us/related/click?data=BAh7CjobZGVzdGluYXRpb25fYXJ0aWNsZV9pZGwrCJnef3aBNToYcmVmZXJyZXJfYXJ0aWNsZV9pZGwrCBkMRplyNToLbG9jYWxlSSIKZW4tdXMGOgZFVDoIdXJsSSJdL2hjL2VuLXVzL2FydGljbGVzLzU4ODMwMTU1MTQ0ODU3LUhvdy10by1UcmFjay1PZmZsaW5lLUNvbnZlcnNpb25zLVVzaW5nLVdpbmdpZnktRGF0YTM2MAY7CFQ6CXJhbmtpCA%3D%3D--0e1b71174796d147965bf58f68c9b5f6c97e21dc A concrete example of a product purchase event request and its corresponding payload. ```http https://collect.wingify.net/events/t?en=productPurchased&a= ``` ```json { "d": { "msgId": "DAD28496D5AE5AC737518D9DD6CC976FE-1684227244179", "visId": "DAD28496D5AE5AC737518D9DD6CC976FE", "event": { "props": { "productCategory": "Electronics", "price": 350, "page": { "title": "Sample Website", "url": "https://sample-website/", "referrerUrl": "" }, "isCustomEvent": true, "vwoMeta": { "source": "client" } }, "name": "productPurchased", "time": 1684227244178 }, "sessionId": 1684227199 } } ``` ```json { "d": { "msgId": "DAD28496D5AE5AC737518D9DD6CC976FE-1684227244179", "visId": "DAD28496D5AE5AC737518D9DD6CC976FE", "event": { "props": { "productCategory": "Electronics", "price": 350, "page": { "title": "Sample Website", "url": "https://sample-website/", "referrerUrl": "" }, "isCustomEvent": true, "wingifyMeta": { "source": "client" } }, "name": "productPurchased", "time": 1684227244178 }, "sessionId": 1684227199 } } ``` -------------------------------- ### vwoSdk.launch() Source: https://help.wingify.com/hc/en-us/articles/59092963265561-Configuring-Event-Batching-in-Wingify-FullStack Initializes the VWO SDK with batch event configurations, including setting the number of events per request and a callback function for network request results. ```APIDOC ## vwoSdk.launch(config) ### Description Initializes the VWO SDK instance with specific batching configurations. ### Parameters - **settingsFile** (object) - Required - The settings file retrieved via vwoSdk.getSettingsFile. - **batchEvents** (object) - Optional - Configuration for event batching. - **eventsPerRequest** (number) - Optional - Number of events to batch before sending. - **flushCallback** (function) - Optional - Callback function triggered on success/failure of batch network requests. Signature: (err, events) => void. ### Example ```javascript var settingsFile = await vwoSdk.getSettingsFile(accountId, sdkKey); vwoSdk.launch({ settingsFile: settingsFile, batchEvents: { eventsPerRequest: 1000, flushCallback: (err, events) => console.log(err, events) } }); ``` ```