我已经在我的角度5应用程序中集成了angulartics2和Piwik。在观察到跟踪的网址后,我在Piwik管理模块中成功找到了网址跟踪,发现http://localhost:4200/#/app/#/app/main-route/sub-route。
以下是根据演示使用的代码
在app.module.ts
@NgModule({
imports : [Angulartics2Module.forRoot([Angulartics2Piwik])]
});
在app.component.ts
中export class AppComponent implements OnInit{
constructor(private angulartics2: Angulartics2) {
}
}
任何人都可以知道为什么会这样吗?
提前致谢。 桑帕特