Skip to content

Commit b4ddcfd

Browse files
committed
Update docs
1 parent df8cd4f commit b4ddcfd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+5224
-3543
lines changed

docs/__404error.html

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,24 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
7-
<meta name="generator" content="made with love by dartdoc 0.39.0">
7+
<meta name="generator" content="made with love by dartdoc 1.0.0">
88
<meta name="description" content="mixpanel_flutter API docs, for the Dart programming language.">
99
<title>mixpanel_flutter - Dart API docs</title>
1010

11+
1112

1213
<link rel="preconnect" href="https://fonts.gstatic.com">
1314
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
1415
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
15-
<link rel="stylesheet" href="static-assets/github.css">
16-
<link rel="stylesheet" href="static-assets/styles.css">
17-
<link rel="icon" href="static-assets/favicon.png">
16+
17+
<link rel="stylesheet" href="static-assets/github.css?v1">
18+
<link rel="stylesheet" href="static-assets/styles.css?v1">
19+
<link rel="icon" href="static-assets/favicon.png?v1">
1820

21+
1922
</head>
2023

24+
2125
<body data-base-href=""
2226
data-using-base-href="false">
2327

@@ -36,23 +40,6 @@
3640

3741
<main>
3842

39-
<div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
40-
<header id="header-search-sidebar" class="hidden-l">
41-
<form class="search-sidebar" role="search">
42-
<input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
43-
</form>
44-
</header>
45-
46-
<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
47-
<li><a href="https://mixpanel.com">mixpanel_flutter package</a></li>
48-
</ol>
49-
50-
<h5><span class="package-name">mixpanel_flutter</span> <span class="package-kind">package</span></h5>
51-
<ol>
52-
<li class="section-title">Libraries</li>
53-
<li><a href="mixpanel_flutter/mixpanel_flutter-library.html">mixpanel_flutter</a></li>
54-
</ol>
55-
</div>
5643

5744
<div id="dartdoc-main-content" class="main-content">
5845
<h1>404: Something's gone wrong :-(</h1>
@@ -69,6 +56,26 @@ <h1>404: Something's gone wrong :-(</h1>
6956
</section>
7057
</div> <!-- /.main-content -->
7158

59+
<div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
60+
<header id="header-search-sidebar" class="hidden-l">
61+
<form class="search-sidebar" role="search">
62+
<input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
63+
</form>
64+
</header>
65+
66+
<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
67+
<li><a href="https://mixpanel.com">mixpanel_flutter package</a></li>
68+
</ol>
69+
70+
71+
<h5><span class="package-name">mixpanel_flutter</span> <span class="package-kind">package</span></h5>
72+
<ol>
73+
<li class="section-title">Libraries</li>
74+
<li><a href="mixpanel_flutter/mixpanel_flutter-library.html">mixpanel_flutter</a></li>
75+
</ol>
76+
77+
</div>
78+
7279
<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
7380
</div>
7481

@@ -77,17 +84,20 @@ <h1>404: Something's gone wrong :-(</h1>
7784
<footer>
7885
<span class="no-break">
7986
mixpanel_flutter
80-
1.0.1
87+
1.2.0
8188
</span>
8289

90+
8391
</footer>
8492

85-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
86-
<script src="static-assets/typeahead.bundle.min.js"></script>
87-
<script src="static-assets/highlight.pack.js"></script>
88-
<script src="static-assets/script.js"></script>
93+
94+
95+
<script src="static-assets/highlight.pack.js?v1"></script>
96+
<script src="static-assets/script.js?v1"></script>
97+
8998

9099

91100
</body>
92101

93102
</html>
103+

docs/index.html

Lines changed: 79 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,24 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
7-
<meta name="generator" content="made with love by dartdoc 0.39.0">
7+
<meta name="generator" content="made with love by dartdoc 1.0.0">
88
<meta name="description" content="mixpanel_flutter API docs, for the Dart programming language.">
99
<title>mixpanel_flutter - Dart API docs</title>
1010

11+
1112

