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 :
- facultativement, créez un Événement dans votre Panneau de Contrôle Pushwoosh et ajoutez des attributs pour contrôler leurs types ;
- intégrez la méthode postEvent dans votre projet mobile, en fournissant le nom de l’événement et ses attributs. Si vous les avez créés dans le Panneau de Contrôle, utilisez les noms exactement tels qu’ils y figurent.
// 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", { // si l'événement a été créé dans le Panneau de Contrôle, utilisez le même nom "attribut 1": "valeur chaîne", // si l'attribut a été créé dans le Panneau de Contrôle, utilisez le même nom et le même type "attribut 2": "valeur chaîne" // si l'attribut a été créé dans le Panneau de Contrôle, utilisez le même nom et le même type });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "attribut 1" : "valeur chaîne", // si l'attribut a été créé dans le Panneau de Contrôle, utilisez le même nom et le même type "attribut 2" : "valeur chaîne" // si l'attribut a été créé dans le Panneau de Contrôle, utilisez le même nom et le même type]Pushwoosh.configure.postEvent("Nom de l'événement", withAttributes: attributes) // si l'événement a été créé dans le Panneau de Contrôle, utilisez le même nom// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"attribut 1" : @"valeur chaîne", // si l'attribut a été créé dans le Panneau de Contrôle, utilisez le même nom et le même type @"attribut 2" : @"valeur chaîne" // si l'attribut a été créé dans le Panneau de Contrôle, utilisez le même nom et le même type};[[Pushwoosh configure] postEvent:@"Nom de l'événement" withAttributes:attributes]; // si l'événement a été créé dans le Panneau de Contrôle, utilisez le même nom// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("attribut 1", "valeur chaîne") // si l'attribut a été créé dans le Panneau de Contrôle, utilisez le même nom et le même type .putString("attribut 2", "valeur chaîne") // si l'attribut a été créé dans le Panneau de Contrôle, utilisez le même nom et le même type .build();
InAppManager.getInstance().postEvent("Nom de l'événement", attributes); // si l'événement a été créé dans le Panneau de Contrôle, utilisez le même nomApplications 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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.getInstance().postEvent("Système d'exploitation mis à jour", attributes);E-commerce
Anchor link toProduit consulté
Anchor link toDéclenchez cet événement lorsqu’un utilisateur ouvre une page produit. Utilisez-le pour les campagnes d’abandon de navigation et pour segmenter les utilisateurs selon les produits et les catégories qu’ils consultent.
Attributs recommandés :
- product_id : Chaîne
- product_category : Chaîne
- price : decimal (price)
- 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("Product viewed", { "product_id": "string value", "product_category": "string value", "price": 49.99, "source": "string value" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "product_id" : "string value", "product_category" : "string value", "price" : 49.99, "source" : "string value"]Pushwoosh.configure.postEvent("Product viewed", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"product_id" : @"string value", @"product_category" : @"string value", @"price" : @(49.99), @"source" : @"string value"};[[Pushwoosh configure] postEvent:@"Product viewed" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("product_id", "string value") .putString("product_category", "string value") .putAll(new JSONObject(Collections.singletonMap("price", 49.99))) // TagsBundle has no decimal setter .putString("source", "string value") .build();
InAppManager.getInstance().postEvent("Product viewed", attributes);Produit 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 : decimal (price)
- 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": 49.99, "source": "valeur chaîne" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "price" : 49.99, "product_id" : "valeur chaîne", "source" : "valeur chaîne"]Pushwoosh.configure.postEvent("Produit ajouté au panier", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"price" : @(49.99), @"product_id" : @"valeur chaîne", @"source" : @"valeur chaîne"};[[Pushwoosh configure] postEvent:@"Produit ajouté au panier" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putAll(new JSONObject(Collections.singletonMap("price", 49.99))) // TagsBundle has no decimal setter .putString("product_id", "valeur chaîne") .putString("source", "valeur chaîne") .build();
InAppManager.getInstance().postEvent("Produit ajouté au panier", attributes);Paiement commencé
Anchor link toDéclenchez cet événement lorsqu’un utilisateur commence le paiement. Un utilisateur qui a commencé le paiement sans passer commande constitue l’audience d’un rappel de paiement.
Attributs recommandés :
- cart_id : Chaîne
- cart_total : decimal (price)
- currency : Chaîne
- items_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("Checkout started", { "cart_id": "string value", "cart_total": 49.99, "currency": "USD", "items_count": 2 });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "cart_id" : "string value", "cart_total" : 49.99, "currency" : "USD", "items_count" : 2]Pushwoosh.configure.postEvent("Checkout started", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"cart_id" : @"string value", @"cart_total" : @(49.99), @"currency" : @"USD", @"items_count" : @2};[[Pushwoosh configure] postEvent:@"Checkout started" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("cart_id", "string value") .putAll(new JSONObject(Collections.singletonMap("cart_total", 49.99))) // TagsBundle has no decimal setter .putString("currency", "USD") .putInt("items_count", 2) .build();
InAppManager.getInstance().postEvent("Checkout started", attributes);Commande passée
Anchor link toDéclenchez cet événement lorsqu’un utilisateur finalise un achat. Envoyez-le pour chaque achat en tant qu’événement d’achat principal, avec Achat avec réduction, Catégorie de produit ou Premier achat lorsqu’ils s’appliquent également.
Attributs recommandés :
- order_id : Chaîne
- __amount : decimal (price)
- __currency : Chaîne, un code de devise tel que
USD - product_id : Chaîne
- coupon_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("Order placed", { "order_id": "string value", "__amount": 49.99, "__currency": "USD", "product_id": "string value", "coupon_id": "string value" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "order_id" : "string value", "__amount" : 49.99, "__currency" : "USD", "product_id" : "string value", "coupon_id" : "string value"]Pushwoosh.configure.postEvent("Order placed", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"order_id" : @"string value", @"__amount" : @(49.99), @"__currency" : @"USD", @"product_id" : @"string value", @"coupon_id" : @"string value"};[[Pushwoosh configure] postEvent:@"Order placed" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("order_id", "string value") .putAll(new JSONObject(Collections.singletonMap("__amount", 49.99))) // TagsBundle has no decimal setter .putString("__currency", "USD") .putString("product_id", "string value") .putString("coupon_id", "string value") .build();
InAppManager.getInstance().postEvent("Order placed", attributes);Avec les attributs __amount et __currency, Pushwoosh commence automatiquement à suivre les revenus de cet événement dès sa première réception. Consultez Événements de conversion.
Commande remboursée
Anchor link toDéclenchez cet événement lorsqu’une commande est remboursée, totalement ou partiellement. Utilisez-le pour exclure ces utilisateurs des campagnes post-achat ou pour leur demander pourquoi ils ont retourné la commande.
Attributs recommandés :
- order_id : Chaîne
- refund_amount : decimal (price)
- currency : Chaîne
- reason : 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("Order refunded", { "order_id": "string value", "refund_amount": 49.99, "currency": "USD", "reason": "string value" });});// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
let attributes: [String : Any] = [ "order_id" : "string value", "refund_amount" : 49.99, "currency" : "USD", "reason" : "string value"]Pushwoosh.configure.postEvent("Order refunded", withAttributes: attributes)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
NSDictionary *attributes = @{ @"order_id" : @"string value", @"refund_amount" : @(49.99), @"currency" : @"USD", @"reason" : @"string value"};[[Pushwoosh configure] postEvent:@"Order refunded" withAttributes:attributes];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
TagsBundle attributes = new TagsBundle.Builder() .putString("order_id", "string value") .putAll(new JSONObject(Collections.singletonMap("refund_amount", 49.99))) // TagsBundle has no decimal setter .putString("currency", "USD") .putString("reason", "string value") .build();
InAppManager.getInstance().postEvent("Order refunded", 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 : decimal (price)
- 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": 49.99, "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" : 49.99, "discount" : "valeur chaîne"]Pushwoosh.configure.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" : @(49.99), @"discount" : @"valeur chaîne"};[[Pushwoosh configure] 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") .putAll(new JSONObject(Collections.singletonMap("price", 49.99))) // TagsBundle has no decimal setter .putString("discount", "valeur chaîne") .build();
InAppManager.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 : decimal (price)
- 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": 49.99, "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" : 49.99, "source" : "valeur chaîne", "product_page_id" : "valeur chaîne"]Pushwoosh.configure.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" : @(49.99), @"source" : @"valeur chaîne", @"product_page_id" : @"valeur chaîne"};[[Pushwoosh configure] 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") .putAll(new JSONObject(Collections.singletonMap("price", 49.99))) // TagsBundle has no decimal setter .putString("source", "valeur chaîne") .putString("product_page_id", "valeur chaîne") .build();
InAppManager.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 : decimal (price)
- 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", "wishlist_id": "valeur chaîne", "product_price": 49.99, "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" : 49.99, "source" : "valeur chaîne", "user_id" : "valeur chaîne"]Pushwoosh.configure.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" : @(49.99), @"source" : @"valeur chaîne", @"user_id" : @"valeur chaîne"};[[Pushwoosh configure] 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") .putAll(new JSONObject(Collections.singletonMap("product_price", 49.99))) // TagsBundle has no decimal setter .putString("source", "valeur chaîne") .putString("user_id", "valeur chaîne") .build();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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": new 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" : NSDate()]Pushwoosh.configure.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" : [NSDate date]};[[Pushwoosh configure] 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") .putDate("date", new Date()) .build();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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]Pushwoosh.configure.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};[[Pushwoosh configure] 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();
InAppManager.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"]Pushwoosh.configure.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" : @5, @"user_id" : @"valeur chaîne"};[[Pushwoosh configure] 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("achievement_name", "valeur chaîne") .putInt("level", 5) .putString("user_id", "valeur chaîne") .build();
InAppManager.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 : decimal (price)
- 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": 49.99, "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" : 49.99, "currency" : "valeur chaîne", "expiry_date" : NSDate()]Pushwoosh.configure.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" : @(49.99), @"currency" : @"valeur chaîne", @"expiry_date" : [NSDate date]};[[Pushwoosh configure] 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") .putAll(new JSONObject(Collections.singletonMap("price", 49.99))) // TagsBundle has no decimal setter .putString("currency", "valeur chaîne") .putDate("expiry_date", new Date()) .build();
InAppManager.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 : decimal (price)
- 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": 49.99, "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" : 49.99, "currency" : "valeur chaîne", "renewal_count" : 1]Pushwoosh.configure.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" : @(49.99), @"currency" : @"valeur chaîne", @"renewal_count" : @(1)};[[Pushwoosh configure] 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") .putAll(new JSONObject(Collections.singletonMap("price", 49.99))) // TagsBundle has no decimal setter .putString("currency", "valeur chaîne") .putInt("renewal_count", 1) .build();
InAppManager.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()]Pushwoosh.configure.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]};[[Pushwoosh configure] 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();
InAppManager.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 :
Pushwoosh.configure.postEvent("Abonnement annulé", withAttributes: nil)// Pour utiliser avec le SDK iOS, vous pouvez intégrer ce code :
[[Pushwoosh configure] postEvent:@"Abonnement annulé" withAttributes:@{}];// Pour utiliser avec le SDK Android, vous pouvez intégrer ce code :
InAppManager.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 : decimal (price)
- 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": 49.99, "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" : 49.99, "currency" : "valeur chaîne", "date" : NSDate()]Pushwoosh.configure.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" : @(49.99), @"currency" : @"valeur chaîne", @"date" : [NSDate date]};[[Pushwoosh configure] 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") .putAll(new JSONObject(Collections.singletonMap("price", 49.99))) // TagsBundle has no decimal setter .putString("currency", "valeur chaîne") .putDate("date", new Date()) .build();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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()]Pushwoosh.configure.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]};[[Pushwoosh configure] 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();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.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"]Pushwoosh.configure.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"};[[Pushwoosh configure] 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();
InAppManager.getInstance().postEvent("Préférences de contenu", attributes);