gitea umzug
This commit is contained in:
845
package-lock.json
generated
845
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@@ -24,13 +24,13 @@
|
||||
"private": true,
|
||||
"packageManager": "npm@11.8.0",
|
||||
"dependencies": {
|
||||
"@angular/common": "^21.0.0",
|
||||
"@angular/compiler": "^21.0.0",
|
||||
"@angular/core": "^21.0.0",
|
||||
"@angular/forms": "^21.0.0",
|
||||
"@angular/platform-browser": "^21.0.0",
|
||||
"@angular/platform-server": "^21.0.0",
|
||||
"@angular/router": "^21.0.0",
|
||||
"@angular/common": "^21.2.3",
|
||||
"@angular/compiler": "^21.2.3",
|
||||
"@angular/core": "^21.2.3",
|
||||
"@angular/forms": "^21.2.3",
|
||||
"@angular/platform-browser": "^21.2.3",
|
||||
"@angular/platform-server": "^21.2.3",
|
||||
"@angular/router": "^21.2.3",
|
||||
"@angular/ssr": "^21.0.3",
|
||||
"@ng-icons/core": "^33.1.0",
|
||||
"@ng-icons/css.gg": "^33.1.0",
|
||||
@@ -42,7 +42,7 @@
|
||||
"devDependencies": {
|
||||
"@angular/build": "^21.0.3",
|
||||
"@angular/cli": "^21.1.4",
|
||||
"@angular/compiler-cli": "^21.0.0",
|
||||
"@angular/compiler-cli": "^21.2.3",
|
||||
"@types/express": "^5.0.1",
|
||||
"@types/node": "^20.17.19",
|
||||
"jsdom": "^27.1.0",
|
||||
|
||||
@@ -5,23 +5,25 @@ import { OpenPanel } from '@openpanel/web';
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class AnalyticsService {
|
||||
private openpanel: OpenPanel;
|
||||
|
||||
constructor() {
|
||||
OpenPanel.init({
|
||||
clientId: 'DEINE_CLIENT_ID', // Aus dem OpenPanel Dashboard
|
||||
trackScreenViews: true, // Automatisches Tracking von Routenwechseln
|
||||
this.openpanel = new OpenPanel({
|
||||
clientId: 'DEINE_CLIENT_ID',
|
||||
trackScreenViews: true,
|
||||
trackOutgoingLinks: true,
|
||||
url: 'https://api.deine-coolify-domain.de' // WICHTIG: Deine eigene API URL!
|
||||
});
|
||||
}
|
||||
|
||||
// Methode für benutzerdefinierte Events (das "Brett")
|
||||
trackEvent(name: string, properties?: object) {
|
||||
openpanel.track(name, properties);
|
||||
trackEvent(name: string, properties?: Record<string, any>) {
|
||||
this.openpanel.track(name, properties);
|
||||
}
|
||||
|
||||
// Für deinen Kunden-Login: User identifizieren
|
||||
identifyUser(userId: string, traits?: object) {
|
||||
openpanel.identify(userId, traits);
|
||||
identifyUser(userId: string, traits?: Record<string, any>) {
|
||||
this.openpanel.identify(userId);
|
||||
|
||||
if (traits) {
|
||||
this.openpanel.setProfile(traits);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user