The DailyStory WordPress integration is simple to set up and easy to use. The integration makes use of the DailyStory plugin for WordPress. Just install the plugin and connect your DailyStory account, and you'll be ready to use the integration.
The DailyStory WordPress plugin adds DailyStory visitor tracking and your popups to your WordPress website and enables the DailyStory WordPress shortcodes. On a site running WooCommerce, it also sends checkouts and orders to DailyStory to start store automations, and tracks store activity such as product views and cart changes. It can also add each post's featured image to your RSS feed.
Using DailyStory's drag-and-drop web form builder tool, you can create no-code web forms to capture customers' data and easily drop them into any WordPress page, post or even directly through PHP.
| Shortcode | Description |
|---|---|
[ds-webform id="#"] | Embeds a DailyStory Web Form in a WordPress page or post, so you can build landing pages in WordPress and get the data back into DailyStory. Requires the id of the web form to display. |
[ds-popup id="#"] | Displays a DailyStory Popup when the page loads. Requires the numeric id of the popup. |
[ds-exitintent id="#"] | Displays a DailyStory Popup when the visitor is about to leave the page. Requires the numeric id of the popup. |
In addition to including the id of the web form, which is required, you can also optionally include a redirect_url. For example:
[ds-webform id="4AU3" redirect_url="https://www.dailystory.com/pricing"]
This shortcode loads a form with an ID of 4AU3. When the form is successfully submitted, it redirects the browser to https://www.dailystory.com/pricing.
Important: setting a redirect_url overrides the web form's setting to display a message or redirect to another location.
The ability to set a redirect_url is useful if you want to gate lead magnets without requiring the creation of a form for each lead magnet. A single form is used and when submitted redirects to the specified resource.
The webform shortcode, [ds-webform id="#"], enables you to use DailyStory Web Forms in your WordPress pages and posts.
Let's look at an example of how the [ds-webform id="#"] shortcode is used.
First, you'll need to create or edit a Web Form in DailyStory and get the Web Form's unique id:

Next, create or edit a WordPress page or post and add [ds-webform id="#"] where # is the ID of your web form. Using the unique web form ID value from Step 1, this would be:
[ds-webform id="a2vmy"]
Next, publish the page or post, and view it in your browser.
When WordPress receives the request, it will see the shortcode [ds-webform id="a2vmy"]. It will route that request to the DailyStory plugin to process. The plugin will make an API call to DailyStory, fetch the appropriate form, progressively render its layout, add JavaScript for validation, add stylesheets and optionally render a Google reCAPTCHA.
When your request completes, you won't see [ds-webform id="a2vmy"] (unless there was a problem), but you will instead see the HTML form that you designed on DailyStory.
Submissions to that form are posted to DailyStory, and new content is accessible in your lead queue associated with the campaign for that Web Form.
DailyStory's Contact Us page makes use of a DailyStory web form. Here is the rendered page:

If WooCommerce is installed on your WordPress site, the plugin detects it and begins sending store activity to DailyStory. This works alongside the WooCommerce integration: the integration syncs customers and orders from your store, while the plugin sends checkouts and orders as they happen and captures what shoppers do on the storefront.
When your DailyStory account is connected, your store's server sends checkouts and orders to DailyStory as they happen. They start DailyStory's built-in automation triggers:
Each trigger starts once per order. Because the events come from your server, ad blockers and closed browser tabs don't lose them. Cancelled and refunded orders are sent as the custom events woocommerce_order_cancelled and woocommerce_order_refunded.
To send abandoned cart emails that show each shopper their own cart, see the Woo Products email widget.
Connected with plugin 2.3.0?Sites connected with plugin version 2.3.0 see a prompt on Settings > DailyStory to reconnect. Click Reconnect once to turn on store automations.
The plugin also sends:
woocommerce_product_viewed) — the product, price and categories a shopper looked at, for browse abandonment automations.woocommerce_added_to_cart) — the product and quantity added.woocommerce_cart_updated) — the cart's items and value, sent when the cart changes.Use these events in segments and custom automations, such as "viewed a product twice but didn't buy".
Store tracking is enabled automatically when WooCommerce is detected. To change it, go to Settings > DailyStory in your WordPress admin and use the Store tracking checkbox in the WooCommerce section. The section only appears when WooCommerce is active.
When a visitor is signed in to your WordPress site, the plugin tells DailyStory who they are, so their activity is attached to their existing contact record rather than to an anonymous session. On a WooCommerce site this means a customer's browsing and cart activity is tied to the same contact the order sync updates.
If you need to prevent this, a developer can return an empty array from the dailystory_identify_visitor filter in your theme or a site plugin.
The plugin can add each post's featured image to your site's RSS feed, so the RSS widget and When RSS is updated newsletters show your post images instead of a placeholder. When it is on, each post's featured image appears at the top of its feed item, unless the item already shows it.
To turn it on or off, tick Add each post's featured image to your RSS feed under Settings > DailyStory. It is on for new installs, and off for sites upgrading from an earlier version until you tick it.
Your WordPress site's feed is at https://example.com/feed/, and each category has its own feed at https://example.com/category/<name>/feed/.
Developers can change the plugin's behavior with these filters in your theme or a site plugin:
| Filter | What it does |
|---|---|
dailystory_identify_visitor | Return an empty array to stop sending signed-in visitors' details. |
dailystory_woocommerce_tracking_enabled | Return false to turn off store tracking. |
dailystory_capture_checkout_email | Return false to stop sending a guest's checkout email before their order is placed. Abandoned cart automations then only reach signed-in shoppers. |
dailystory_feed_images | Return true or false to add or leave out featured images in your RSS feed, whatever the setting says. |
dailystory_feed_image_size | The image size used for featured images in the feed (default medium_large). |
The plugin adds the DailyStory beacon to the head section of every page, which is where we recommend it is placed. Loading it early means popups, Magic Forms and store activity tracking are ready before a visitor has a chance to navigate away. You do not need to add the beacon yourself when the plugin is installed.
The DailyStory settings screen changes where your site loads tracking code from, so it is restricted to WordPress administrators. Editors, authors and contributors will not see Settings > DailyStory.