@@ -504,10 +504,10 @@ The default config is:
504
504
track: ' track/' ,
505
505
engage: ' engage/' ,
506
506
groups: ' groups/' ,
507
- }
507
+ },
508
508
509
509
// HTTP method for tracking requests
510
- api_method: ' POST'
510
+ api_method: ' POST' ,
511
511
512
512
// transport for sending requests ('XHR' or 'sendBeacon')
513
513
// NB: sendBeacon should only be used for scenarios such as
@@ -516,7 +516,7 @@ The default config is:
516
516
// or any way to know the result of the request. Mixpanel
517
517
// tracking via sendBeacon will not support any event-
518
518
// batching or retry mechanisms.
519
- api_transport: ' XHR'
519
+ api_transport: ' XHR' ,
520
520
521
521
// request-batching/queueing/retry
522
522
batch_requests: true ,
@@ -536,85 +536,85 @@ The default config is:
536
536
// correct cross-subdomain cookies on unusual domains like
537
537
// subdomain.mainsite.avocat.fr; NB this cannot be used to
538
538
// set cookies on a different domain than the current origin
539
- cookie_domain: ' '
539
+ cookie_domain: ' ' ,
540
540
541
541
// super properties cookie expiration (in days)
542
- cookie_expiration: 365
542
+ cookie_expiration: 365 ,
543
543
544
544
// if true, cookie will be set with SameSite=None; Secure
545
545
// this is only useful in special situations, like embedded
546
546
// 3rd-party iframes that set up a Mixpanel instance
547
- cross_site_cookie: false
547
+ cross_site_cookie: false ,
548
548
549
549
// super properties span subdomains
550
- cross_subdomain_cookie: true
550
+ cross_subdomain_cookie: true ,
551
551
552
552
// debug mode
553
- debug: false
553
+ debug: false ,
554
554
555
555
// if this is true, the mixpanel cookie or localStorage entry
556
556
// will be deleted, and no user persistence will take place
557
- disable_persistence: false
557
+ disable_persistence: false ,
558
558
559
559
// if this is true, Mixpanel will automatically determine
560
560
// City, Region and Country data using the IP address of
561
- // the client
562
- ip: true
561
+ // the client
562
+ ip: true ,
563
563
564
564
// opt users out of tracking by this Mixpanel instance by default
565
- opt_out_tracking_by_default: false
565
+ opt_out_tracking_by_default: false ,
566
566
567
567
// opt users out of browser data storage by this Mixpanel instance by default
568
- opt_out_persistence_by_default: false
568
+ opt_out_persistence_by_default: false ,
569
569
570
570
// persistence mechanism used by opt-in/opt-out methods - cookie
571
571
// or localStorage - falls back to cookie if localStorage is unavailable
572
- opt_out_tracking_persistence_type: ' localStorage'
572
+ opt_out_tracking_persistence_type: ' localStorage' ,
573
573
574
574
// customize the name of cookie/localStorage set by opt-in/opt-out methods
575
- opt_out_tracking_cookie_prefix: null
575
+ opt_out_tracking_cookie_prefix: null ,
576
576
577
577
// type of persistent store for super properties (cookie/
578
578
// localStorage) if set to 'localStorage', any existing
579
579
// mixpanel cookie value with the same persistence_name
580
580
// will be transferred to localStorage and deleted
581
- persistence: ' cookie'
581
+ persistence: ' cookie' ,
582
582
583
583
// name for super properties persistent store
584
- persistence_name: ' '
584
+ persistence_name: ' ' ,
585
585
586
586
// names of properties/superproperties which should never
587
587
// be sent with track() calls
588
- property_blacklist: []
588
+ property_blacklist: [],
589
589
590
590
// if this is true, mixpanel cookies will be marked as
591
591
// secure, meaning they will only be transmitted over https
592
- secure_cookie: false
592
+ secure_cookie: false ,
593
593
594
594
// disables enriching user profiles with first touch marketing data
595
- skip_first_touch_marketing: false
595
+ skip_first_touch_marketing: false ,
596
596
597
597
// the amount of time track_links will
598
598
// wait for Mixpanel's servers to respond
599
- track_links_timeout: 300
599
+ track_links_timeout: 300 ,
600
600
601
601
// adds any UTM parameters and click IDs present on the page to any events fired
602
- track_marketing: true
602
+ track_marketing: true ,
603
603
604
604
// enables automatic page view tracking using default page view events through
605
605
// the track_pageview() method
606
- track_pageview: false
606
+ track_pageview: false ,
607
607
608
608
// if you set upgrade to be true, the library will check for
609
609
// a cookie from our old js library and import super
610
610
// properties from it, then the old cookie is deleted
611
611
// The upgrade config option only works in the initialization,
612
612
// so make sure you set it when you create the library.
613
- upgrade: false
613
+ upgrade: false ,
614
614
615
615
// extra HTTP request headers to set for each API request, in
616
616
// the format {'Header-Name': value}
617
- xhr_headers: {}
617
+ xhr_headers: {},
618
618
619
619
// whether to ignore or respect the web browser's Do Not Track setting
620
620
ignore_dnt: false
0 commit comments