File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ export class Analytics<P extends Platform = Platform> extends BaseAnalytics {
4545 if ( ! this . sdkInstance ) return
4646
4747 this . setAccount ( )
48- this . sdkInstance . push ( [ SdkActions . SetAutoPageview , false ] )
4948
5049 switch ( this . platform ) {
5150 case 'baidu' : {
Original file line number Diff line number Diff line change 11import { isBrowser , loadRes } from '@bassist/utils'
2- import { DEFAULT_PLUGIN_ID , SUPPORTED_ANALYTICS_PLATFORMS } from './constants'
2+ import {
3+ DEFAULT_PLUGIN_ID ,
4+ SUPPORTED_ANALYTICS_PLATFORMS ,
5+ SdkActions ,
6+ } from './constants'
37import { debug } from './decorators'
48import type {
59 AnalyticsConstructorOptions ,
@@ -66,6 +70,9 @@ export class BaseAnalytics {
6670 private loadSdk ( ) {
6771 if ( ! this . sdkInstance || ! this . sdkUrl ) return
6872
73+ // Turn off auto tracking
74+ this . sdkInstance . push ( [ SdkActions . SetAutoPageview , false ] )
75+
6976 loadRes ( {
7077 type : 'js' ,
7178 id : `${ this . pluginId } -${ this . platform } -${ this . websiteId } ` ,
You can’t perform that action at this time.
0 commit comments