diff --git a/docs/tracking-methods/integrations/google-tag-manager.mdx b/docs/tracking-methods/integrations/google-tag-manager.mdx
index d79383ed..c2c60a4a 100644
--- a/docs/tracking-methods/integrations/google-tag-manager.mdx
+++ b/docs/tracking-methods/integrations/google-tag-manager.mdx
@@ -9,11 +9,11 @@ This page walks through Mixpanel's native integration with Google Tag Manager (G
Our [video walkthrough](https://user-images.githubusercontent.com/556882/154125933-b584de10-b7fa-4668-b815-7429192d867a.mp4) demonstrates how get started using our GTM template.
-
-
+
+
@@ -22,7 +22,7 @@ The easiest way to install the custom template is to locate it in the [Google Ta
To **manually install** the template, e.g. for debugging prior to the changes being published in the community template gallery, follow the steps below:
1. Download the `./src/template.tpl` file locally.
-2. Open a **Google Tag Manager** _Web_ container via the [Google Tag Manager user interface](https://tagmanager.google.com/). Preferably one that is already deployed on a website where you can test the template with real use cases. (Learn more about creating a container [here](https://support.google.com/tagmanager/answer/14842164?hl=en&ref_topic=15191151&sjid=13808649871508707391-NC))
+2. Open a **Google Tag Manager** _Web_ container via the [Google Tag Manager user interface](https://tagmanager.google.com/). Preferably one already deployed on a website where you can test the template in real-world use cases. (Learn more about creating a container [here](https://support.google.com/tagmanager/answer/14842164?hl=en&ref_topic=15191151&sjid=13808649871508707391-NC))
3. In the GTM UI, browse to **Templates**, and in the box titled **Tag Templates**, click the blue **New** button.
4. Once the **Template Editor** is open, click the menu (three vertical dots) in the top-right corner of the window and choose **Import**.
5. Select the `template.tpl` file you downloaded locally.
@@ -47,16 +47,12 @@ This way, the user does not need to worry about initialization; just ensure that
### Custom Initialization Options
-To add initialization options for capabilities like [Session Replay](/docs/tracking-methods/sdks/javascript#implementation--sampling) (`record_sessions_percent`), [Heatmaps](/docs/tracking-methods/sdks/javascript#heatmaps) (`record_heatmap_data`), [Feature Flags](/docs/featureflags), routing data to [EU Servers for EU Data Residency](/docs/tracking-methods/sdks/javascript#eu-data-residency), or routing data to [IN Servers for India Data Residency](/docs/tracking-methods/sdks/javascript#india-data-residency) to Google Tag Manager:
+To add initialization options for capabilities like [Session Replay](/docs/tracking-methods/sdks/javascript#implementation--sampling) (`record_sessions_percent`), [Session Replay UI controls](/docs/tracking-methods/sdks/javascript/javascript-replay#remote-configuration) (`remote_settings_mode`), [Heatmaps](/docs/tracking-methods/sdks/javascript#heatmaps) (`record_heatmap_data`), [Feature Flags](/docs/featureflags), routing data to [EU Servers for EU Data Residency](/docs/tracking-methods/sdks/javascript#eu-data-residency), or routing data to [IN Servers for India Data Residency](/docs/tracking-methods/sdks/javascript#india-data-residency) to Google Tag Manager:
1. Add a new tag in GTM and choose the Mixpanel tag type
-
2. For the **Project Token** field, enter [your Mixpanel project token](/docs/orgs-and-projects/managing-projects#find-your-project-tokens)
-
3. For **Tag Type**, select **init** from the dropdown
-
4. For **Initialization**, choose **Set Options Manually**
-
5. In the **Option** section, add the relevant key-value pair according to your needs. The config options are listed [here](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelset_config).
For example:
@@ -72,53 +68,43 @@ For example:
To use [autocapture initialization options](/docs/tracking-methods/sdks/javascript#autocapture), such as `capture_extra_attrs` with GTM, you will need to create a [custom Javascript variable](https://support.google.com/tagmanager/answer/7683362?hl=en) in GTM, then use that variable for your Autocapture configuration.
-
-
-
-
-First, create a Custom Javascript variable that returns the autocapture configuration object:
-
-1. In GTM, go to **Variables > User-Defined Variables > New**
-2. Choose **Custom Javascript** as the variable type
-3. Add code that returns the autocapture configuration object, including the `capture_extra_attrs` option
-
-For example, the Custom Javascript variable might look like this:
-
-```javascript Javascript
-function() {
- return {
- pageview: "full-url",
- click: true,
- input: true,
- scroll: true,
- submit: true,
- capture_extra_attrs: ['data-cta-name', 'data-cta-position']
- };
-}
-```
-
-
-
-
-Once the custom variable is created:
-
-1. Edit the Mixpanel initialization tag in GTM
-
-2. For the Autocapture option, instead of selecting "Enabled" or "Disabled" from the dropdown, select the custom Javascript variable
-
-
-
-
-After setting up the tag with the custom variable:
-
-1. Use GTM's [preview mode](https://support.google.com/tagmanager/answer/6107056?hl=en&sjid=13808649871508707391-NC) to verify that the tag is firing correctly
-
-2. Check in the browser's developer console that the Mixpanel configuration includes the custom autocapture settings
-
-3. Verify in Mixpanel that the extra attributes are being captured with your events
-
-This approach allows for customized autocapture options beyond the simple enabled/disabled toggle that's available in the standard GTM template interface.
-
+
+ First, create a Custom Javascript variable that returns the autocapture configuration object:
+
+ 1. In GTM, go to **Variables \> User-Defined Variables \> New**
+ 2. Choose **Custom Javascript** as the variable type
+ 3. Add code that returns the autocapture configuration object, including the `capture_extra_attrs` option
+
+ For example, the Custom Javascript variable might look like this:
+
+ ```javascript Javascript
+ function() {
+ return {
+ pageview: "full-url",
+ click: true,
+ input: true,
+ scroll: true,
+ submit: true,
+ capture_extra_attrs: ['data-cta-name', 'data-cta-position']
+ };
+ }
+ ```
+
+
+ Once the custom variable is created:
+
+ 1. Edit the Mixpanel initialization tag in GTM
+ 2. For the Autocapture option, instead of selecting "Enabled" or "Disabled" from the dropdown, select the custom Javascript variable
+
+
+ After setting up the tag with the custom variable:
+
+ 1. Use GTM's [preview mode](https://support.google.com/tagmanager/answer/6107056?hl=en&sjid=13808649871508707391-NC) to verify that the tag is firing correctly
+ 2. Check in the browser's developer console that the Mixpanel configuration includes the custom autocapture settings
+ 3. Verify in Mixpanel that the extra attributes are being captured with your events
+
+ This approach allows for customized autocapture options beyond the simple enabled/disabled toggle that's available in the standard GTM template interface.
+
### Google Tag Manager with Feature Flag Configuration
@@ -131,21 +117,20 @@ Feature Flags allow you to control feature rollout, conduct A/B testing, and man
2. Under Feature Flags,
- a) Select Enabled to enable feature flag fetching.
- b) If your flags use a data group key as a custom Variant Assignment Key (e.g., `company_id`) or Runtime Targeting, you'll need to pass a context object.
- - You can create a **Custom JavaScript Variable** that returns the flags config object:
-
- ```javascript Javascript
- function() {
- return {
- context: {
- company_id: "your_company_id",
- custom_properties: {
- platform: "web",
- },
- },
- };
- }
- ```
- - You can create a **Data Layer Variable** in GTM whose value is set by your application to return the flags config object, and then reference that variable in your Mixpanel init tag.
+ - You can create a **Custom JavaScript Variable** that returns the flags config object:
+ ```javascript Javascript
+ function() {
+ return {
+ context: {
+ company_id: "your_company_id",
+ custom_properties: {
+ platform: "web",
+ },
+ },
+ };
+ }
+ ```
+ - You can create a **Data Layer Variable** in GTM whose value is set by your application to return the flags config object, and then reference that variable in your Mixpanel init tag.
#### Flag Evaluation
@@ -160,6 +145,7 @@ await window.mixpanel.flags.is_enabled("flag_key", false)
// Get the variant value for an Experiment or Dynamic Configuration flag
await window.mixpanel.flags.get_variant_value("flag_key", "control")
```
+
Alternatively, you can implement this logic in GTM directly such as in Custom HTML tags or in Custom Javascript variables to evaluate flags and push the results to the data layer for use by your implementation.
If the current user is in your feature flag rollout, evaluation will trigger tracking an exposure event, `$experiment_started`, to Mixpanel.
@@ -169,7 +155,7 @@ If the current user is in your feature flag rollout, evaluation will trigger tra
After adding the **Project Token** to its respective field, you need to choose what **type** of tag to use. Each type corresponds with some command you can use with the Mixpanel Javascript API.
-Note that `init`, `push`, and any of the "getter" commands are not supported in the template.
+ Note that `init`, `push`, and any of the "getter" commands are not supported in the template.
The more complex tag types (`group`, `people`, and `track`) are elevated to the top of the drop-down menu with the `-` prefix to separate them from the other commands.
@@ -181,7 +167,7 @@ Once you select a tag type, **additional options may appear.** Please have a loo
As of October 2025, the GTM template sets two initialization defaults that differ from the JS SDK. This applies to anyone who installed the template fresh or opted into new versions of the template update.
| Option | GTM Template Default | JS SDK Default |
-|---|---|---|
+| --- | --- | --- |
| `persistence` | `localStorage` | `cookie` |
| `stop_utm_persistence` | `true` | `false` |
@@ -193,58 +179,58 @@ Switching between template versions and/or the JS SDK without accounting for the
These are tags you will likely need in any Mixpanel-GTM implementation:
-| GTM Tag Type | Equivalent Mixpanel SDK Method (Link to Spec) | Function Description |
-| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| - Track | [`track`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneltrack) | Tracks an event. This is the most important and frequently used Mixpanel function. |
-| - Track Pageview | [`track_pageview`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneltrack_pageview) | Tracks a default Mixpanel page view event, which can include extra default event properties to improve page view data |
-| init | [`init`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelinit) | Initializes a new instance of Mixpanel |
-| identify | [`identify`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelidentify) | Identifies a user with a unique ID to track user activity across devices and ties a user to their events. If using feature flags, this will also trigger a reload of flags with the new user id |
-| register | [`register`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelregister) | Registers a set of [super properties](/docs/tracking-methods/sdks/javascript#setting-super-properties), which are included with all events. Overwrites existing super properties if present |
-| reset | [`reset`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelreset) | Clears super properties and generates a new random distinct_id |
+| GTM Tag Type | Equivalent Mixpanel SDK Method (Link to Spec) | Function Description |
+| --- | --- | --- |
+| - Track | [`track`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneltrack) | Tracks an event. This is the most important and frequently used Mixpanel function. |
+| - Track Pageview | [`track_pageview`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneltrack_pageview) | Tracks a default Mixpanel page view event, which can include extra default event properties to improve page view data |
+| init | [`init`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelinit) | Initializes a new instance of Mixpanel |
+| identify | [`identify`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelidentify) | Identifies a user with a unique ID to track user activity across devices and ties a user to their events. If using feature flags, this will also trigger a reload of flags with the new user id |
+| register | [`register`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelregister) | Registers a set of [super properties](/docs/tracking-methods/sdks/javascript#setting-super-properties), which are included with all events. Overwrites existing super properties if present |
+| reset | [`reset`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelreset) | Clears super properties and generates a new random distinct\_id |
**Group Tags for Group Analytics**
-| GTM Tag Type | Equivalent Mixpanel SDK Method (Link to Spec) | Function Description |
-| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
-| add_group | [`add_group`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneladd_group) | Adds a new group for the user |
-| remove_group | [`remove_group`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelremove_group) | Removes a group from the user |
-| set_group | [`set_group`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelset_group) | Registers the current user into one/many groups |
-| group.remove | [`group.remove`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelgroupremove) | Removes a group property from a group. The value will be ignored if doesn't exist |
-| group.set | [`group.set`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelgroupset) | Sets properties on a group, overwriting existing values if present |
-| group.set_once | [`group.set_once`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelgroupset_once) | Set properties on a group, only if they do not yet exist |
-| group.union | [`group.union`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelgroupunion) | Merges a given list with a list-valued group property, excluding duplicate values |
-| group.unset | [`group.unset`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelgroupunset) | Unsets properties on a group permanently |
+| GTM Tag Type | Equivalent Mixpanel SDK Method (Link to Spec) | Function Description |
+| --- | --- | --- |
+| add\_group | [`add_group`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneladd_group) | Adds a new group for the user |
+| remove\_group | [`remove_group`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelremove_group) | Removes a group from the user |
+| set\_group | [`set_group`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelset_group) | Registers the current user into one/many groups |
+| group.remove | [`group.remove`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelgroupremove) | Removes a group property from a group. The value will be ignored if doesn't exist |
+| group.set | [`group.set`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelgroupset) | Sets properties on a group, overwriting existing values if present |
+| group.set\_once | [`group.set_once`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelgroupset_once) | Set properties on a group, only if they do not yet exist |
+| group.union | [`group.union`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelgroupunion) | Merges a given list with a list-valued group property, excluding duplicate values |
+| group.unset | [`group.unset`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelgroupunset) | Unsets properties on a group permanently |
**People Tags for User Profiles**
-| GTM Tag Type | Equivalent Mixpanel SDK Method (Link to Spec) | Function Description |
-| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
-| people.append | [`people.append`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeopleappend) | Appends a value to a list-typed user property |
-| people.delete_user | [`people.delete_user`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeopledelete_user) | Permanently deletes the current user profile from Mixpanel (using the current distinct_id) |
-| people.increment | [`people.increment`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeopleincrement) | Increments/decrements numeric user profile properties |
-| people.remove | [`people.remove`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeopleremove) | Removes a value from a list-typed user property |
-| people.set | [`people.set`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeopleset) | Sets properties on a user profile, overwriting existing values if present |
-| people.set_once | [`people.set_once`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeople.set_once) | Sets properties on a user profile, only if they do not yet exist |
-| people.union | [`people.union`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeople.union) | Merges a given list with a list-valued user property, excluding duplicate values |
-| people.unset | [`people.unset`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeople.unset) | Unsets properties on a user profile permanently |
+| GTM Tag Type | Equivalent Mixpanel SDK Method (Link to Spec) | Function Description |
+| --- | --- | --- |
+| people.append | [`people.append`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeopleappend) | Appends a value to a list-typed user property |
+| people.delete\_user | [`people.delete_user`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeopledelete_user) | Permanently deletes the current user profile from Mixpanel (using the current distinct\_id) |
+| people.increment | [`people.increment`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeopleincrement) | Increments/decrements numeric user profile properties |
+| people.remove | [`people.remove`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeopleremove) | Removes a value from a list-typed user property |
+| people.set | [`people.set`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeopleset) | Sets properties on a user profile, overwriting existing values if present |
+| people.set\_once | [`people.set_once`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeople.set_once) | Sets properties on a user profile, only if they do not yet exist |
+| people.union | [`people.union`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeople.union) | Merges a given list with a list-valued user property, excluding duplicate values |
+| people.unset | [`people.unset`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelpeople.unset) | Unsets properties on a user profile permanently |
**Additional Mappings**
-| GTM Tag Type | Equivalent Mixpanel SDK Method (Link to Spec) | Function Description |
-| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| alias | [`alias`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelalias) | Creates an alias which Mixpanel will use to remap one id to another (Only relevant for projects using [Legacy ID Management](https://github.com/mixpanel/docs-legacy/blob/main/legacy/aliases.md#manage-identity-with-alias-and-identify-methods) or [Original ID Merge](/docs/tracking-methods/id-management/identifying-users-original)) |
-| clear_opt_in_out_tracking | [`clear_opt_in_out_tracking`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelclear_opt_in_out_tracking) | Clears the user's opt in/out status and sets it to the default specified in `init` (`false` by default) |
-| disable | [`disable`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneldisable) | Disables specific events from being tracked |
-| opt_in_tracking | [`opt_in_tracking`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelopt_in_tracking) | Opts the user in to data tracking and cookies/localstorage |
-| opt_out_tracking | [`opt_out_tracking`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelopt_out_tracking) | Opts the user out of data tracking and cookies/localstorage |
-| register_once | [`register_once`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelregister_once) | Registers a set of super properties only once. This will not overwrite existing super properties |
-| set_config | [`set_config`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelset_config) | Updates the configuration for the Mixpanel instance |
-| time_event | [`time_event`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneltime_event) | Starts timing an event by including the time between this call and a later 'track' call for the same event as the `$duration` event property |
-| track_forms | [`track_forms`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneltrack_forms) | Tracks form submissions |
-| track_links | [`track_links`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneltrack_links) | Track clicks on a set of document elements |
-| start_session_recording | [`start_session_recording`](/docs/session-replay/implement-session-replay/session-replay-web#start-capturing-replay-data) | Forces recording to begin, regardless of the `record_sessions_percent` init option. This will have no effect if replay data collection is already in progress |
-| stop_session_recording | [`stop_session_recording`](/docs/session-replay/implement-session-replay/session-replay-web#stop-capturing-replay-data) | Stops any active replay data collection. This will have no effect if there is no replay data collection in progress |
-| unregister | [`unregister`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelunregister) | Delete a super property stored with the current user |
+| GTM Tag Type | Equivalent Mixpanel SDK Method (Link to Spec) | Function Description |
+| --- | --- | --- |
+| alias | [`alias`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelalias) | Creates an alias which Mixpanel will use to remap one id to another (Only relevant for projects using [Legacy ID Management](https://github.com/mixpanel/docs-legacy/blob/main/legacy/aliases.md#manage-identity-with-alias-and-identify-methods) or [Original ID Merge](/docs/tracking-methods/id-management/identifying-users-original)) |
+| clear\_opt\_in\_out\_tracking | [`clear_opt_in_out_tracking`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelclear_opt_in_out_tracking) | Clears the user's opt in/out status and sets it to the default specified in `init` (`false` by default) |
+| disable | [`disable`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneldisable) | Disables specific events from being tracked |
+| opt\_in\_tracking | [`opt_in_tracking`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelopt_in_tracking) | Opts the user in to data tracking and cookies/localstorage |
+| opt\_out\_tracking | [`opt_out_tracking`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelopt_out_tracking) | Opts the user out of data tracking and cookies/localstorage |
+| register\_once | [`register_once`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelregister_once) | Registers a set of super properties only once. This will not overwrite existing super properties |
+| set\_config | [`set_config`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelset_config) | Updates the configuration for the Mixpanel instance |
+| time\_event | [`time_event`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneltime_event) | Starts timing an event by including the time between this call and a later 'track' call for the same event as the `$duration` event property |
+| track\_forms | [`track_forms`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneltrack_forms) | Tracks form submissions |
+| track\_links | [`track_links`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneltrack_links) | Track clicks on a set of document elements |
+| start\_session\_recording | [`start_session_recording`](/docs/session-replay/implement-session-replay/session-replay-web#start-capturing-replay-data) | Forces recording to begin, regardless of the `record_sessions_percent` init option. This will have no effect if replay data collection is already in progress |
+| stop\_session\_recording | [`stop_session_recording`](/docs/session-replay/implement-session-replay/session-replay-web#stop-capturing-replay-data) | Stops any active replay data collection. This will have no effect if there is no replay data collection in progress |
+| unregister | [`unregister`](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpanelunregister) | Delete a super property stored with the current user |
## Firing The Tag