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,
|
"private": true,
|
||||||
"packageManager": "npm@11.8.0",
|
"packageManager": "npm@11.8.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "^21.0.0",
|
"@angular/common": "^21.2.3",
|
||||||
"@angular/compiler": "^21.0.0",
|
"@angular/compiler": "^21.2.3",
|
||||||
"@angular/core": "^21.0.0",
|
"@angular/core": "^21.2.3",
|
||||||
"@angular/forms": "^21.0.0",
|
"@angular/forms": "^21.2.3",
|
||||||
"@angular/platform-browser": "^21.0.0",
|
"@angular/platform-browser": "^21.2.3",
|
||||||
"@angular/platform-server": "^21.0.0",
|
"@angular/platform-server": "^21.2.3",
|
||||||
"@angular/router": "^21.0.0",
|
"@angular/router": "^21.2.3",
|
||||||
"@angular/ssr": "^21.0.3",
|
"@angular/ssr": "^21.0.3",
|
||||||
"@ng-icons/core": "^33.1.0",
|
"@ng-icons/core": "^33.1.0",
|
||||||
"@ng-icons/css.gg": "^33.1.0",
|
"@ng-icons/css.gg": "^33.1.0",
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/build": "^21.0.3",
|
"@angular/build": "^21.0.3",
|
||||||
"@angular/cli": "^21.1.4",
|
"@angular/cli": "^21.1.4",
|
||||||
"@angular/compiler-cli": "^21.0.0",
|
"@angular/compiler-cli": "^21.2.3",
|
||||||
"@types/express": "^5.0.1",
|
"@types/express": "^5.0.1",
|
||||||
"@types/node": "^20.17.19",
|
"@types/node": "^20.17.19",
|
||||||
"jsdom": "^27.1.0",
|
"jsdom": "^27.1.0",
|
||||||
|
|||||||
@@ -5,23 +5,25 @@ import { OpenPanel } from '@openpanel/web';
|
|||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class AnalyticsService {
|
export class AnalyticsService {
|
||||||
|
private openpanel: OpenPanel;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
OpenPanel.init({
|
this.openpanel = new OpenPanel({
|
||||||
clientId: 'DEINE_CLIENT_ID', // Aus dem OpenPanel Dashboard
|
clientId: 'DEINE_CLIENT_ID',
|
||||||
trackScreenViews: true, // Automatisches Tracking von Routenwechseln
|
trackScreenViews: true,
|
||||||
trackOutgoingLinks: 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?: Record<string, any>) {
|
||||||
trackEvent(name: string, properties?: object) {
|
this.openpanel.track(name, properties);
|
||||||
openpanel.track(name, properties);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Für deinen Kunden-Login: User identifizieren
|
identifyUser(userId: string, traits?: Record<string, any>) {
|
||||||
identifyUser(userId: string, traits?: object) {
|
this.openpanel.identify(userId);
|
||||||
openpanel.identify(userId, traits);
|
|
||||||
|
if (traits) {
|
||||||
|
this.openpanel.setProfile(traits);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user