Get started
Installation
Section titled InstallationAdd the contentsquare
package in your pubspec.yaml
:
then run
To ensure optimal compatibility, make sure you respect the iOS compatibility documentation.
Android
Section titled AndroidThe plugin works out of the box.
Other platforms
Section titled Other platformsThe Contentsquare
plugin is designed to function seamlessly during the app’s build process.
For applications targeting unsupported platforms, the Contentsquare
plugin will be automatically disabled with no further actions required.
This eliminates potential conflicts and ensures a smooth build experience.
If you need support for a specific platform, reach out to your Contentsquare contact.
Automatic SDK Initialization
Section titled Automatic SDK InitializationWrap the entire application inside the ContentsquareRoot
widget:
Once you have wrapped your application with the ContentsquareRoot
widget, you will be able to access all Contentsquare API using Contentsquare()
.
Manual SDK Initialization
Section titled Manual SDK InitializationIf you want more control over when the SDK starts, refer to the manual SDK start guide.
Validate SDK integration
Section titled Validate SDK integrationWhen your application starts, your should see the following log:
With the SDK now integrated into your app, it’s time to implement calls to track screen views, transactions, and other events. Continue following this guide to learn how.
Flutter Setup
Section titled Flutter SetupSupported platforms
Section titled Supported platformsCurrently, only Flutter application on the following platforms are supported by the Contentsquare Flutter SDK
:
- Android
- iOS
Calling the SDK on other platforms is safe but will not have any effect.
If you need to use the SDK on another platform, contact our support team.
Troubleshooting
Section titled TroubleshootingIf you encounter any issues, refer to the troubleshooting guide.