1213
<link rel="preconnect" href="https://fonts.gstatic.com">
1314
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
1415
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
15-
<link rel="stylesheet" href="static-assets/github.css">
16-
<link rel="stylesheet" href="static-assets/styles.css">
17-
<link rel="icon" href="static-assets/favicon.png">
16+
17+
<link rel="stylesheet" href="static-assets/github.css?v1">
18+
<link rel="stylesheet" href="static-assets/styles.css?v1">
19+
<link rel="icon" href="static-assets/favicon.png?v1">
1820

21+
1922
</head>
2023

24+
2125
<body data-base-href=""
2226
data-using-base-href="false">
2327

@@ -36,36 +40,22 @@
3640

3741
<main>
3842

39-
<div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
40-
<header id="header-search-sidebar" class="hidden-l">
41-
<form class="search-sidebar" role="search">
42-
<input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
43-
</form>
44-
</header>
45-
46-
<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
47-
<li><a href="https://mixpanel.com">mixpanel_flutter package</a></li>
48-
</ol>
49-
50-
<h5 class="hidden-xs"><span class="package-name">mixpanel_flutter</span> <span class="package-kind">package</span></h5>
51-
<ol>
52-
<li class="section-title">Libraries</li>
53-
<li><a href="mixpanel_flutter/mixpanel_flutter-library.html">mixpanel_flutter</a></li>
54-
</ol>
55-
</div>
5643

