@custouch/jssdk
    Preparing search index...

    Type Alias GlobalConfig

    代理接口的一些基础配置

    type GlobalConfig = {
        apiEnv?: "beta" | "cloud";
        appId?: string;
        collectBaseUrl?: string;
        collectToken?: string;
        env?: "development" | "production";
        logSession?: LogSession | null;
        preflight?: boolean;
        shouldCheckAccess?: () => boolean;
        trackOriginOpenId?: boolean;
        uaId?: string;
        useCollectReplaceAction?: boolean;
        utmKeyType?: "uaId" | "same";
    }
    Index

    Properties

    apiEnv?: "beta" | "cloud"

    区分接口地址为 beta | colud,默认从url中判断

    appId?: string

    全局的appid配置

    collectBaseUrl?: string

    自定义collect接口地址,用于客户自定义域名且域名托管在市场易的场景

    collectToken?: string

    collect header的token

    env?: "development" | "production"

    区分生产还是开发,主要做日志上报等的区分

    logSession?: LogSession | null

    阿里云日志分区

    preflight?: boolean

    自动执行preflight.ts

    shouldCheckAccess?: () => boolean

    是否进行授权登录

    trackOriginOpenId?: boolean

    分享中带上openid,访问时上报originOpenId

    uaId?: string

    全局的uaId配置

    useCollectReplaceAction?: boolean

    将默认的actionview转发到collect

    utmKeyType?: "uaId" | "same"

    影响utm key的命名规则

    • uaId{uaId}-c_utm
    • samec_utm