Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency mixpanel-browser to v2.55.0 #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 16, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mixpanel-browser 2.45.0 -> 2.55.0 age adoption passing confidence
@types/mixpanel-browser (source) 2.38.0 -> 2.49.1 age adoption passing confidence

Release Notes

mixpanel/mixpanel-js (mixpanel-browser)

v2.55.0

Compare Source

v2.54.1

Compare Source

v2.54.0: Module bundling and session recording updates

Compare Source

The SDK is now provided in several new builds with different options around included modules and asynchronous loading:

  1. Core mixpanel build with bundled mixpanel-recorder session-recording module (default):
import mixpanel from 'mixpanel-browser';
  1. Core mixpanel build that optionally loads mixpanel-recorder asynchronously via script tag (previous default):
import mixpanel from 'mixpanel-browser/src/loaders/loader-module-with-async-recorder';
  1. Core mixpanel build only (no session recording available):
import mixpanel from 'mixpanel-browser/src/loaders/loader-module-core';

This release also includes updates and improvements to the session recording module:

  • Improved reliability via integration with the main SDK's network batching/retry system
  • Inactivity timeouts are now determined by user interaction events
  • New configuration options enable inlining of images and fonts into recording payloads:
mixpanel.init(`my token`, {
  record_sessions_percent: 5,
  record_collect_fonts: true,
  record_inline_images: true,
});

NOTE: with image-inlining turned on, image-intensive pages may increase payload size significantly and possibly surpass the API server's request size limit.

v2.53.0: Session recording updates

Compare Source

  • Network payload format for session recording batches has changed, including client-side compression on browsers which support it
  • Google Tag Manager wrapper now includes session-recording start/stop methods

v2.52.0: Revert to persisting UTM params by default

Compare Source

This release reverts the UTM param persistence change introduced in v2.51.0, to minimize disruption for older implementations. UTM parameters will be persisted by default in super property storage when the SDK finds them on pageload. To opt in to the recommended modern behavior, use initialization option {stop_utm_persistence: true}.

v2.51.0: Updates to UTM param persistence, localStorage/cookie migration, session recording

Compare Source

  • UTM parameters are no longer persisted as superproperties by default. Mixpanel analyses now have attribution support that does not require client-side persistence of these properties. To opt in to the previous behavior, use initialization option {stop_utm_persistence: false}.
  • localStorage->cookie migration support: when switching an implementation from localStorage persistence to cookie persistence (to support cross-subdomain tracking), the SDK will now automatically copy any existing superproperties from localStorage into the new superprop cookie. This migration behavior already existed in the opposite direction (going from cookie to localStorage).
  • The initialization options record_block_class, record_block_selector, and record_mask_text_class offer finer-grained control over elements to block in session recording, and provide stricter defaults.
  • New method mixpanel.get_session_recording_properties() exposes Replay ID property for tagging events controlled by other client-side SDKs such as Segment or mParticle.

v2.50.0

Compare Source

v2.49.0: Attribution/web analytics updates

Compare Source

This release updates capabilities related to web/marketing/attribution analytics.

