Skip to content

Commit ecc7b4e

Browse files
authored
Update README.md
1 parent e1ce0bb commit ecc7b4e

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ There are a few ways you can use this repo to deploy a server that can be use to
2626

2727

2828

29-
## Using the proxy server with the Mixpanel JS library
29+
## Using the proxy with...
30+
31+
### JavaScript
3032

31-
### 1. Load the Mixpanel JS library from the proxy domain
33+
#### 1. Load the Mixpanel JS library from the proxy domain
3234

3335
_Note: This is only required if you are NOT bundling the Mixpanel JS library into your source code (via our npm module or otherwise)._
3436

@@ -44,15 +46,15 @@ for(h=0;h<i.length;h++)g(a,i[h]);var j="set set_once union unset remove delete".
4446
MIXPANEL_CUSTOM_LIB_URL:"file:"===f.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";g=f.getElementsByTagName("script")[0];g.parentNode.insertBefore(e,g)}})(document,window.mixpanel||[]);
4547
```
4648

47-
### 2. Configure the Mixpanel JS client to make requests to your proxy domain
49+
#### 2. Configure the Mixpanel JS client to make requests to your proxy domain
4850

4951
Take the domain that exposes your proxy server and specify it as the value of the `api_host` config option when you initialize the Mixpanel JS SDK.
5052

5153
```js
5254
mixpanel.init("<YOUR_PROJECT_TOKEN>", {api_host: "https://<YOUR_PROXY_DOMAIN>"})
5355
```
5456

55-
## Full Example
57+
#### Full Example
5658
```index.html
5759
<html>
5860
<head>
@@ -92,3 +94,12 @@ MIXPANEL_CUSTOM_LIB_URL:"file:"===f.location.protocol&&"//cdn.mxpnl.com/libs/mix
9294
</body>
9395
</html>
9496
```
97+
98+
### Android
99+
100+
TODO
101+
102+
103+
### iOS / Swift
104+
105+
TODO

0 commit comments

Comments
 (0)