5744
<div id="dartdoc-main-content" class="main-content">
58-
<section class="desc markdown">
59-
<div align="center" style="text-align: center">
45+
46+
<section class="desc markdown">
47+
<div align="center" style="text-align: center">
6048
<img src="https://github.com/mixpanel/mixpanel-android/blob/assets/mixpanel.png?raw=true" alt="Mixpanel Flutter SDK" height="150">
6149
</div>
6250
<h1 id="table-of-contents">Table of Contents</h1><!-- MarkdownTOC -->
6351
<ul>
6452
<li><a href="#introduction">Introduction</a></li>
6553
<li><a href="#quick-start-guide">Quick Start Guide</a>
6654
<ul>
67-
<li><a href="#installation">Installation</a></li>
68-
<li><a href="#integration">Integration</a></li>
55+
<li><a href="#1-install-mixpanel">Install Mixpanel</a></li>
56+
<li><a href="#2-initialize-mixpanel">Initialize Mixpanel</a></li>
57+
<li><a href="#3-send-data">Send Data</a></li>
58+
<li><a href="#4-check-for-success">Check for Success</a></li>
6959
</ul>
7060
</li>
7161
<li><a href="#i-want-to-know-more">I want to know more!</a></li>
@@ -76,9 +66,8 @@ <h1 id="introduction">Introduction</h1>
7666
We'd also love for you to come and work with us! Check out <strong><a href="https://mixpanel.com/jobs/#openings">Jobs</a></strong> for details</p>
7767
<h1 id="quick-start-guide">Quick Start Guide</h1>
7868
<p>Check out our <strong><a href="https://developer.mixpanel.com/docs/flutter">official documentation</a></strong> for more in depth information on installing and using Mixpanel on Flutter.</p>
79-
<p><a name="installation"></a></p>
80-
<h2 id="installation">Installation</h2>
81-
<h3 id="prerequisite">Prerequisite</h3>
69+
<h2 id="1-install-mixpanel">1. Install Mixpanel</h2>
70+
<h3 id="prerequisites">Prerequisites</h3>
8271
<ul>
8372
<li><a href="https://flutter.dev/docs/get-started/install">Setup development environment for Flutter</a></li>
8473
</ul>
@@ -102,9 +91,8 @@ <h3 id="steps">Steps</h3>
10291
</ol>
10392
<pre class="language-dart"><code>import 'package:mixpanel_flutter/mixpanel_flutter.dart';
10493
</code></pre>
105-
<h2 id="integration">Integration</h2>
106-
<h3 id="initialization">Initialization</h3>
107-
<p>To start tracking with the SDK you must first initialize with your project token. To initialize the SDK, first add <code>import 'package:mixpanel_flutter/mixpanel_flutter.dart';</code> and call <code>Mixpanel.init(token);</code> with your project token as it's argument.</p>
94+
<h2 id="2-initialize-mixpanel">2. Initialize Mixpanel</h2>
95+
<p>To start tracking with the SDK you must first initialize with your project token. To initialize the SDK, first add <code>import 'package:mixpanel_flutter/mixpanel_flutter.dart';</code> and call <code>Mixpanel.init(token);</code> with your project token as it's argument. You can find your token in <a href="https://mixpanel.com/settings/project">project settings</a>.</p>
10896
<pre class="language-dart"><code class="language-dart">import 'package:mixpanel_flutter/mixpanel_flutter.dart';
10997
...
11098
class _YourClassState extends State&lt;YourClass&gt; {
@@ -122,39 +110,79 @@ <h3 id="initialization">Initialization</h3>
122110
...
123111
</code></pre>
124112
<p>Once you've called this method once, you can access <code>mixpanel</code> throughout the rest of your application.</p>
125-
<h3 id="tracking">Tracking</h3>
126-
<p>Once you've initialized the SDK, Mixpanel will <a href="https://mixpanel.com/help/questions/articles/which-common-mobile-events-can-mixpanel-collect-on-my-behalf-automatically" target="_blank">automatically collect common mobile events</a>. You can enable/ disable automatic collection through your <a href="https://mixpanel.com/help/questions/articles/how-do-i-enable-common-mobile-events-if-i-have-already-implemented-mixpanel" target="_blank">project settings</a>.
127-
With the <code>mixpanel</code> object created in <a href="#integration">the last step</a> a call to <code>track</code> is all you need to send additional events to Mixpanel.</p>
128-
<pre class="language-js"><code class="language-js">// Track with event-name
113+
<h2 id="3-send-data">3. Send Data</h2>
114+
<p>Once you've initialized the SDK, Mixpanel will <a href="https://mixpanel.com/help/questions/articles/which-common-mobile-events-can-mixpanel-collect-on-my-behalf-automatically" target="_blank">automatically collect common mobile events</a>. You can enable/disable automatic collection through your project settings.
115+
With the <code>mixpanel</code> object created in <a href="#2-initialize-mixpanel">the last step</a> a call to <code>track</code> is all you need to send additional events to Mixpanel.</p>
116+
<pre class="language-dart"><code class="language-dart">// Track with event-name
129117
mixpanel.track('Sent Message');
130118
// Track with event-name and property
131119
mixpanel.track('Plan Selected', properties: {'Plan': 'Premium'});
132120
</code></pre>
133121
<p>You're done! You've successfully integrated the Mixpanel Flutter SDK into your app. To stay up to speed on important SDK releases and updates, star or watch our repository on <a href="https://github.com/mixpanel/mixpanel-flutter">Github</a>.</p>
134-
<p><a name="i-want-to-know-more"></a></p>
122+
<h2 id="4-check-for-success">4. Check for Success</h2>
123+
<p><a href="http://mixpanel.com/report/live">Open up Live View in Mixpanel</a> to view incoming events.
124+
Once data hits our API, it generally takes ~60 seconds for it to be processed, stored, and queryable in your project.</p>
125+
<h1 id="faq">FAQ</h1>
126+
<p><strong>I want to stop tracking an event/event property in Mixpanel. Is that possible?</strong></p>
127+
<p>Yes, in Lexicon, you can intercept and drop incoming events or properties. Mixpanel won’t store any new data for the event or property you select to drop. <a href="https://help.mixpanel.com/hc/en-us/articles/360001307806#dropping-events-and-properties">See this article for more information</a>.</p>
128+
<p><strong>I have a test user I would like to opt out of tracking. How do I do that?</strong></p>
129+
<p>Mixpanel’s client-side tracking library contains the <a href="https://mixpanel.github.io/mixpanel-flutter/mixpanel_flutter/Mixpanel/optOutTracking.html">optOutTracking()</a> method, which will set the user’s local opt-out state to “true” and will prevent data from being sent from a user’s device. More detailed instructions can be found in the section, <a href="https://developer.mixpanel.com/docs/flutter#opting-users-out-of-tracking">Opting users out of tracking</a>.</p>
130+
<p><strong>Why aren't my events showing up?</strong></p>
131+
<p>To preserve battery life and customer bandwidth, the Mixpanel library doesn't send the events you record immediately. Instead, it sends batches to the Mixpanel servers every 60 seconds while your application is running, as well as when the application transitions to the background. You can call <a href="https://mixpanel.github.io/mixpanel-flutter/mixpanel_flutter/Mixpanel/flush.html">flush()</a> manually if you want to force a flush at a particular moment.</p>
132+
<pre class="language-dart"><code>mixpanel.flush();
133+
</code></pre>
134+
<p>If your events are still not showing up after 60 seconds, check if you have opted out of tracking. You can also enable Mixpanel debugging and logging, it allows you to see the debug output from the Mixpanel library. To enable it, call <a href="https://mixpanel.github.io/mixpanel-flutter/mixpanel_flutter/Mixpanel/setLoggingEnabled.html">setLoggingEnabled</a> to true, then run your iOS project with Xcode or android project with Android Studio. The logs should be available in the console.</p>
135+
<pre class="language-dart"><code>mixpanel.setLoggingEnabled(true);
136+
</code></pre>
137+
<p><strong>Starting with iOS 14.5, do I need to request the user’s permission through the AppTrackingTransparency framework to use Mixpanel?</strong></p>
138+
<p>No, Mixpanel does not use IDFA so it does not require user permission through the AppTrackingTransparency(ATT) framework.</p>
139+
<p><strong>If I use Mixpanel, how do I answer app privacy questions for the App Store?</strong></p>
140+
<p>Please refer to our <a href="https://mixpanel.com/legal/app-store-privacy-details/">Apple App Developer Privacy Guidance</a></p>
135141
<h1 id="i-want-to-know-more">I want to know more!</h1>
136142
<p>No worries, here are some links that you will find useful:</p>
137143
<ul>
138144
<li><strong><a href="https://github.com/mixpanel/mixpanel-flutter/tree/main/example">Sample app</a></strong></li>
139145
<li><strong><a href="https://developer.mixpanel.com/docs/flutter">Full API Reference</a></strong></li>
140146
</ul>
141147
<p>Have any questions? Reach out to Mixpanel <a href="https://help.mixpanel.com/hc/en-us/requests/new">Support</a> to speak to someone smart, quickly.</p>
142-
</section>
143-
148+
</section>
149+
150+
144151
<section class="summary">
145152
<h2>Libraries</h2>
146153
<dl>
147154
<dt id="mixpanel_flutter">
148-
<span class="name"><a href="mixpanel_flutter/mixpanel_flutter-library.html">mixpanel_flutter</a></span>
149-
</dt>
150-
<dd>
151-
152-
</dd>
155+
<span class="name"><a href="mixpanel_flutter/mixpanel_flutter-library.html">mixpanel_flutter</a></span>
156+
157+
</dt>
158+
<dd>
159+
</dd>
160+
153161
</dl>
154162
</section>
155163

156164
</div> <!-- /.main-content -->
157165

166+
<div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
167+
<header id="header-search-sidebar" class="hidden-l">
168+
<form class="search-sidebar" role="search">
169+
<input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
170+
</form>
171+
</header>
172+
173+
<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
174+
<li><a href="https://mixpanel.com">mixpanel_flutter package</a></li>
175+
</ol>
176+
177+
178+
<h5 class="hidden-xs"><span class="package-name">mixpanel_flutter</span> <span class="package-kind">package</span></h5>
179+
<ol>
180+
<li class="section-title">Libraries</li>
181+
<li><a href="mixpanel_flutter/mixpanel_flutter-library.html">mixpanel_flutter</a></li>
182+
</ol>
183+
184+
</div>
185+
158186
<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
159187
</div>
160188

@@ -163,17 +191,20 @@ <h2>Libraries</h2>
163191
<footer>
164192
<span class="no-break">
165193
mixpanel_flutter
166-
1.0.1
194+
1.2.0
167195
</span>
168196

197+
169198
</footer>
170199

171-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
172-
<script src="static-assets/typeahead.bundle.min.js"></script>
173-
<script src="static-assets/highlight.pack.js"></script>
174-
<script src="static-assets/script.js"></script>
200+
201+
202+
<script src="static-assets/highlight.pack.js?v1"></script>
203+
<script src="static-assets/script.js?v1"></script>
204+
175205

176206

177207
</body>
178208

179209
</html>
210+

0 commit comments

Comments
 (0)