Campagne d'abandon de panier et de navigation WooCommerce à l'aide de WPCode

WooCommerce stores excel at offering diverse products but often face challenges with cart and browse abandonment. PushEngage offers an innovative solution, enabling campaigns that directly engage with your product feed and turning potential losses into conversions with the help of WPCode.

Your customers can receive push notification reminders after their abandonment, and it can encourage them to complete the checkout.

Avant de commencer

Voici quelques points à savoir avant de commencer :

  • Our WooCommerce integration requires a PushEngage Growth subscription to create a Cart and Browse Abandonment Campaign using our Trigger Campaign feature.
  • This guide assumes you already have the WooCommerce and WPCode plugins installed on your WordPress website.

Creating Trigger Campaign in PushEngage Dashboard

You need to log in to your dashboard and navigate to Campaign » Triggered Campaigns. 

Select Cart/Browse Abandonment Campaign, and click on Create New.

Now you can enter the Campaign Name.

Adding Campaign Content

The next step is to configure the journey schedule – You can select either of the options immediately, after n hours and minutes, or after a certain day.

Généralement, nous ne recommandons pas de planifier immédiatement. Vous devriez prévoir un délai d'au moins 15 ou 30 minutes pour la première campagne de la série.

When setting up a series, you can have at least three campaigns. You can customize the title and message for every campaign in the series. Please ensure that you are not changing variables if you are willing to use these variables in the campaign.

Les variables par défaut ajoutées au code selon la campagne sont : {{productname}}, {{price}} et {{notificationurl}}

Gestion des paramètres de déclenchement

Once you have added notification content, you can move to Trigger Settings.

Ici, les déclencheurs sont prédéfinis. La campagne démarre si une personne ajoute le produit au panier et ne finalise pas la commande. S'il finalise la commande, il ne recevra pas la notification d'abandon de panier. Mais ce ne sont que des événements définis ; ils ne peuvent pas être exécutés tant qu'ils ne sont pas placés sur le site web.

Les déclencheurs ici sont Démarrer la campagne si – ajouter au panier et Arrêter la campagne si – finaliser la commande.

The next step is to add the daily and weekly trigger limits. This will define the total number of notifications a subscriber may receive daily and weekly. For example – If 2 notifications are daily, then it should be 14 weekly; this way, the frequency will be capped even if more than two products are abandoned.

Modifier et activer un extrait dans WPCode

Pour commencer, visitez l'onglet Code Snippets dans votre tableau de bord WordPress.

Here you would need two snippets to edit based on your campaign.

  • For Cart Abandonment Campaign – On Add to Cart Event in WooCommerce and After Checkout Event In WooCommerce.
  • For Browse Abandonment Campaign – On Browsing WooCommerce Products and On Add to Cart Event in WooCommerce

Choose based on your campaign and click on Use Snippet. Once you have the snippet open in Editor.

Adding the Campaign Name

Please ensure that the correct campaign name is added for both events. You do not need to change the Location, let the snippet be added site-wide.

After the snippet is finalized, you can activate it. Without activating, the snippet will not be functional.

Troubleshooting Trigger Campaigns

  • Le nom de la campagne doit être le même dans le code et sur le tableau de bord PushEngage.
  • PushEngage installation code should be present where the cart abandonment campaign code is present else. The campaigns will not be fired without it.
  • Assurez-vous que la campagne est active sur le tableau de bord après avoir placé le code sur votre site Web.
  • Vous devez être un abonné aux notifications push Web de votre site Web ; sinon, vous ne pourrez pas tester si vous recevez les campagnes d'abandon de panier sur votre système.

That’s all! You’ve now activated a Cart/Browse Abandonment campaign on your WooCommerce Store using WPCode.

If you run into any issues, please feel free to contact us by clicking here. Our support team would be able to help you

Dernière mise à jour le 9 mars 2026

Engagez et retenez les visiteurs après qu'ils aient quitté votre site Web

Augmentez la valeur de chaque visite web avec des notifications push difficiles à ignorer.

  • Plan gratuit à vie
  • Configuration facile
  • Support 5 étoiles