Skip to main content

EcommCordova

Integrate using the Cordova SDKDirect link to Integrate using the Cordova SDK

To add the Rokt Cordova SDK, go to the root of your project via Terminal and run:

$ cordova plugin add @rokt/cordova-plugin-roktsdk

Initialize the Rokt Cordova SDKDirect link to Initialize the Rokt Cordova SDK

We recommend calling initialize at the start of your application:


// 1) Replace the integration test tag ID (222) with your unique Rokt Tag ID
// 2) Replace 1.0.0 with the application version

RoktSDK.initialize(
"222",
"1.0.0",
function(msg) {
console.log(msg);
},
function(err) {
console.log(err);
}
);

Was this article helpful?