Comments (5)
Did you append the Amplitude-Javascript snippet in to your index.html? @JideGuru
https://developers.amplitude.com/docs/flutter-setup#flutter-web-support
from amplitude-flutter.
I have the same problem in Flutter Web 2.5.3
from amplitude-flutter.
My bad. I've added the javascript snippet and now it's working
from amplitude-flutter.
how did you add the javascript snippet?? i'm currently experiencing that problem
from amplitude-flutter.
Hello, I have the same error even with the good import according to the flutter documentation. My app run in the web browser.
import 'package:amplitude_flutter/amplitude.dart';
import 'package:amplitude_flutter/identify.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
Amplitude.getInstance().init("my_key");
runApp(const MyApp());
}
OR
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
final Amplitude analytics = Amplitude.getInstance(instanceName: "project");
analytics.init("my_key");
analytics.logEvent('MyApp startup', eventProperties: {
'friend_num': 10,
'is_heavy_user': true
});
runApp(const MyApp());
}
Thanks for your help.
Amplitude_flutter: ^3.13.0
Flutter Version: 3.3.9
Device: Chrome
Device OS and Version: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
from amplitude-flutter.
Related Issues (20)
- Provide a NavigatorObserver to track navigations
- Can't find trackingOptions in flutter HOT 1
- How to mock Amplitude when performing unit test?
- Test Issue ticket creation in AMP
- IP and location are transmitted even though CoppaControl is activated HOT 5
- Nested event_properties maps only serialize the top level on web HOT 1
- amplitude_flutter plugin not install my .yaml file HOT 1
- Can you make your account a verified publisher?
- Build failed on iOS with 'dart:js' error HOT 2
- Amplitude is logging wrong User properties for flutter SDK HOT 8
- Unusually Long Sessions HOT 1
- DefaultTrackingOptions configuration is missing on Flutter SDK HOT 4
- Support Kotlin 1.8 HOT 5
- Same '$identify' event being sent on every app background, even after opt-out/not updating user properties
- Version Conflict for 'Amplitude' in amplitude_flutter on CodeMagic Builds
- Execution failed for task ':amplitude_flutter:compileDebugKotlin'. (Android Gradle 8) HOT 3
- Access hidden method error HOT 1
- Session Reply [Web]
- Urgent need of a migration guide/documentation for `amplitude_flutter 4.0.0` HOT 4
- Using with encrypted db
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplitude-flutter.