The track_pageview init option now accepts three string values to support SPA pageview tracking:

  • "url-with-path": fire pageview events only when main url path changes (https://example.com/foo -> https://example.com/bar but not https://example.com/foo?bar=1 -> https://example.com/foo?bar=2)
  • "url-with-path-and-query-string": fire pageview events only when main url path or query string changes (https://example.com/foo?bar=1 -> https://example.com/foo?bar=2 but not https://example.com/foo?bar=1#baz -> https://example.com/foo?bar=1#qux)
  • "full-url": fire pageview events when anything on the URL changes

Example:

mixpanel.init(`my token`, {track_pageview: `url-with-path-and-query-string`});

Profile properties storing referrer info ($initial_referrer and $initial_referring_domain) are now saved with set_once instead of set, to prevent overwriting.

Persistence of UTM parameters can now be turned off with the init option {stop_utm_persistence: true}. This is opt-in today but will be the default setting in a future release. The stop_utm_persistence option will also override the store_google option, which is responsible persisting UTM parameters today. If store_google and stop_utm_persistence are both true, any persisted UTM parameters will be cleared from storage.

Visits from AhrefsSiteAudit crawler are now ignored.

v2.48.1: Minification fix for UTM campaign properties

Compare Source

This update patches a discrepancy between the minified and unminified versions of the packaged SDK. Campaign parameters will now be stored as super properties persistently in all versions.

v2.48.0: Configurable API endpoints, miscellaneous updates and fixes

Compare Source

API endpoint routes can now be configured individually, so you can rename /track, /engage, and /groups HTTP endpoints arbitrarily. Configure with the api_routes option:

mixpanel.init(`my token`, {
  api_host: `https://my-proxy.example.com`,
  api_routes: {
    track: `foo/`,
    engage: `bar/`,
    groups: `baz/`,
  },
));

In the above example, event-tracking requests will go to https://my-proxy.example.com/foo/, user profile updates to https://my-proxy.example.com/bar/, etc.

Other fixes:

  • Event properties object passed to mixpanel.track() will no longer be mutated
  • Super properties are now reloaded from persistence when making every tracking call (i.e., kept fresh when another tab/window in the same browser has updated them)
  • Extra failsafe behavior for trying to clear queued requests when localStorage doesn't work on startup, e.g., when localStorage is full so writes fail
  • Block Chrome-Lighthouse user agent
  • Fix for error in add_group() when adding a new group to an existing list

v2.47.0: Marketing analytics improvements

Compare Source

New default event properties are now captured with each event, holding campaign data present on the URL at the time of tracking. These include UTM parameters (in the format utm_source, utm_campaign, etc.) and Click Identifiers (e.g., gclid, fbclid, etc.). This functionality can be disabled with the initialization setting {track_marketing: false}.

~UTM parameter properties are no longer persisted across pageloads as superproperties. They will be present only on events tracked on the same pageload where they were present initially.~ (2023-09-13) Correction: UTM parameter properties still persist across pageloads as superproperties. Persistence will be removed in a future release.

For better first-touch attribution, UTM parameters present on the URL on pageload will be "set once" as profile properties (meaning that a new value will not overwrite any existing value on the profile property). These property names take the format initial_utm_source, initial_utm_campaign, etc. This functionality can be disabled with the initialization setting {skip_first_touch_marketing: true}.

Support for automatic page-view tracking has been restored. With the init option {track_pageview: true}, an event named $mp_web_page_view will be tracked on pageload, containing properties identifying the current page (current_page_title, current_url_path, etc.) as well as any UTM parameters and Click Identifiers. Pageview events with these properties can also be triggered manually:

// track a pageview event
mixpanel.track_pageview();

// track pageview with additional properties
mixpanel.track_pageview({'Test variant': 'control'});

Automatic page-view tracking may be turned on by default in a future release.

Miscellaneous updates:

  • UUID generation now uses performance.now() when available as part of its time-based entropy algorithm
  • The network payload format now defaults to JSON for any API host containing the string mixpanel.com (looser than previous host checks)

v2.46.0: Identity management updates

Compare Source

The mixpanel.identify() implementation has been updated for compatibility with Mixpanel's new identity management system (v3). From this version, we will prefix randomly-generated device-specific distinct_ids with "$device:". The prefix is applied the next time a new random ID is generated; any IDs generated by previous SDK versions and persisted in the browser will continue to be used as-is until reset is called to generate a new ID. This does not change the value sent for the $device_id property, which will continue to be the randomly-generated ID without a prefix. Mixpanel's $identify endpoint has been updated to accept UUIDs with this prefix to coordinate with this change.

This release also contains more aggressive client-side deduplication in the event-batching system, to reduce superfluous network sends in edge cases where parts of the queue/batch system fail. Related to this update, events now include a property mp_sent_by_lib_version which can distinguish the version of the library that actually sent an event over the network vs the version that originally queued the event.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update dependency @types/mixpanel-browser to v2.38.1 Update dependency mixpanel-browser to v2.46.0 Mar 24, 2023
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from 837f640 to ea1971a Compare March 24, 2023 00:29
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from ea1971a to 344d00c Compare May 27, 2023 08:10
@renovate renovate bot changed the title Update dependency mixpanel-browser to v2.46.0 Update dependency mixpanel-browser to v2.47.0 May 27, 2023
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch 2 times, most recently from 50a0811 to c1bf1e8 Compare June 22, 2023 22:52
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from c1bf1e8 to d462959 Compare July 7, 2023 09:26
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch 2 times, most recently from 4b6e63f to bd30a05 Compare September 27, 2023 13:26
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from bd30a05 to e697c96 Compare October 18, 2023 10:25
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from e697c96 to 2e7ed78 Compare November 7, 2023 12:36
@renovate renovate bot changed the title Update dependency mixpanel-browser to v2.47.0 Update dependency mixpanel-browser to v2.48.0 Nov 13, 2023
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from 2e7ed78 to d97245f Compare November 13, 2023 23:07
@renovate renovate bot changed the title Update dependency mixpanel-browser to v2.48.0 Update dependency mixpanel-browser to v2.48.1 Nov 14, 2023
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from d97245f to 011e737 Compare November 14, 2023 22:55
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch 2 times, most recently from bcece01 to b8d8ea8 Compare December 27, 2023 01:07
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from b8d8ea8 to 56cda94 Compare February 6, 2024 04:55
@renovate renovate bot changed the title Update dependency mixpanel-browser to v2.48.1 Update dependency mixpanel-browser to v2.49.0 Feb 6, 2024
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from 56cda94 to c21aa38 Compare February 9, 2024 22:38
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from c21aa38 to 32e2a54 Compare April 30, 2024 00:25
@renovate renovate bot changed the title Update dependency mixpanel-browser to v2.49.0 Update dependency mixpanel-browser to v2.50.0 Apr 30, 2024
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from 32e2a54 to aea1ebf Compare May 30, 2024 18:02
@renovate renovate bot changed the title Update dependency mixpanel-browser to v2.50.0 Update dependency mixpanel-browser to v2.51.0 May 30, 2024
@renovate renovate bot changed the title Update dependency mixpanel-browser to v2.51.0 Update dependency mixpanel-browser to v2.52.0 Jun 7, 2024
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from aea1ebf to fc8335e Compare June 7, 2024 19:36
@renovate renovate bot changed the title Update dependency mixpanel-browser to v2.52.0 Update dependency mixpanel-browser to v2.53.0 Jun 22, 2024
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from fc8335e to 4bb3a06 Compare June 22, 2024 01:36
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from 4bb3a06 to 61efabc Compare July 11, 2024 16:24
@renovate renovate bot changed the title Update dependency mixpanel-browser to v2.53.0 Update dependency mixpanel-browser to v2.54.0 Jul 24, 2024
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from 61efabc to 3a06406 Compare July 24, 2024 01:50
@renovate renovate bot changed the title Update dependency mixpanel-browser to v2.54.0 Update dependency mixpanel-browser to v2.54.1 Jul 30, 2024
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch 2 times, most recently from 7b02cd7 to 8ccc0f7 Compare August 3, 2024 00:41
@renovate renovate bot changed the title Update dependency mixpanel-browser to v2.54.1 Update dependency mixpanel-browser to v2.55.0 Aug 3, 2024
@renovate renovate bot force-pushed the renovate/mixpanel-browser-2.x branch from 8ccc0f7 to 3e9fc79 Compare August 21, 2024 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants