Bemærk: Der findes ingen ældre dokumentation tilgængelig for dette element, så du ser den aktuelle dokumentation.
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.
Før du starter
Her er et par ting, du skal vide, før du går i gang:
- 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.
Normalt anbefaler vi ikke at have tidspunktet planlagt til med det samme. Du bør have mindst 15 eller 30 minutters mellemrum for den første kampagne i serien.
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.
Standardvariablerne, der tilføjes i koden i henhold til kampagnen, er – {{productname}}, {{price}} og {{notificationurl}}

Håndtering af udløserindstillinger
Once you have added notification content, you can move to Trigger Settings.
Her er udløserne foruddefinerede. Kampagnen starter, hvis en person tilføjer produktet til kurven og ikke gennemfører betalingen. Hvis han gennemfører betalingen, vil han ikke modtage meddelelsen om forladt indkøbskurv. Men dette er blot definerede hændelser; de kan ikke udføres, medmindre de er placeret på hjemmesiden.
Udløserne her er Start Kampagne Hvis – tilføj-til-kurv og Stop Kampagne Hvis – betaling.

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.
Redigering og aktivering af snippet i WPCode
For at komme i gang skal du besøge Code Snippets fanen i dit WordPress Dashboard.
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
- Kampagnenavnet skal være det samme i koden og på PushEngage-dashboardet.
- PushEngage installation code should be present where the cart abandonment campaign code is present else. The campaigns will not be fired without it.
- Sørg for, at kampagnen er aktiv på dashboardet, efter du har placeret koden på din hjemmeside.
- Du skal være en web push-abonnent på din hjemmeside; ellers kan du ikke teste, om du modtager kampagner for forladt kurv på dit system.
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