Zum Inhalt springen

Beispiele für benutzerdefinierte Events

Unten finden Sie eine Reihe von In-App-Events, die für verschiedene App-Kategorien empfohlen werden.

Um eines dieser oder andere Events zu implementieren:

  • erstellen Sie ein Event in Ihrem Pushwoosh Control Panel und fügen Sie bei Bedarf Attribute hinzu;
  • integrieren Sie die postEvent-Methode in Ihr mobiles Projekt und geben Sie den Namen des Events und seine Attribute genau so an, wie sie im Control Panel sind.
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Event name", { // event name exactly as in Control Panel
"attribute 1": "string value", // attribute name and type exactly as in Control Panel
"attribute 2": "string value" // attribute name and type exactly as in Control Panel
});
});

Mobile Apps

Anchor link to

Lösen Sie dieses Event aus, wenn sich Benutzer von ihren Konten in Ihrer App abmelden.

Empfohlene Attribute:

  • user_id: String
  • date: Date
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Log out", {
"user_id": "string value",
"date": "date value"
});
});

Zahlungsmethode hinzugefügt

Anchor link to

Lösen Sie dieses Event aus, wenn ein Benutzer eine Zahlungsmethode zu seinem Konto in Ihrer App hinzufügt, z. B. Karteninformationen angibt oder das Konto mit einem Zahlungssystem verknüpft.

Empfohlene Attribute:

  • payment_method: String,
  • user_id: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Payment method added", {
"user_id": "string value",
"payment_method": "string value"
});
});

Zahlungsmethode geändert

Anchor link to

Senden Sie dieses Event, wenn ein Benutzer seine Zahlungsmethode in der App aktualisiert.

Empfohlene Attribute:

  • user_id: String,
  • payment_method: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Payment method changed", {
"user_id": "string value",
"payment_method": "string value"
});
});

Button geklickt

Anchor link to

Verfolgen Sie mit diesem Event Klicks auf Buttons in der App, um Ihre Analysen zu verbessern, verschiedene Kommunikationsstrategien zu testen und die Relevanz Ihrer Nachrichten basierend auf dem Kundenverhalten zu erhöhen.

Empfohlene Event-Attribute:

  • user_id: String
  • button_link: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Button clicked", {
"user_id": "string value",
"button_link": "string value"
});
});

Anwendung aktualisiert

Anchor link to

Lösen Sie dieses Event jedes Mal aus, wenn ein Benutzer eine aktualisierte Version Ihrer App installiert.

Empfohlene Attribute:

  • previous_app_version: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Application updated", {
"previous_app_version": "string value"
});
});

Betriebssystem aktualisiert

Anchor link to

Lösen Sie dieses Event aus, wenn ein Benutzer die Betriebssystemversion seines Geräts aktualisiert, um sicherzustellen, dass Ihre App vollständig konform ist.

Empfohlene Attribute:

  • previous_OS_version: String
  • new_OS_version: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("OS updated", {
"previous_OS_version": "string value",
"new_OS_version": "string value"
});
});

E-Commerce

Anchor link to

Produkt zum Warenkorb hinzugefügt

Anchor link to

Lösen Sie dieses Event aus, sobald ein Benutzer ein Produkt in seinen Warenkorb legt, um Kampagnen für abgebrochene Warenkörbe zu erstellen, Benutzer-Tags zu setzen oder die Effizienz Ihrer Werbeaktionen zu analysieren.

Empfohlene Attribute:

  • product_id: String
  • price: Integer
  • source: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Product added to cart", {
"product_id": "string value",
"price": 1,
"source": "string value"
});
});

Kauf mit Rabatt

Anchor link to

Lösen Sie dieses Event aus, sobald ein Benutzer ein Produkt mit einem Rabattcoupon kauft.

Empfohlene Attribute:

  • product_id: String
  • coupon_id: String
  • price: Integer
  • discount: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Discounted purchase", {
