Giter Site home page Giter Site logo

pinpoint-journey-events-attribution's Introduction

pinpoint-journey-events-attribution

Prerequisites

For this solution to work, you will need to use Amazon Cognito for user management. Detailed guide can be found in this repository in PDF format.

Background

Marketing campaigns come with associated cost. Marketers use KPIs to assess their effectiveness and calculate ROI. While Pinpoint provides certain metrics such as email open/read, it does not allow marketers to attribute any custom events to Campaigns or Journeys. The latter results to a marketing spend without the possibility of ROI calculation and not knowing what works well for customers.

Ideal state

When the marketer is launching an email campaign, they should have a KPI, while the email itself should contain a CTA with a goal aligned to the KPI above such as purchase, subscription or code activation. Email campaign goals are usually on site events and if the customer has clicked or read the email, then that customer's events should be attributed to that email campaign. In the end of an email campaign, the marketer should be able to assess its effectiveness and calculate its ROI.

Solution

The solution is enabling marketers to attribute Pinpoint custom events following a customer's interaction with an email, SMS or custom channel. Additionally marketers are able to define a lookback window on a Pinpoint application level. The solution is utilising Cognito for its user attributes' storage, Pinpoint Journeys, CloudWatch, Lambda and DynamoDB. The solution is applicable only for Pinpoint Journeys and the customer's custom events can be attributed only under one marketing campaign at a time. If a customer interacts with a new marketing campaign while they are already in one, then the new one will overwrite the old and any new custom events will be attributed to the new email campaign.

Considerations

  1. You will need to install Amplify SDK for sending events to Pinpoint and Cognito for user management
  2. All Pinpoint users should have a user attribute with the Cognito username a. alt text
  3. Create a custom Cognito user attribute named “campaign”
  4. All Pinpoint custom events sent with Amplify should include an event attribute named “campaign” = Cognito user attribute “campaign”
  5. The solution is deployed on a Pinpoint application level
  6. Applicable only for Pinpoint Journeys and requires a multivariate split step within the journey design
  7. Push notification channel requires additional work
  8. Supports only one campaign per user at a time and if a user enters to a second campaign then the new campaign will overwrite the old one
  9. Expired DynamoDB records based on their TTL attributed are not removed immediately

Architecture

alt text

Business Logic User Tagging

alt text

Business Logic User Expiration

DynamoDB streams emit a REMOVE event Expiration Lambda, which is processing these records will update the Cognito custom user attribute Campaign to blank.

pinpoint-journey-events-attribution's People

Contributors

pioank avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.