Conversion Funnels

A conversion funnel is a feature that enables tracking how marketing activity influences purchase behavior. This behavior includes: purchases or assignment of value as well as abandonment tracking for use in cart abandoned automations.

How to setup a conversion funnel

Setting up conversion funnel tracking requires a few steps. For some platforms and integrations (such as Shopify) conversion funnel tracking is enabled automatically.

Below are the steps to setup a conversion funnel for a web application.

Conversion tracking for a website or web application

The DailyStory beacon is a small piece of JavaScript. It is a small piece of JavaScript code that should be added to every page in your website.

It is designed to load quietly without interfering with any page performance. It is similar in design to Google's Analytics beacon. Using the beacon enables functionality, such as telemetry on page visits, popups and more. It also is includes the functionality for conversion tracking.

Important

While the beacon technically does not need to be on every page, it is recommended to ensure that you can track conversion flow: product pages -> cart pages -> completed checkout. This is how cart abandonment tracking is supported.

How conversion tracking works with the DailyStory beacon

When using outbound marketing features such as email marketing, DailyStory automatically adds information to every outbound link. This includes the contact's unique DailyStory id (DsID) and it includes a special campaign token that identifies the campaign associated with the link.

For example, an email sent out for Black Friday Cyber Monday may be in a campaign "BFCM 2025". Emails sent from that campaign will append this campaign information to the URL along with the recipients DsID.

The DailyStory beacon looks for this information in the URL and saves it to the browser's local storage (no cookies). This information is then used to associate a page visitors activity with outcomes, such as a checkout.

Create a conversion funnel

The next step is to navigate to Campaigns > All Funnels and create a new conversion funnel. Once the conversion funnel is created you'll have access to the conversion funnel script and unique id.

It looks similar to this:

<!-- DailyStory Conversion Script --> <script> document.addEventListener("DOMContentLoaded", function () { const conversion_value = 0.00; // set conversion amount here window.Ds && window.Ds?.conversion("f99c7c6f-bf25-4b39-9337-890d119eb6ab", conversion_value); }); </script>

This JavaScript is provided as an example, but the functionality needs to be included on your checkout page or wherever you want the conversion to be tracked. And, you will need to assign a value to the conversion. In the example above a const conversion_value is used and passed in to the conversion() function.

How the conversion funnel script works

When the conversion() function is called DailyStory sends the conversion id (e.g. f99c7c6f-bf25-4b39-9337-890d119eb6ab) that identifies the funnel, the conversion value (e.g. 100.25 for $100.25 dollars), the associated campaign and the DsID. This information is then process by the DailyStory application and, if valid, assigns the conversion value to the campaign.

Conversion tracking for an app or integration

Setting up a conversion funnel for a web application is the most common. However, there are APIs available for more advanced use of conversion tracking. For example, from a mobile app.

These steps are documented in our developer center.