"product_id": "string value",
"coupon_id": "string value",
"price": 1,
"discount": "string value"
});
});

Produktseite verlassen

Anchor link to

Lösen Sie dieses Event aus, wenn ein Benutzer eine Produktseite ohne eine Konversionsaktion verlässt.

Empfohlene Attribute:

  • product_id: String
  • price: Integer
  • source: String
  • product_page_id: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Product Page abandoned", {
"product_id": "string value",
"price": 1,
"source": "string value",
"product_page_id": "string value"
});
});

Produkt zur Wunschliste hinzugefügt

Anchor link to

Bleiben Sie über die Produkte informiert, die Benutzer auf ihren Wunschlisten gespeichert haben, und erstellen Sie persönliche Angebote und Werbekampagnen.

Empfohlene Attribute:

  • product_id: String
  • wishlist_id: String
  • product_price: Integer
  • source: String
  • user_id: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Product added to wishlist", {
"product_id": "string value",
"currency": "string value",
"price": 1,
"source": "string value",
"user_id": "string value"
});
});

Produkt von der Wunschliste entfernt

Anchor link to

Lösen Sie dieses Event aus, wenn ein Benutzer ein Produkt von seiner Wunschliste löscht.

Empfohlene Attribute:

  • user_id: String
  • wishlist_id: String
  • product_id: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Product removed from wishlist", {
"wishlist_id": "string value",
"user_id": "string value",
"product_id": "string value"
});
});

Produktkategorie

Anchor link to

Senden Sie dieses Event, wenn ein Benutzer ein Produkt einer bestimmten Kategorie kauft.

Empfohlene Attribute:

  • product_id: String
  • product_category: String
  • currency: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Product category", {
"product_id": "string value",
"product_category": "string value",
"currency": "string value"
});
});

Erster Kauf

Anchor link to

Lösen Sie dieses Event aus, sobald ein Benutzer seinen ersten Kauf tätigt.

Empfohlene Attribute:

  • product_id: String,
  • category: String
  • date: Date
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("First purchase", {
"product_id": "string value",
"category": "string value",
"date": "date value"
});
});

Gaming-Apps

Anchor link to

Neues Level

Anchor link to

Wenn ein Benutzer ein neues Spiellevel erreicht, lösen Sie das Event „Neues Level“ aus.

Empfohlene Attribute:

  • level_id: String
  • user_id: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("New level", {
"level_id": "string value",
"user_id": "string value"
});
});

Level abgeschlossen

Anchor link to

Senden Sie dieses Event, wenn ein Benutzer ein bestimmtes Spiellevel abschließt.

Empfohlene Attribute:

  • level_id: String
  • user_id: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Level completed", {
"level_id": "string value",
"user_id": "string value"
});
});

Virtuelle Währung verdient

Anchor link to

Lösen Sie dieses Event aus, wenn das Guthaben an virtueller Währung eines Benutzers aufgeladen wird.

Empfohlene Attribute:

  • currency_name: String
  • quantity: Integer
  • user_id: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Virtual currency earned", {
"currency_name": "string value",
"quantity": 1,
"user_id": "string value"
});
});

Tutorial abgeschlossen

Anchor link to

Lösen Sie dieses Event aus, wenn ein Benutzer das In-Game-Tutorial abschließt.

Empfohlene Attribute:

  • tutorial_name: String
  • completion: Boolean
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Tutorial completed", {
"tutorial_name": "string value",
"completion": true
});
});

Errungenschaft freigeschaltet

Anchor link to

Überwachen Sie das Benutzerengagement mit dem Event, das ausgelöst wird, wenn ein Benutzer eine bestimmte Errungenschaft freischaltet.

Empfohlene Attribute:

  • achievement_name: String
  • level: Integer
  • user_id: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Achievement unlocked", {
"achievement_name": "string value",
"level": 5,
"user_id": "string value"
});
});

Abonnementverwaltung

