DailyStory + WordPress

The DailyStory + WordPress integration is simple to setup and easy to use. The integration makes use of a DailyStory plugin for WordPress. Just install the plugin and you'll be ready to use the integration.

The DailyStory WordPress plugin adds DailyStory visitor tracking to your WordPress website and also enables the DailyStory WordPress shortcodes.

Shortcode Quick Reference

Shortcode  Description
[ds-webform id="#"] The webform shortcode is built to enable you to use DailyStory Web Forms in your WordPress pages and posts. Using this shortcode you can quickly build landing pages in WordPress and easily get that data back into DailyStory. This shortcode requires the [id of the DailyStory form](/acquisition/web-forms/#unique-id) you wish to display.

Web Form Shortcode

The webform shortcode, [ds-webform id="#"], enables you to use DailyStory Web Forms in your WordPress pages and posts.

Important - this presumes you have the WordPress plugin for DailyStory already installed.

Let's look at an example for how the [ds-webform id="#"] shortcode is used.

  1. Get the Web Form Unique Id

First, you'll need to create or edit a Web Form in DailyStory and get the Web Form's unique id:

Web Form Unique Id

  1. Create a Page in WordPress

Next, create or edit a WordPress page or post and add [ds-webform id="#"] where # is the id of your webform. Using the unqiue web form id value from step 1, this would be:

[ds-webform id="a2vmy"]

  1. Publish the WordPress Page

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.

WordPress Form