Exemples d'événements personnalisés
Vous trouverez ci-dessous une série d’événements in-app recommandés pour différentes catégories d’applications.
Pour mettre en œuvre l’un de ces événements ou d’autres :
- créez un Événement dans votre Panneau de Contrôle Pushwoosh et ajoutez des attributs si nécessaire ;
- intégrez la méthode postEvent dans votre projet mobile, en fournissant le nom de l’événement et ses attributs exactement tels qu’ils sont dans le Panneau de Contrôle.
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Nom de l'événement", { // nom de l'événement exactement comme dans le Panneau de Contrôle "attribut 1": "valeur chaîne", // nom et type de l'attribut exactement comme dans le Panneau de Contrôle "attribut 2": "valeur chaîne" // nom et type de l'attribut exactement comme dans le Panneau de Contrôle });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "attribut 1" : "valeur chaîne", // nom et type de l'attribut exactement comme dans le Panneau de Contrôle "attribut 2" : "valeur chaîne" // nom et type de l'attribut exactement comme dans le Panneau de Contrôle]PWInAppManager.shared().postEvent("Nom de l'événement", withAttributes: attributes) // nom de l'événement exactement comme dans le Panneau de Contrôle// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"attribut 1" : @"valeur chaîne", // nom et type de l'attribut exactement comme dans le Panneau de Contrôle @"attribut 2" : @"valeur chaîne" // nom et type de l'attribut exactement comme dans le Panneau de Contrôle};[[PushNotificationManager pushManager] postEvent:@"nomÉvénement" withAttributes:attributes]; // nom de l'événement exactement comme dans le Panneau de Contrôle// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("attribut 1", "valeur chaîne") // nom et type de l'attribut exactement comme dans le Panneau de Contrôle .putString("attribut 2", "valeur chaîne") // nom et type de l'attribut exactement comme dans le Panneau de Contrôle .build()
PushwooshInApp.getInstance().postEvent("Nom de l'événement", attributes); // nom de l'événement exactement comme dans le Panneau de ContrôleApplications mobiles
Anchor link toDéconnexion
Anchor link toDéclenchez cet événement lorsque les utilisateurs se déconnectent de leur compte dans votre application.
Attributs recommandés :
- user_id : Chaîne
- date : Date
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Déconnexion", { "user_id": "valeur chaîne", "date": "valeur date" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "user_id" : "valeur chaîne", "date" : "valeur date"]PWInAppManager.shared().postEvent("Déconnexion", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"user_id" : @"valeur chaîne", @"date" : @"valeur date"};[[PushNotificationManager pushManager] postEvent:@"Déconnexion" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("user_id", "valeur chaîne") .putString("date", "valeur date") .build()
PushwooshInApp.getInstance().postEvent("Déconnexion", attributes);Moyen de paiement ajouté
Anchor link toDéclenchez cet événement lorsqu’un utilisateur ajoute un moyen de paiement à son compte dans votre application, par exemple en fournissant les informations de sa carte ou en liant son compte à un système de paiement.
Attributs recommandés :
- payment_method : Chaîne,
- user_id : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Moyen de paiement ajouté", { "user_id": "valeur chaîne", "payment_method": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "user_id" : "valeur chaîne", "payment_method" : "valeur chaîne"]PWInAppManager.shared().postEvent("Moyen de paiement ajouté", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"payment_method" : @"valeur chaîne", @"user_id" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Moyen de paiement ajouté" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("payment_method", "valeur chaîne") .putString("user_id", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Moyen de paiement ajouté", attributes);Moyen de paiement modifié
Anchor link toEnvoyez cet événement lorsqu’un utilisateur met à jour son moyen de paiement dans l’application.
Attributs recommandés :
- user_id : Chaîne,
- payment_method : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Moyen de paiement modifié", { "user_id": "valeur chaîne", "payment_method": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "user_id" : "valeur chaîne", "payment_method" : "valeur chaîne"]PWInAppManager.shared().postEvent("Moyen de paiement modifié", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"user_id" : @"valeur chaîne", @"payment_method" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Moyen de paiement modifié" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("user_id", "valeur chaîne") .putString("payment_method", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Moyen de paiement modifié", attributes);Bouton cliqué
Anchor link toSuivez les clics sur les boutons dans l’application avec cet événement pour améliorer vos analyses, tester diverses stratégies de communication et augmenter la pertinence de vos messages en fonction du comportement des clients.
Attributs d’événement recommandés :
- user_id : Chaîne
- button_link : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Bouton cliqué", { "user_id": "valeur chaîne", "button_link": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "user_id" : "valeur chaîne", "button_link" : "valeur chaîne"]PWInAppManager.shared().postEvent("Bouton cliqué", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"user_id" : @"valeur chaîne", @"button_link" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Bouton cliqué" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("user_id", "valeur chaîne") .putString("button_link", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Bouton cliqué", attributes);Application mise à jour
Anchor link toDéclenchez cet événement chaque fois qu’un utilisateur installe une version mise à jour de votre application.
Attributs recommandés :
- previous_app_version : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Application mise à jour", { "previous_app_version": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "previous_app_version" : "valeur chaîne"]PWInAppManager.shared().postEvent("Application mise à jour", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"previous_app_version" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Application mise à jour" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("previous_app_version", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Application mise à jour", attributes);Système d’exploitation mis à jour
Anchor link toDéclenchez cet événement lorsqu’un utilisateur met à jour la version du système d’exploitation de son appareil pour vous assurer que votre application est entièrement conforme.
Attributs recommandés :
- previous_OS_version : Chaîne
- new_OS_version : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Système d'exploitation mis à jour", { "previous_OS_version": "valeur chaîne", "new_OS_version": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "previous_OS_version" : "valeur chaîne", "new_OS_version": "valeur chaîne"]PWInAppManager.shared().postEvent("Système d'exploitation mis à jour", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"previous_OS_version" : @"valeur chaîne", @"new_OS_version" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Système d'exploitation mis à jour" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("previous_OS_version", "valeur chaîne") .putString("new_OS_version", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Système d'exploitation mis à jour", attributes);E-commerce
Anchor link toProduit ajouté au panier
Anchor link toDéclenchez cet événement une fois qu’un utilisateur ajoute un produit à son panier pour créer des campagnes de panier abandonné, définir des tags utilisateur ou analyser l’efficacité de vos promotions.
Attributs recommandés :
- product_id : Chaîne
- price : Entier
- source : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Produit ajouté au panier", { "product_id": "valeur chaîne", "price": 1, "source": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "price" : 1, "product_id" : "valeur chaîne", "source" : "valeur chaîne"]PWInAppManager.shared().postEvent("Produit ajouté au panier", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"price" : @(1), @"product_id" : @"valeur chaîne", @"source" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Produit ajouté au panier" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putInt("price", 1) .putString("product_id", "valeur chaîne") .putString("source", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Produit ajouté au panier", attributes);Achat avec réduction
Anchor link toDéclenchez cet événement une fois qu’un utilisateur achète un produit en utilisant un coupon de réduction.
Attributs recommandés :
- product_id : Chaîne
- coupon_id : Chaîne
- price : Entier
- discount : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Achat avec réduction", { "product_id": "valeur chaîne", "coupon_id": "valeur chaîne", "price": 1, "discount": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "product_id" : "valeur chaîne", "coupon_id" : "valeur chaîne", "price" : 1, "discount" : "valeur chaîne"]PWInAppManager.shared().postEvent("Achat avec réduction", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"product_id" : @"valeur chaîne", @"coupon_id" : @"valeur chaîne", @"price" : @(1), @"discount" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Achat avec réduction" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("product_id", "valeur chaîne") .putString("coupon_id", "valeur chaîne") .putInt("price", 1) .putString("discount", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Achat avec réduction", attributes);Page produit abandonnée
Anchor link toDéclenchez cet événement lorsqu’un utilisateur quitte une page produit sans action de conversion.
Attributs recommandés :
- product_id : Chaîne
- price : Entier
- source : Chaîne
- product_page_id : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Page produit abandonnée", { "product_id": "valeur chaîne", "price": 1, "source": "valeur chaîne", "product_page_id": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "product_id" : "valeur chaîne", "price" : 1, "source" : "valeur chaîne", "product_page_id" : "valeur chaîne"]PWInAppManager.shared().postEvent("Page produit abandonnée", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"product_id" : @"valeur chaîne", @"price" : @(1), @"source" : @"valeur chaîne", @"product_page_id" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Page produit abandonnée" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("product_id", "valeur chaîne") .putInt("price", 1) .putString("source", "valeur chaîne") .putString("product_page_id", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Page produit abandonnée", attributes);Produit ajouté à la liste de souhaits
Anchor link toRestez informé des produits que les utilisateurs ont enregistrés dans leur liste de souhaits et créez des offres personnelles et des campagnes promotionnelles.
Attributs recommandés :
- product_id : Chaîne
- wishlist_id : Chaîne
- product_price : Entier
- source : Chaîne
- user_id : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Produit ajouté à la liste de souhaits", { "product_id": "valeur chaîne", "currency": "valeur chaîne", "price": 1, "source": "valeur chaîne", "user_id": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "product_id" : "valeur chaîne", "wishlist_id" : "valeur chaîne", "product_price" : 1, "source" : "valeur chaîne", "user_id" : "valeur chaîne"]PWInAppManager.shared().postEvent("Produit ajouté à la liste de souhaits", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"product_id" : @"valeur chaîne", @"wishlist_id" : @"valeur chaîne", @"product_price" : @(1), @"source" : @"valeur chaîne", @"user_id" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Produit ajouté à la liste de souhaits" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("product_id", "valeur chaîne") .putString("wishlist_id", "valeur chaîne") .putInt("product_price", 1) .putString("source", "valeur chaîne") .putString("user_id", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Produit ajouté à la liste de souhaits", attributes);Produit retiré de la liste de souhaits
Anchor link toDéclenchez cet événement lorsqu’un utilisateur supprime un produit de sa liste de souhaits.
Attributs recommandés :
- user_id : Chaîne
- wishlist_id : Chaîne
- product_id : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Produit retiré de la liste de souhaits", { "wishlist_id": "valeur chaîne", "user_id": "valeur chaîne", "product_id": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "wishlist_id" : "valeur chaîne", "user_id" : "valeur chaîne", "product_id" : "valeur chaîne"]PWInAppManager.shared().postEvent("Produit retiré de la liste de souhaits", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"wishlist_id" : @"valeur chaîne", @"user_id" : @"valeur chaîne", @"product_id" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Produit retiré de la liste de souhaits" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("wishlist_id", "valeur chaîne") .putString("user_id", "valeur chaîne") .putString("product_id", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Produit retiré de la liste de souhaits", attributes);Catégorie de produit
Anchor link toEnvoyez cet événement lorsqu’un utilisateur achète un produit d’une catégorie spécifique.
Attributs recommandés :
- product_id : Chaîne
- product_category : Chaîne
- currency : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Catégorie de produit", { "product_id": "valeur chaîne", "product_category": "valeur chaîne", "currency": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "product_id" : "valeur chaîne", "product_category" : "valeur chaîne", "currency" : "valeur chaîne"]PWInAppManager.shared().postEvent("Catégorie de produit", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"product_id" : @"valeur chaîne", @"product_category" : @"valeur chaîne", @"currency" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Catégorie de produit" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("product_id", "valeur chaîne") .putString("product_category", "valeur chaîne") .putString("currency", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Catégorie de produit", attributes);Premier achat
Anchor link toDéclenchez cet événement une fois qu’un utilisateur effectue son premier achat.
Attributs recommandés :
- product_id : Chaîne,
- category : Chaîne
- date : Date
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Premier achat", { "product_id": "valeur chaîne", "category": "valeur chaîne", "date": "valeur date" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "product_id" : "valeur chaîne", "category" : "valeur chaîne", "date" : "valeur date"]PWInAppManager.shared().postEvent("Premier achat", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"product_id" : @"valeur chaîne", @"category" : @"valeur chaîne", @"date" : @"valeur date"};[[PushNotificationManager pushManager] postEvent:@"Premier achat" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("product_id", "valeur chaîne") .putString("category", "valeur chaîne") .putBoolean("date", "valeur date") .build()
PushwooshInApp.getInstance().postEvent("Premier achat", attributes);Applications de jeu
Anchor link toNouveau niveau
Anchor link toLorsqu’un utilisateur atteint un nouveau niveau de jeu, déclenchez l’événement Nouveau niveau.
Attributs recommandés :
- level_id : Chaîne
- user_id : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Nouveau niveau", { "level_id": "valeur chaîne", "user_id": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "level_id" : "valeur chaîne", "user_id" : "valeur chaîne"]PWInAppManager.shared().postEvent("Nouveau niveau", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"level_id" : @"valeur chaîne", @"user_id" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Nouveau niveau" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("level_id", "valeur chaîne") .putString("user_id", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Nouveau niveau", attributes);Niveau terminé
Anchor link toEnvoyez cet événement lorsqu’un utilisateur termine un niveau de jeu particulier.
Attributs recommandés :
- level_id : Chaîne
- user_id : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Niveau terminé", { "level_id": "valeur chaîne", "user_id": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "level_id" : "valeur chaîne", "user_id" : "valeur chaîne"]PWInAppManager.shared().postEvent("Niveau terminé", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"level_id" : @"valeur chaîne", @"user_id" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Niveau terminé" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("level_id", "valeur chaîne") .putString("user_id", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Niveau terminé", attributes);Monnaie virtuelle gagnée
Anchor link toDéclenchez cet événement lorsque le solde de la monnaie virtuelle d’un utilisateur est rechargé.
Attributs recommandés :
- currency_name : Chaîne
- quantity : Entier
- user_id : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Monnaie virtuelle gagnée", { "currency_name": "valeur chaîne", "quantity": 1, "user_id": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "currency_name" : "valeur chaîne", "quantity" : 1, "user_id" : "valeur chaîne"]PWInAppManager.shared().postEvent("Monnaie virtuelle gagnée", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"currency_name" : @"valeur chaîne", @"quantity" : @(1), @"user_id" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Monnaie virtuelle gagnée" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("currency_name", "valeur chaîne") .putInt("quantity", 1) .putString("user_id", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Monnaie virtuelle gagnée", attributes);Tutoriel terminé
Anchor link toDéclenchez cet événement lorsqu’un utilisateur termine le tutoriel en jeu.
Attributs recommandés :
- tutorial_name : Chaîne
- completion : Booléen
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Tutoriel terminé", { "tutorial_name": "valeur chaîne", "completion": true });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "tutorial_name" : "valeur chaîne", "completion" : true]PWInAppManager.shared().postEvent("Tutoriel terminé", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"tutorial_name" : @"valeur chaîne", @"completion" : @YES};[[PushNotificationManager pushManager] postEvent:@"Tutoriel terminé" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("tutorial_name", "valeur chaîne") .putBoolean("completion", true) .build()
PushwooshInApp.getInstance().postEvent("Tutoriel terminé", attributes);Succès déverrouillé
Anchor link toSurveillez l’engagement des utilisateurs avec l’événement déclenché lorsqu’un utilisateur déverrouille un succès spécifique.
Attributs recommandés :
- achievement_name : Chaîne
- level : Entier
- user_id : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Succès déverrouillé", { "achievement_name": "valeur chaîne", "level": 5, "user_id": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "achievement_name" : "valeur chaîne", "level" : 5, "user_id": "valeur chaîne"]PWInAppManager.shared().postEvent("Succès déverrouillé", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"achievement_name" : @"valeur chaîne", @"level" : @1, @"user_id" : "valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Succès déverrouillé" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("achievemnt_name", "valeur chaîne") .putString("level", 1) .putString("user_id", "valeur chaîne) .build()
PushwooshInApp.getInstance().postEvent("Succès déverrouillé", attributes);Gestion des abonnements
Anchor link toAchat d’un abonnement payant
Anchor link toEnvoyez cet événement lorsqu’un utilisateur a acheté un plan d’abonnement payant.
Attributs recommandés :
- subscription_plan_name : Chaîne
- price : Entier
- currency : Chaîne
- expiry_date : Date
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Achat d'un abonnement payant", { "subscription_plan_name": "valeur chaîne", "price": 1, "currency": "valeur chaîne", "expiry_date": "new Date()" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "subscription_plan_name" : "valeur chaîne", "price" : 1, "currency" : "valeur chaîne", "expiry_date" : NSDate()]PWInAppManager.shared().postEvent("Achat d'un abonnement payant", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"subscription_plan_name" : @"valeur chaîne", @"price" : @(1), @"currency" : @"valeur chaîne", @"expiry_date" : [NSDate date]};[[PushNotificationManager pushManager] postEvent:@"Achat d'un abonnement payant" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("subscription_plan_name", "valeur chaîne") .putInt("price", 1) .putString("currency", "valeur chaîne") .putDate("expiry_date", new Date()) .build()
PushwooshInApp.getInstance().postEvent("Achat d'un abonnement payant", attributes);Renouvellement d’abonnement
Anchor link toDéclenchez cet événement une fois qu’un utilisateur renouvelle son plan d’abonnement.
Attributs recommandés :
- subscription_plan_name : Chaîne
- price : Entier
- currency : Chaîne
- renewal_count : Entier
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Renouvellement d'abonnement", { "subscription_plan_name": "valeur chaîne", "price": 1, "currency": "valeur chaîne", "renewal_count": 1 });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "subscription_plan_name" : "valeur chaîne", "price" : 1, "currency" : "valeur chaîne", "renewal_count" : 1]PWInAppManager.shared().postEvent("Renouvellement d'abonnement", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"subscription_plan_name" : @"valeur chaîne", @"price" : @(1), @"currency" : @"valeur chaîne", @"renewal_count" : @(1)};[[PushNotificationManager pushManager] postEvent:@"Renouvellement d'abonnement" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("subscription_plan_name", "valeur chaîne") .putInt("price", 1) .putString("currency", "valeur chaîne") .putInt("renewal_count", 1) .build()
PushwooshInApp.getInstance().postEvent("Renouvellement d'abonnement", attributes);Essai gratuit commencé
Anchor link toDéclenchez cet événement lorsqu’un utilisateur choisit de commencer un essai gratuit avant de souscrire un abonnement.
Attributs recommandés :
- free_trial_name : Chaîne
- expiry_date : Date
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Essai gratuit commencé", { "free_trial_name": "valeur chaîne", "expiry_date": "new Date()" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "free_trial_name" : "valeur chaîne", "expiry_date" : NSDate()]PWInAppManager.shared().postEvent("Essai gratuit commencé", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"free_trial_name" : @"valeur chaîne", @"expiry_date" : [NSDate date]};[[PushNotificationManager pushManager] postEvent:@"Essai gratuit commencé" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("free_trial_name", "valeur chaîne") .putDate("expiry_date", new Date()) .build()
PushwooshInApp.getInstance().postEvent("Essai gratuit commencé", attributes);Abonnement annulé
Anchor link toUtilisez cet événement pour suivre les annulations d’abonnement in-app.
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Abonnement annulé");});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
PWInAppManager.shared().postEvent("Abonnement annulé", withAttributes: nil)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
[[PushNotificationManager pushManager] postEvent:@"Abonnement annulé" withAttributes:@{}];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
PushwooshInApp.getInstance().postEvent("Abonnement annulé");Conversion de gratuit à payant
Anchor link toDéclenchez cet événement une fois qu’un utilisateur passe de l’utilisation gratuite de votre application à un plan d’abonnement payant.
Attributs recommandés :
- subscription_plan_name : Chaîne
- price : Entier
- currency : Chaîne
- date : Date
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Conversion de gratuit à payant", { "subscription_plan_name": "valeur chaîne", "price": 1, "currency": "valeur chaîne", "date": "new Date()" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "plan_name" : "valeur chaîne", "price" : 1, "currency" : "valeur chaîne", "date" : NSDate()]PWInAppManager.shared().postEvent("Conversion de gratuit à payant", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"subscription_plan_name" : @"valeur chaîne", @"price" : @(1), @"currency" : @"valeur chaîne", @"date" : [NSDate date]};[[PushNotificationManager pushManager] postEvent:@"Conversion de gratuit à payant" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("subscription_plan_name", "valeur chaîne") .putInt("price", 1) .putString("currency", "valeur chaîne") .putDate("date", new Date()) .build()
PushwooshInApp.getInstance().postEvent("Conversion de gratuit à payant", attributes);Média
Anchor link toRecherche
Anchor link toEnvoyez cet événement lorsqu’un utilisateur recherche du contenu dans votre application.
Attributs recommandés :
- search_query : Chaîne
- category : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Recherche", { "search_query": "valeur chaîne", "category": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "search_query" : "valeur chaîne", "category" : "valeur chaîne"]PWInAppManager.shared().postEvent("Recherche", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"search_query" : @"valeur chaîne", @"category" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Recherche" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("search_query", "valeur chaîne") .putString("category", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Recherche", attributes);Contenu lu
Anchor link toDéclenchez cet événement lorsqu’un utilisateur a lu un contenu spécifique.
Attributs recommandés :
- category : Chaîne
- article_id : Chaîne
- author : Chaîne
- published_date : Date
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Contenu lu", { "category": "valeur chaîne", "article_id": "valeur chaîne", "author": "valeur chaîne", "published_date": "new Date()" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "category" : "valeur chaîne", "article_id" : "valeur chaîne", "author" : "valeur chaîne", "published_date" : NSDate()]PWInAppManager.shared().postEvent("Contenu lu", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"category" : @"valeur chaîne", @"article_id" : @"valeur chaîne", @"author" : @"valeur chaîne", @"published_date" : [NSDate date]};[[PushNotificationManager pushManager] postEvent:@"Contenu lu" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("category", "valeur chaîne") .putString("article_id", "valeur chaîne") .putString("author", "valeur chaîne") .putDate("published_date", new Date()) .build()
PushwooshInApp.getInstance().postEvent("Contenu lu", attributes);Soumission de formulaire
Anchor link toSuivez les soumissions de vos formulaires in-app (par exemple, le Net Promoter Score), le choix des préférences de contenu et d’autres enquêtes.
Attributs recommandés :
- form_name : Chaîne
- url : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Soumission de formulaire", { "form_name": "valeur chaîne", "url": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "form_name" : "valeur chaîne", "url" : "valeur chaîne"]PWInAppManager.shared().postEvent("Soumission de formulaire", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"form_name" : @"valeur chaîne", @"url" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Soumission de formulaire" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("form_name", "valeur chaîne") .putString("url", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Soumission de formulaire", attributes);Contenu partagé
Anchor link toDéclenchez cet événement lorsqu’un utilisateur a partagé un contenu via les réseaux sociaux, par e-mail ou par d’autres canaux.
Attributs recommandés :
- category : Chaîne
- article_id : Chaîne
- author : Chaîne
- published_date : Date
- button_id : Chaîne
- social_media : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :
const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Contenu partagé", { "category": "valeur chaîne", "article_id": "valeur chaîne", "author": "valeur chaîne", "published_date": "new Date()", "button_id": "valeur chaîne", "social_media": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "category" : "valeur chaîne", "article_id" : "valeur chaîne", "author" : "valeur chaîne", "published_date" : NSDate(), "button_id" : "valeur chaîne", "social_media" : "valeur chaîne"]PWInAppManager.shared().postEvent("Contenu partagé", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"category" : @"valeur chaîne", @"article_id" : @"valeur chaîne", @"author" : @"valeur chaîne", @"published_date" : [NSDate date], @"button_id" : @"valeur chaîne", @"social_media" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Contenu partagé" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("category", "valeur chaîne") .putString("article_id", "valeur chaîne") .putString("author", "valeur chaîne") .putDate("published_date", new Date()) .putString("button_id", "valeur chaîne") .putString("social_media", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Contenu partagé", attributes);Préférences de contenu
Anchor link toDéclenchez cet événement lorsqu’un utilisateur choisit un sujet spécifique qui l’intéresse.
Attributs recommandés :
- topic : Chaîne
// Pour utiliser avec le SDK Web Push, vous pouvez intégrer ce code :const Pushwoosh = window.Pushwoosh || [];Pushwoosh.push(function(api) { api.postEvent("Préférences de contenu", { "topic": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "topic" : "valeur chaîne"]PWInAppManager.shared().postEvent("Préférences de contenu", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"topic" : @"valeur chaîne"};[[PushNotificationManager pushManager] postEvent:@"Préférences de contenu" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("topic", "valeur chaîne") .build()
PushwooshInApp.getInstance().postEvent("Préférences de contenu", attributes);