Anchor link to

Kauf eines kostenpflichtigen Abonnements

Anchor link to

Senden Sie dieses Event, wenn ein Benutzer einen kostenpflichtigen Abonnementplan gekauft hat.

Empfohlene Attribute:

  • subscription_plan_name: String
  • price: Integer
  • currency:String
  • expiry_date:Date
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Paid subscription purchase", {
"subscription_plan_name": "string value",
"price": 1,
"currency": "string value",
"expiry_date": "new Date()"
});
});

Abonnementverlängerung

Anchor link to

Lösen Sie dieses Event aus, sobald ein Benutzer seinen Abonnementplan verlängert.

Empfohlene Attribute:

  • subscription_plan_name: String
  • price: Integer
  • currency: String
  • renewal_count: Integer
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Subscription renewal", {
"subscription_plan_name": "string value",
"price": 1,
"currency": "string value",
"renewal_count": 1
});
});

Kostenlose Testversion gestartet

Anchor link to

Lösen Sie dieses Event aus, wenn ein Benutzer sich entscheidet, eine kostenlose Testversion zu starten, bevor er ein Abonnement abschließt.

Empfohlene Attribute:

  • free_trial_name: String
  • expiry_date: Date
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Free trial started", {
"free_trial_name": "string value",
"expiry_date": "new Date()"
});
});

Abonnement gekündigt

Anchor link to

Verwenden Sie dieses Event, um Kündigungen von In-App-Abonnements zu verfolgen.

// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Subscription cancelled");
});

Konversion von kostenlos zu kostenpflichtig

Anchor link to

Lösen Sie dieses Event aus, sobald ein Benutzer von der kostenlosen Nutzung Ihrer App zu einem kostenpflichtigen Abonnementplan wechselt.

Empfohlene Attribute:

  • subscription_plan_name: String
  • price: Integer
  • currency: String
  • date: Date
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Conversion from Free to Paid", {
"subscription_plan_name": "string value",
"price": 1,
"currency": "string value",
"date": "new Date()"
});
});

Senden Sie dieses Event, wenn ein Benutzer nach Inhalten in Ihrer App sucht.

Empfohlene Attribute:

  • search_query: String
  • category: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Search", {
"search_query": "string value",
"category": "string value"
});
});

Inhalt gelesen

Anchor link to

Lösen Sie dieses Event aus, wenn ein Benutzer einen bestimmten Inhalt gelesen hat.

Empfohlene Attribute:

  • category: String
  • article_id: String
  • author: String
  • published_date: Date
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Content read", {
"category": "string value",
"article_id": "string value",
"author": "string value",
"published_date": "new Date()"
});
});

Formularübermittlung

Anchor link to

Verfolgen Sie die Übermittlungen Ihrer In-App-Formulare (zum Beispiel Net Promoter Score), die Auswahl von Inhaltspräferenzen und andere Umfragen.

Empfohlene Attribute:

  • form_name: String
  • url: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Form submission", {
"form_name": "string value",
"url": "string value"
});
});

Inhalt geteilt

Anchor link to

Lösen Sie dieses Event aus, wenn ein Benutzer einen Inhalt über soziale Netzwerke, E-Mail oder andere Kanäle geteilt hat.

Empfohlene Attribute:

  • category: String
  • article_id: String
  • author: String
  • published_date: Date
  • button_id: String
  • social_media: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Content shared", {
"category": "string value",
"article_id": "string value",
"author": "string value",
"published_date": "new Date()",
"button_id": "string value",
"social_media": "string value"
});
});

Inhaltspräferenzen

Anchor link to

Lösen Sie dieses Event aus, wenn ein Benutzer ein bestimmtes Thema auswählt, an dem er interessiert ist.

Empfohlene Attribute:

  • topic: String
// To use with Web Push SDK, you can integrate this code:
const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
api.postEvent("Content preferences", {
"topic": "string value"
});
});