amplitude / amplitude/Amplitude-TypeScript

How include Referrer, Utm property to amplidude?

未关闭
#663 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
TypeScript
星标
180
派生
68
平均合并
3 天 1 小时
30 天内合并 PR
29

描述

Hi everyone!
In my Angular(version 16) project I am using amplitude library( "@amplitude/analytics-browser": "^2.4.0",). At this moment I Can not sent custom event with google metcics and user refferers. I init my amplitude instance with nex parametrs:

public initialize(apiKey: string): void {
this.instance.init(apiKey, null, {
instanceName: 'env',
defaultTracking: false,
});
}
What property I should use that add google utm and user refferes by default in my each custom event?

for example when i used amplitude-js it is workin correctly (see exaplpe below)
this.instance.init(apiKey, null, {
instanceName: 'env',
includeReferrer: true,
includeUtm: true,
});

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。