<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by RudderStack on Medium]]></title>
        <description><![CDATA[Stories by RudderStack on Medium]]></description>
        <link>https://medium.com/@rudderstack?source=rss-a833ce2e841e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*m2MZa2EocgmVKcODeEn5tg.png</url>
            <title>Stories by RudderStack on Medium</title>
            <link>https://medium.com/@rudderstack?source=rss-a833ce2e841e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 08:47:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rudderstack/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Open-sourcing DevBox, our autonomous engineering harness]]></title>
            <link>https://rudderstack.medium.com/open-sourcing-devbox-our-autonomous-engineering-harness-84f1882530b7?source=rss-a833ce2e841e------2</link>
            <guid isPermaLink="false">https://medium.com/p/84f1882530b7</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[RudderStack]]></dc:creator>
            <pubDate>Fri, 30 Oct 2026 20:24:14 GMT</pubDate>
            <atom:updated>2026-10-30T20:24:14.422Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1S1CucvT3f3wFQxz.png" /></figure><p>DevBox is an open source engineering harness you hand a task to the way you would a teammate. It works out which repositories need to change, makes the change, tests it, reviews its own diff, and opens a draft pull request. It’s MIT-licensed, runs on your own infrastructure, and talks to your own model endpoint. The code is at <a href="https://github.com/rudderlabs/devbox">github.com/rudderlabs/devbox</a>.</p><p>We’ve been running DevBox across our own engineering organization since April. And since then:</p><h3>The backlog that never moves</h3><p>Every engineering organization carries work that’s clearly worth doing and never worth prioritizing. An API client that needs one more field mapped. A test with a timeout too tight for CI. A dependency pinned three minor versions back. Documentation that drifted from the code six weeks ago.</p><p>None of it competes with roadmap work, so none of it gets scheduled. It accumulates, and the cost shows up somewhere else: the flaky test everyone reruns, the integration gap that becomes a support ticket, the upgrade that turns into a week of work because it never got the hour it needed.</p><p>The work is understood. Most of these tickets could be written precisely in about two minutes. They sit because no engineer has a free afternoon.</p><p>We built DevBox for that work, and we’re releasing it under the MIT license.</p><h3>What DevBox does about it</h3><p>DevBox works from Linear. Assign it an issue, or mention it on one. What comes back is a draft pull request that DevBox has already tested and reviewed itself. You review that pull request on GitHub and leave your comments there, or you reply in the Linear session instead. Either way it pushes new commits to the same branch.</p><p>The scope is deliberately narrow. DevBox handles short to medium tasks that are already well understood. It doesn’t replace an engineer designing a complex feature, and we don’t run it that way. Human review and steering are part of the design. Follow-up rounds handle corrections: a missed edge case, a test to add, a naming convention to respect. They aren’t for redesigning the approach.</p><p>Each agent writes down what it’s doing, in the Linear session as it goes: the decision it took and the alternative it passed over, the correction a reviewer gave it, the mistake it made and what the right answer turned out to be. The decisions explain why the pull request looks the way it does, which is usually a reviewer’s first question. A mistake that keeps coming back points to a gap in your documentation, or to code worth restructuring so the mistake can’t happen.</p><p>After implementation, a distillation stage decides which of those observations are worth keeping and files them by domain into the repository’s knowledge files: architecture, conventions, patterns, entry points, the stack. Those files are committed in the same pull request as the code change, so new knowledge arrives for review next to the work that produced it.</p><p>When DevBox learns something wrong, you see it in the diff and correct it, the same way you’d correct a misleading comment or a stale README.</p><h3>It follows your conventions</h3><p>The objection we hear most about coding agents is that they write code the way an outsider would, ignoring conventions a team spent years settling.</p><p>DevBox reads its instructions from the repositories it works on. Build commands, test commands, naming rules, the patterns you want and the ones you’ve banned live in files like AGENTS.md at the repository root, next to the code, reviewed like everything else. DevBox can only follow conventions you&#39;ve written down.</p><p>Most of those conventions live in skills, self-contained packages of instructions and expected workflows that sit in the repository alongside the code. A skill describes how one kind of work is done here, such as how a migration is written, or which checks run before a change counts as finished.</p><p>DevBox runs each stage as a separate agent and hands each one the skills it needs before the work starts.</p><h3>How it works</h3><p>Assigning a Linear issue to DevBox calls a webhook on its control plane. The control plane asks OpenSandbox for an isolated environment for that one task, starts it, and watches it.</p><p>From there DevBox is on its own. The harness runs inside the sandbox, carries out the task, and reports progress back to the control plane, which posts it to the Linear issue as it goes. At the end it opens a pull request. Nobody has to intervene before that point, and in practice people rarely do.</p><p>Leaving DevBox alone like that is only reasonable because the sandbox is sealed. Everything it sends out goes through iron-proxy, which adds the real credentials the sandbox never holds, and refuses any host that isn’t on the allowlist.</p><p>Once the pull request exists, the control plane watches for your response: a review or comment on the pull request, a failed CI run, or a message in the Linear session. Any of those starts another round of work on the same branch.</p><p>The control plane is a Bun service with Postgres, sandboxes come from OpenSandbox (containers on a laptop, pods on a cluster), the agents are built on DeepAgents, and iron-proxy handles egress. The whole thing installs from a Helm chart.</p><p>Inside the sandbox the work moves through fixed stages, and each stage is its own agent. The first reads the repositories and your conventions. The next decides which repositories to change and writes a plan, and another agent argues with that plan before a line of code is written. Implementation runs one agent per repository. Then up to six reviewers go over the diff at the same time, each looking for a different class of problem, and a fix pass either resolves what they found or records why it disagreed.</p><p>Each agent can run on its own model and reasoning effort. Review can run on a stronger model at high effort while the early reading stages run cheaply, so cost and quality are set per stage instead of once for the whole pipeline.</p><h3>Why it’s safe to point at your private repositories</h3><p>Most teams hesitate before giving an autonomous process a token with write access to their source code. Five properties of the design address that.</p><p>For production, run DevBox on Kubernetes, where each task is its own pod and the egress rules are enforced by network policy. You can go further and give sandboxes a runtime class, so each one is a Kata Containers virtual machine instead of a container sharing the host kernel. The chart ships a production example that does that, on dedicated nodes. The Docker Compose path exists so you can try DevBox on a laptop in an afternoon. It isn’t the shape to run a team on.</p><h3>What it has done for us</h3><p>We run DevBox across our own engineering organization. Over the last three months it has merged 734 pull requests across 60 repositories, and 80% of the pull requests it took to a decision in that period were merged. The rest were closed after a person read the change and judged it not worth taking.</p><p>The rate rose every month: 72% in August, 79% in September, 91% in October. Our read is that two things changed. DevBox got more capable, and we got better at briefing it.</p><p>A third of it is small features. They’re small in a specific way: one more field in a mapping, an audit for an API version change, a configuration flag behind a safe default. Work that can be specified precisely and is never urgent enough to schedule.</p><p>One recent example: a new customer hit a bug in one of our integrations in their first weeks with us. DevBox had a pull request open 21 minutes after an engineer approved the work, and the fix was live for every customer that afternoon.</p><p>The pull request that relicensed DevBox under MIT, ahead of this release, was opened by DevBox.</p><h3>Where it doesn’t work well</h3><p>DevBox fails in predictable ways, and the failures cluster into three kinds.</p><p>These are the problems a new engineer hits in their first week, and they respond to the same fixes.</p><p>If your team requires a review before merge, someone still reviews every pull request DevBox opens. Those pull requests are easier to review. Each covers one task, follows the conventions you wrote down, and comes out of the same plan-and-review process every time. Short, predictable pull requests are cheaper to read than long, surprising ones.</p><h3>Run it yourself</h3><p>DevBox is MIT-licensed and self-hosted. You bring your own model endpoint and key, so your code and your prompts go to a provider you already have a relationship with. It works with OpenAI-compatible endpoints and with Anthropic’s API.</p><p>Getting started takes one configuration file listing the repositories DevBox may touch and your model endpoint, then a single command to bring the stack up. The first build takes about ten minutes. Connect it to Linear and GitHub, delegate an issue in Linear, and watch the draft pull request arrive.</p><p>The source code, quickstart, and Kubernetes guide are at <a href="https://github.com/rudderlabs/devbox">github.com/rudderlabs/devbox</a>. Pick one ticket from the backlog that never moves and hand it to DevBox.</p><p><em>Originally published at </em><a href="https://www.rudderstack.com/blog/open-sourcing-devbox/"><em>https://www.rudderstack.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84f1882530b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analytics Engineering vs. Data Engineering]]></title>
            <link>https://medium.com/rudderstack/analytics-engineering-vs-data-engineering-ac748d32a8c4?source=rss-a833ce2e841e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac748d32a8c4</guid>
            <dc:creator><![CDATA[RudderStack]]></dc:creator>
            <pubDate>Fri, 27 May 2022 13:56:07 GMT</pubDate>
            <atom:updated>2022-05-27T13:56:07.026Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*4o04KHo-W_D0v0PvOoDzmw.jpeg" /></figure><p>With the explosion of new tools and technologies that make collecting, transforming, and analyzing data much easier, we have now entered a new era for the capabilities of a modern data team. With that new roles have emerged and others have shifted focus. In this article, we’ll highlight the Modern Data Stack that has enabled these new roles for data professionals, we’ll dive into the newest role, the Analytics Engineer, and explain where that leaves the Data Engineer.</p><h3>The Modern Data Stack</h3><p>Compared to other fields like software engineering, for example, the data space is relatively nascent. So, it should come as no surprise that it’s changing fast. The data tooling landscape is evolving at what feels like breakneck speed, and this has a trickle down effect on the organization of data teams.</p><p>New technologies are automating, or at least streamlining, much of the data engineering work that used to bog us all down. These innovations catalyzed the creation of new roles and overhauled old ones.</p><p>The tools driving the organizational changes are the usual suspects that make up what we’ve come to call the modern data stack, and they fit into a few major categories:</p><ul><li>Data warehouse/data lake</li><li>ETL/ELT</li><li>Event streaming</li><li>Data transformation</li><li>Data visualization and BI Tools</li></ul><p>Most of these tools are pretty straightforward to set up, and they often don’t require deep technical knowledge. They’re also really reliable and pretty much just work. Gone are the days requiring a full time person just to manage and operate one tool.</p><p>These foundational technologies have also given rise to new tools that are coming out and leverage the Modern Data Stack like:</p><ul><li>Reverse ETL</li><li>Data Quality Monitoring and Observability</li><li>Headless BI</li></ul><h3>What is Analytics Engineering?</h3><p>Analytics Engineering refers to the role that builds clean and flexible data models for use downstream. These models are used primarily for four use cases which I’ll list below along with an example of the associated tool they might end up in:</p><ul><li>Business intelligence — <a href="https://www.looker.com/">Looker</a></li><li>Reverse ETL — <a href="https://www.rudderstack.com/product/reverse-etl">RudderStack</a></li><li>Machine learning models — <a href="http://continual.ai/?utm_campaign=Rudderstack%20comarketing&amp;utm_source=Rudderstack%20blog">Continual</a></li><li>Exploratory notebooks — <a href="https://hex.tech/">Hex</a></li></ul><p>Analytics engineers are also responsible for ensuring software engineering best practices are followed, like testing, continuous integration, and version control.</p><p>Examples of what Analytics Engineering should take on:</p><ul><li>Building and testing dbt models for downstream use</li><li>Refactoring existing dbt models due to changing business requirements</li><li>Working with Data Engineering and other upstream team members to ensure that data is delivered to them in a format that allows them to build the cleanest and most insightful data models</li><li>Working with downstream stakeholders and end users, including business users and data science, to understand their requirements to ensure the models being created service their needs</li></ul><p>If you want to learn more about analytics engineering, <a href="https://www.getdbt.com/what-is-analytics-engineering/">What is Analytics Engineering</a> is a must read from the team at dbt.</p><h3>Why Analytics Engineering?</h3><p>The key value proposition of the Analytics Engineering role is in the creation of clean, scalable, and reusable data models. These models can be used to drive business decisions with the highest value, but building these models requires a unique skillset. The analytics engineer must understand all aspects of the business and possess necessary technical skills. They must understand the underlying raw data and processes on that data that makes the business run.</p><p>Before dbt changed everything for data transformation, Data Engineering was focused on ingesting data and transforming it in transit. This left the Data Analyst to further transform the data for their needs, leading to inefficient and non-scalable solutions like Looker PDTs or huge amounts of SQL underlying dashboards in tools like Tableau or Chart.io. With datasets that are built and tested by an Analytics Engineer, the SQL that must be run by your BI tool becomes much less complicated and also means less chance for consumers of the data to get the wrong answers.</p><h3>What is Data Engineering?</h3><p>The rise of Analytics Engineering changed the role of Data Engineering from what it used to be.</p><p>Before the modern data stack, data engineers had to spend most of their time just ensuring data ingestion pipelines were running, dealing with database administration, and chasing down errors with queries. Now that the majority of these problems have been taken care of with off-the-shelf tools, data engineering has entered a new phase. Data Engineers are now free from the shackles of just keeping a system running, so they can add more value in other areas.Some examples of the new responsibilities now under the purview of data engineering are:</p><p><strong>Building custom data pipelines from internal services — </strong>Due to the custom nature and usually high volume of internal data pipelines that are used to power a company’s product(s) it is the role of the data engineer to build a data pipeline that can pipe this data to the data warehouse.</p><p><strong>Managing and optimizing data infrastructure — </strong>While there are lots of tools that make our lives in the data world easier, they still need to be managed, maintained, and optimized.</p><ul><li>ETL tools need to be set up and maintained.</li><li>CI/CD pipelines need to be created to ensure that any transformation or other pipelines are operating correctly and changes are vetted before being deployed</li><li>Data pipeline failures need to be handled — even in the best of cases, there can always be issues that can cause outages for any of these services. Data engineers are best equipped to understand and fix these issues.</li></ul><p><strong>Optimizing queries — </strong>Data engineers should have a deep understanding of the technologies they’re using, especially the data warehouse, that gives them insight into optimizing queries to make most efficient use of them.</p><h3>A bright future in harmony</h3><p>By harnessing the power of both Analytics Engineering and Data Engineering roles at your organization, you get a whole that is more than the sum of its parts. When the team is working optimally, they can support each other where Data Engineering is ensuring the quality and timeliness of raw data coming into the Data Warehouse and Analytics Engineering takes that and builds the models that will power the business insights.</p><p>With the combined powers of Analytics Engineering and Data Engineering, you find yourself in data nirvana with a full understanding of the data coming and going from the data warehouse. Together, Data Engineers and Analytics Engineers can not only leverage that data for maximum business value, but also suggest what new data should be implemented or extracted to create even more value for the business. The Analytics Engineering, Data Engineering combo enables companies to develop, iterate, analyze, and take action faster than ever before.</p><p>We all stand on the shoulders of giants, and the modern data stack has delivered so much power to all of us who work with data. Let’s continue innovating and building to show how much farther we can go 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac748d32a8c4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rudderstack/analytics-engineering-vs-data-engineering-ac748d32a8c4">Analytics Engineering vs. Data Engineering</a> was originally published in <a href="https://medium.com/rudderstack">RudderStack</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How RudderStack Core Enabled Us To Build Reverse ETL]]></title>
            <link>https://medium.com/rudderstack/how-rudderstack-core-enabled-us-to-build-reverse-etl-4dc734df9fdb?source=rss-a833ce2e841e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4dc734df9fdb</guid>
            <dc:creator><![CDATA[RudderStack]]></dc:creator>
            <pubDate>Thu, 07 Apr 2022 01:27:20 GMT</pubDate>
            <atom:updated>2022-04-07T01:27:20.052Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*Oxjey_-K9upTv_6VP9WqBA.jpeg" /></figure><p>One of the goals of a <a href="https://www.rudderstack.com/blog/what-is-a-customer-data-platform/">customer data platform</a> is to make the movement of data from any source to any destination easy while guaranteeing correctness, reliability, efficiency, and observability. In that sense, reverse ETL is no different, it’s <a href="https://www.rudderstack.com/blog/reverse-etl-is-just-another-data-pipeline">just another data pipeline</a>.</p><p>In 2019, RudderStack started as a data infrastructure tool supporting <a href="https://www.rudderstack.com/product/event-stream">event streaming</a> to multiple destinations, including the data warehouse. From the outset, we made the data warehouse (or data lake/lakehouse 🙂) a first class citizen, supplying automated pipelines that allow companies to centralize all of their customer data in the warehouse. It’s important not to overlook the impact of this decision, because placing the storage layer at the center and making all the data accessible is key to unlocking a plethora of use cases. But getting the data into the warehouse is basically only useful for analytics. It’s getting it back out that enables brand new use cases, and that’s where Reverse ETL comes in.</p><h3>What is Reverse ETL?</h3><p>Reverse ETL is a new category enabling the automation of brand new business use cases on top of warehouse data by routing said data to cloud SaaS solutions, or operational systems, where sales, marketing, and customer success teams can activate it.</p><p>Building pipelines for Reverse ETL comes with a unique set of technical challenges, and that is what this blog is about. I’ll detail our engineering journey, how we built <a href="https://www.rudderstack.com/product/reverse-etl">RudderStack Reverse ETL</a>, and how Rudderstack Core helped us solve more than half of the challenges we faced. In a way, building this felt like a natural progression for us to bring the modern data stack full circle.</p><h3>What is RudderStack Core?</h3><p>RudderStack Core is the engine that ingests, processes, and delivers data to downstream destinations. Main features:</p><ul><li>Ingest events at scale</li><li>Handle back pressure when destinations are not reachable</li><li>Run user defined JavaScript functions to modify events on the fly</li><li>Generating reports on deliveries and failures</li><li>Guarantees the ordering of events delivered is same as the order in which they are ingested</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jLCGOEAUO7HzftR6" /></figure><h3>The technical challenges we faced building Reverse ETL</h3><p>First, I’ll give an eagle eye view of the different stages to building Reverse ETL and the challenges associated with them. Along this stroll, I’ll explain how RudderStack Core helped us launch it incrementally, making several big hurdles a piece of cake. I must give major kudos to our founding engineers who built this core in a “think big” way. Their foresight drastically reduced the amount of effort we had to put into designing and building engineering solutions for Reverse ETL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UeGpJuYlc_mg6k4P" /></figure><h3>1. Creating a Reverse ETL pipeline</h3><p>Out of all the steps, this was the easiest one, though it was still a bit tricky.</p><h4>1.1 Creating a source</h4><p>Warehouse source creation gets complicated because of credentials and because of the read and write permissions one needs to maintain transient tables for snapshots and evaluating diffs. It’s important to ensure the user can easily provide only the necessary permissions for reverse ETL, so the pipeline tool does not end up with access to more tables in the customer’s production than needed or with any unnecessary write access.</p><p>This is a tricky problem made harder by the differences between warehouses. We asked ourselves a few key questions when building this:</p><ul><li>How can we simplify and streamline the commands and accesses for different warehouses?</li><li>How can we help one validate these credentials when creating a source?</li></ul><p>In this instance, our control plane enabled us to reuse and build on existing components. This was crucial because we wanted to make validations in a generic way, so they would be reusable as we continue adding more data warehouse and data lake sources. Our team iterated a lot on how to educate users on which permissions are required and why. Check out our documentation on <a href="https://www.rudderstack.com/docs/reverse-etl/snowflake/#step-1-creating-a-new-role-and-user-in-snowflake">creating a new role and user in Snowflake</a> for an example. We had to work to ensure only relevant validations and errors would show when setting up a source, and we came up with faster ways to run some validations.</p><p>As an example, in our first iteration we used Snowflake queries to verify whether the provided credential allowed us to validate the needed schema for RudderStack, so we could read, write, and manage transient tables to it. These queries were scheduled in the normal queue manner by Snowflake, but for some customers it took minutes for these queries to run. So, we found a<a href="https://docs.snowflake.com/en/sql-reference/sql/show.html#general-usage-notes"> better</a> solution from Snowflake where SHOW commands do not require a running warehouse to execute. With this new solution, validations complete within a minute or less for all customers. As we built out the reverse ETL source creation flow, the big wins that we adopted from the existing RudderStack Core platform were:</p><ul><li>Our WebApp React components’ modular designs were re-usable in the UI</li><li>We were able to re-use code for managing credentials securely and propagate it to the Reverse ETL system in the data plane</li><li>We were able to deliver faster because RudderStack Core allowed us to focus on the user experience and features vs. building infrastructure from the ground up</li></ul><h4>1.2 Creating a destination</h4><p>Every data pipeline needs a source and a destination. When it came to creating destinations for Reverse ETL, RudderStack Core really shined. Enabling existing destination integrations from our Event Stream pipelines was straightforward. We built a simple JSON Mapper for translating table rows into payloads and were able to launch our Reverse ETL pipeline with over 100 destinations out of the box. Today the count is over 150 and growing! We’re also incrementally adding these destinations to our <a href="https://www.rudderstack.com/docs/reverse-etl/features/visual-data-mapper/">Visual Data Mapper</a>. For further reading, <a href="https://www.rudderstack.com/blog/using-rudderstack-to-backfill-data-in-mixpanel/">here’s a blog</a> on how we backfilled data into an analytics tool with Reverse ETL and some User Transformations magic.</p><h3>2. Managing orchestration</h3><p>The Orchestrator was critical and one of the more challenging systems to build, especially at the scale RudderStack is running. Reverse ETL works like any batch framework similar to ETL. If you’re familiar with tools like <a href="https://airflow.apache.org/">Apache Airflow</a>, <a href="https://www.prefect.io/">Prefect</a>, <a href="https://dagster.io/">Dagster</a>, or <a href="https://temporal.io/">Temporal</a>, you know what I’m talking about — the ability to schedule complex jobs across different servers or nodes using DAGs as a foundation.</p><p>Of course, you’re probably wondering which framework we used to build out this orchestration layer. We did explore these options, but ultimately decided to build our own orchestrator from scratch for a few key reasons:</p><ul><li>We wanted a solution that would be easily deployed along with a <a href="https://github.com/rudderlabs/rudder-server">rudder-server</a> instance, in the same sense that rudder-server is easily deployed by open source customers.</li><li>We wanted an orchestrator that could potentially depend on the same Postgres of a rudder-server instance for minimal installation and would be easy to deploy as a standalone service or as separate workers.</li><li>We love <a href="https://go.dev/">Go</a>! And we had fun tackling the challenge of building an orchestrator that suits us. In the long run, this will enable us to modify and iterate based on requirements.</li><li>Building our own orchestrator makes local development, debuggability and testing much easier than using complex tools like Airflow.</li><li>We love open source and would like to contribute a simplified version of RudderStack Orchestrator in the future.</li></ul><h3>3. Managing snapshots and diffing</h3><p>Let’s consider one simple mode of syncing data: upsert. This means running only updates or new inserts in every scheduled sync. There are two ways to do this:</p><ul><li><strong>Marker column:</strong> In this method, you define a marker column like <strong>updated_at</strong> and use this in a query to find updates/inserts since the previous sync ran. There are multiple issues with this approach. First, you have to educate the user to build that column into every table. Second, many times it’s difficult to maintain these marker columns in warehouses (for application databases, this is natural, and many times DBs provide this without any extra developer work).</li><li><strong>Primary key and diffing:</strong> In this method, you define a primary key column and have complex logic for diffing.</li></ul><p>We went with the second option. One major reason was that we could run the solution on top of the customer’s warehouse to avoid introducing another storage component into the system. Also, the compute power and fast query support in modern warehouses were perfect for solving this with queries and maintaining snapshots and diffs to create transient sync tables.</p><p><strong>Hubspot table after incremental sync of new rows:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lDktc1_0d8zuyayr" /></figure><p><strong>Sync screen in RudderStack:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G-7TdytCRn1BIOFz" /></figure><p><strong>Snapshot table view:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*baRA_7MpM6ppnNsl" /></figure><p>Now, you might be thinking: “What’s the big deal? It’s just creating some queries, running them and syncing data?“ I wish, but it’s not as simple as it looks. Also, this was one of the challenges RudderStack core couldn’t help with. Here are a few of the challenges that emerge when you dig deeper into the problem:</p><ul><li>Diffing needs to be very extensible, not only for the multiple warehouse sources we already support, but also for integrating with future warehouse and data lake sources.</li><li>You have to implement state machine based tasks to handle software or system crashes and any errors that occur across a multitude of dependencies.</li><li>You have to maintain record ordering checkpoints during sync to ensure a higher guarantee of delivering exactly once to destinations.</li><li>You have to support functionality for pausing and resuming syncs.</li><li>You have to handle delivery of records that failed to deliver on the previous sync.</li></ul><p>On top of those considerations, there were a number of other interesting problems we found related to memory, choice of CTE vs temporary table, columns data types, structs in BigQuery, and more, but that’s another post for another day.</p><h3>4. Managing syncing, transformations, and delivery to destinations</h3><p>RudderStack Core significantly shortened the development cycle for syncing, running transformations in the data pipeline, and final delivery to destinations.</p><p>In large part, this is because our Reverse ETL and Event Stream pipelines have a lot in common relative to these use cases. In fact, from a source perspective, Reverse ETL pulling from warehouse tables is much simpler than SDK sources, so we were able to have more precise control over ingestion and leverage rudder-server for everything else. Here’s what rudder-server took care of:</p><ul><li>Destination transformations (mapping payloads to destination API specs)</li><li>Calling the right APIs for add, update, delete, and batch APIs if supported</li><li>User transformations (custom JavaScript code written by users to modify payloads)</li><li>Managing the rate limits of destination APIs (which vary significantly) and providing a back pressure mechanism for Reverse ETL</li><li>Handling failed events with retries and providing finally failed events back to Reverse ETL</li><li>A mechanism to identify completion of sync tasks</li><li>New integrations and feature enhancements (automatically usable by our Reverse ETL pipeline when deployed to RudderStack Core)</li></ul><p>Even though the items above were huge wins from RudderStack Core, there were some other interesting problems we had to solve because we use rudder-server as our engine to deliver events. I won’t dive into those now, but here’s a sample:</p><ul><li>It’s challenging to deliver events to our multi-node rudder-server in a multi-tenant setup</li><li>It’s complicated to guarantee event ordering for destinations that require it</li><li>We have to respect the rate limits of different destinations and use back pressure mechanisms, so we don’t overwhelm rudder-server, all while maintaining fast sync times</li><li>Acknowledging completion of a sync run with successful delivery of all records to destination</li></ul><h3>5. Maintaining pipelines with observability, debuggability, and alerting</h3><p>Any automated data pipeline needs some level of observability, debugging, and alerting, so that data engineers can take action when there are problems and align with business users who are dependent on the data.</p><p>This is particularly challenging with systems like Reverse ETL. Here are the main challenges we had to solve:</p><ul><li>Long running processes must account for software crashes, deployments, upgrades, and resource throttling</li><li>The system has dependencies on hundreds of destinations, and those destinations have API upgrades, downtime, configuration changes, etc.</li><li>Because RudderStack doesn’t store data, we have to create innovative ways to accomplish things like observability through things like live debuggers, in-process counts (like sending/succeeded/failures), and reasoning for any errors that are critical</li></ul><p>Accounting for software crashes, deployments, upgrades, and resource throttling required a thoughtful design for Reverse ETL, here’s how we did it:</p><ul><li><strong>State machine</strong>: State based systems look simple but are incredibly powerful if designed well. Specifically, if an application crashes, it can resume correctly. Even failed states like failed snapshots can be handled properly by, say, ignoring it for the next snapshot run.</li><li><strong>Granular checkpoint: </strong>This helps make sure no duplicate events will be sent to destinations. For example, say we send events in a batch of 500 and then checkpoint. The only possibility would be that one entire batch might get sent again if the system restarted or if it happened during deployment as it was sent to rudder-server, but could not checkpoint. On top of this, rudder-server only has to maintain a minimal batch of data to add dedupe logic on top because it doesn’t need to save an identifier for all records for a full sync task.</li><li><strong>Support for handling shutdown and resuming</strong>: Graceful shutdown handling is critical for any application, especially for long running stateful tasks. My colleague Leo <a href="https://www.rudderstack.com/blog/implementing-graceful-shutdown-in-go/">wrote an amazing blog post about how we designed graceful shutdown in Go</a>, which you should definitely read.</li><li><strong>Auto scale systems:</strong> Automatically scaling systems handle tasks that are running in a distributed system, which is necessary for handling scale, both for Reverse ETL side as well as the consumer (rudder-server). At any given time a Reverse ETL task might be running on a single node, but might have to be picked up by another node if the original node crashes for some reason. On the consumer side (rudder-server), data points might be sent to consumers running on multiple nodes. Guaranteeing lesser duplicates, in-progress successfully sent records, and acknowledging completion of sync tasks are really interesting problems at scale.</li><li><strong>Proper metrics and alerts</strong>: We added extensive metrics and various alerts, like time taken for each task, number of records processing from extraction to transformation to destination API calls, sync latencies for batches of records, and more.</li><li><strong>Central reporting on top of metrics</strong>: Beyond just metrics for Reverse ETL, there is a need for a central reporting system as multiple systems are involved in running the pipeline, from extraction to final destination. We wanted to capture details for all stages to ensure we had full auditability for every pipeline run.</li></ul><p>Again, RudderStack Core was a huge help in shipping several of the above components of the system:</p><ul><li><a href="https://www.rudderstack.com/docs/destinations/"><strong>Destinations</strong></a>: when it comes to integrations, maintenance is critical because things must be kept up to date. Many times things fail because of destination API upgrades or different rate limits, not to mention upkeep like adding additional support for new API versions, batch APIs, etc. Because destinations are a part of RudderStack Core, the Reverse ETL team doesn’t have to maintain any destination functionality.</li><li><a href="https://www.rudderstack.com/docs/user-guides/administrators-guide/monitoring-and-metrics/"><strong>Metrics</strong></a>: rudder-server already included metrics for things like successfully sent counts, failed counts with errors, and more, all of which we were able to use for our Reverse ETL pipelines.</li><li><a href="https://www.rudderstack.com/docs/get-started/live-events/"><strong>Live Debugger</strong></a>: Seeing events flow live is incredibly useful for debugging while sync is running, especially because we don’t store data in RudderStack. We were able to use the existing Live Debugger infrastructure for Reverse ETL.</li></ul><h3>Concluding thoughts</h3><p>Building out our Reverse ETL product was an amazing experience. While there were many fun challenges to solve, I have to reiterate my appreciation for the foresight of our founding engineers. As you can see, without RudderStack Core this would have been a much more challenging and time consuming project.</p><p>If you made it this far, thanks for reading, and if you love solving problems like the ones I covered here, come join our team! Check out our open positions <a href="https://boards.greenhouse.io/rudderstack">here</a>.</p><p>This blog as originally published at: <a href="https://www.rudderstack.com/blog/how-rudderstack-core-enabled-us-to-build-reverse-etl/">https://www.rudderstack.com/blog/how-rudderstack-core-enabled-us-to-build-reverse-etl/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4dc734df9fdb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rudderstack/how-rudderstack-core-enabled-us-to-build-reverse-etl-4dc734df9fdb">How RudderStack Core Enabled Us To Build Reverse ETL</a> was originally published in <a href="https://medium.com/rudderstack">RudderStack</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Announcing RudderStack Reverse ETL]]></title>
            <link>https://rudderstack.medium.com/announcing-rudderstack-reverse-etl-d82831dba899?source=rss-a833ce2e841e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d82831dba899</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[reverse-etl]]></category>
            <category><![CDATA[cdp]]></category>
            <category><![CDATA[rudderstack]]></category>
            <category><![CDATA[data-modeling]]></category>
            <dc:creator><![CDATA[RudderStack]]></dc:creator>
            <pubDate>Tue, 05 Apr 2022 16:53:50 GMT</pubDate>
            <atom:updated>2022-04-05T16:53:50.499Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*Xq3eX899bxs99TARjW_cHw.jpeg" /></figure><p>We’re excited to announce that we’re rebranding our Warehouse Actions product line to RudderStack <a href="https://www.rudderstack.com/product/reverse-etl">Reverse ETL</a>. We’ve chosen to do this as we’ve launched a host of new features to make your data engineering workflows easier that I will dive into below.</p><h3>Processing and scheduling flexibility</h3><p>We want to give you the flexibility in scheduling and processing that allows your organization to build your perfect operational pipeline. To achieve this, RudderStack’s Reverse ETL now supports three modes:</p><ul><li>Incremental</li><li>Mirror</li><li>Full Sync</li></ul><p>Whether you are optimizing for efficiency, rebuilding audiences, or performing a SaaS migration, we have you covered.</p><p>We’ve also had customers tell us they benefit from a variety of scheduling modes to make sure their customer data is fresh when it’s sent to the operational systems their business teams use. We started with basic scheduling that let you sync as quickly as every 30 minutes. Today, you can also coordinate with your ETL pipelines through an <a href="https://www.rudderstack.com/docs/reverse-etl/features/airflow-provider/">Airflow operator</a> or direct access to our scheduling API. Plus, we have a fully featured cron, so you can customize your pipelines based on your particular use cases.</p><h3>Visual Data Mapper</h3><p>One of the biggest usability challenges in Reverse ETL is having the confidence that data from your cloud data warehouse will correctly map to your operational systems. Now, instead of guessing if first_name will automatically map to First Name when you hit your destination, our <a href="https://www.rudderstack.com/docs/reverse-etl/features/visual-data-mapper/">visual data mapper</a> gives you a guarantee.</p><p>The visual data mapper pulls in the relevant metadata from both source systems and destination systems, so you don’t have to navigate between multiple windows when setting up your Reverse ETL. Visual data mapper is currently available for 8 destinations, and we are looking to expand quickly based on demand.</p><h3>Custom SQL Models</h3><p>Finally, we are releasing Custom SQL Models. This feature gives you the ability to execute a Reverse ETL based on a SQL query, meaning you’re no longer limited to existing tables or views in the warehouse. You can add a quick filter, simple business logic, or a quick field transformation or concatenation to make sure the data fits in your downstream system the way you want it to.</p><p>Previously, you could achieve this type of flexibility with views, materialized views, or ETL jobs. With custom SQL, you can iterate even faster. What can you do with custom SQL?</p><ul><li><strong>Build audiences.</strong> You can quickly build dozens of audiences with minor adjustments and customizations. If you want quickly accessible lists of last 1 day users, last 3 day users, last 7, 30, etc. you have them at your fingertips.</li><li><strong>Test with speed and confidence.</strong> If you have your table prepared but want to test the integration one more time, custom SQL enables you to quickly iterate. You can limit 100, filter on the rows you think might be problematic, or even filter away problematic rows to make sure your data is where it needs to be.</li><li><strong>Democratize your Reverse ETL.</strong> The data warehouse is the home of a complex ecosystem, and not everyone has permission to touch the factory floor for good reason. The custom SQL layer gives your users a low-stakes way to experiment with variations of audiences and datasets that doesn’t affect core data pipelines and minimizes the support load of central data teams.</li></ul><h3>Integrations</h3><p>Reverse ETL is a strong complement to our <a href="https://www.rudderstack.com/product/event-stream/">event stream</a> product. RudderStack’s data platform gives you the ability to hybridize real-time and batch data pipelines to get the best of both worlds. While real-time data gives you the visibility to run your business and communicate with your customers when they are engaged, batch processing is essential for more complex or windowed processing such as personalization, attribution, and cohorting. Combining the two unlocks new value. For example:</p><ul><li>You can maximize the value of your product analytics tools to see both real-time product usage as well as maintain the same cohorts you have built in your warehouse.</li><li>You can maximize the value of your marketing teams’ messaging systems to both trigger transactional messages and execute targeted, personalized campaigns.</li></ul><p>All 150+ of our streaming <a href="https://www.rudderstack.com/docs/destinations/">destinations</a> are supported in Reverse ETL, so you can sync data to your entire stack. In most setups, you can even take advantage of the <a href="https://www.rudderstack.com/docs/transformations/">Transformations</a> and <a href="https://www.rudderstack.com/docs/data-governance/">Data Governance</a> capabilities enjoyed by our streaming ecosystem.</p><h3>How Reverse ETL enhanced Joybird’s data stack</h3><p>RudderStack customers like <a href="https://joybird.com/">Joybird</a>, a La-Z-Boy company, use our Reverse ETL product to save engineering time so they can focus on value-added activities. With RudderStack, Joybird’s data engineering team reduced the time spent on building new integrations and managing data pipelines by 93%. <a href="https://www.rudderstack.com/video-library/joybird-retools-their-customer-data-stack-using-rudderstack-snowflake-and-iterable/">Register</a> for our upcoming webinar with Joybird Director of analytics, Brett Trani, to learn about their experience implementing and using RudderStack Reverse ETL.</p><p>This blog as originally published at: <a href="https://www.rudderstack.com/blog/announcing-rudderstack-reverse-etl">https://www.rudderstack.com/blog/announcing-rudderstack-reverse-etl</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d82831dba899" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making Data Engineering Easier: Operational Analytics With Event Streaming and Reverse ETL]]></title>
            <link>https://medium.com/geekculture/making-data-engineering-easier-operational-analytics-with-event-streaming-and-reverse-etl-b685d6323533?source=rss-a833ce2e841e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b685d6323533</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[reverse-etl]]></category>
            <category><![CDATA[operational-analytic]]></category>
            <category><![CDATA[event-streaming]]></category>
            <category><![CDATA[rudderstack]]></category>
            <dc:creator><![CDATA[RudderStack]]></dc:creator>
            <pubDate>Mon, 04 Apr 2022 14:58:28 GMT</pubDate>
            <atom:updated>2022-04-05T06:58:14.053Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*iuo1cslOYK0UrBUhM_15Tg.png" /></figure><p>The past several years have been somewhat of a revolution in data technologies as tools like the cloud data warehouse have come of age, and principles borrowed from software engineering are rapidly being turned into data-focused SaaS.</p><p>There is a huge amount of information about what these tools allow you to do, and rightly so. In many ways the modern data stack fulfills promises that siloed SaaS tools never could. For example, getting data out of data silos to build a complete, single source of truth customer profile is actually possible in the data warehouse/data lake.</p><p>Tooling has also emerged that helps companies “put data to work” once they have created some sort of value with it (most often in a data warehouse like Snowflake, Google BigQuery, Amazon Redshift, etc.). This has been called <em>operational analytics</em>. Really, operational analytics is just a marketing term coined to describe the reverse ETL workflow of syncing data between your warehouse and the downstream business tools that marketing teams, sales teams, customer success teams, etc. use to run the company.</p><p>Combining all of these tools enables helpful use cases that weren’t possible before. The complete customer profile example is a good one to describe this architecture.</p><p>Building the profiles in the warehouse requires data integration from data sources across the stack. Running ETL/ELT pipelines and collecting behavioral data gives you the full set of user traits in the warehouse. The next logical step is what some call the last mile, sending the full set of characteristics (or a relevant subset) to the operational systems different teams use to run the business.</p><p>This could be marketing automation tools, like Marketo or Braze, sales tools, like Salesforce or Hubspot CRM, customer support tools like Zendesk, business intelligence tools like Tableau or Looker, you get the point.</p><p>By delivering enriched data from the warehouse to all these tools, data teams effectively give business teams superpowers, equipping them with comprehensive customer information in the tools they use every day to do things like prioritize outreach, build better email lists, optimize marketing campaigns, craft better customer experiences, etc.</p><h3>Reverse ETL makes data engineering easier</h3><p>Because so much attention is placed on use cases for business users, like the one above, it’s easy to overlook one of the biggest benefits of all this modern tooling (and reverse ETL tools in particular): they make data engineering easier.</p><p>Even before the modern data stack, it was technically possible to build a complete customer profile in an operational system like Salesforce, but it was a painful, expensive endeavor that pushed SaaS tools far beyond their intended uses. It also required multiple full time roles (and often consultancies) to maintain the brittle Frankenstein of connectors and customizations. For most companies, the juice wasn’t worth the squeeze.</p><p>Thankfully, the modern data stack is making data engineering easier, enabling data teams to focus on more valuable problems, as opposed to building and maintaining low-level data infrastructure just to move data.</p><p>In the next section of this post, I’ll give an overview of a real-world data challenge we faced at RudderStack and how we used our own customer data pipelines, including our <a href="https://www.rudderstack.com/product/reverse-etl">Reverse ETL</a> solution, and warehouse to solve it.</p><h3>A classic data challenge: getting richer conversions into ad platforms</h3><p>Instrumenting pixels and conversions from ad platforms is one of the more frustrating tasks for data teams, especially when you try to implement anything more complex than the most basic use cases. In what can only be described as perverse irony, those more complex use cases are actually what unlock the most value from digital advertising because they give the algorithms better data for optimization.</p><p>One of the most common use cases is sending some sort of signup or lead conversion to a platform like Google Ads. For RudderStack, those conversions are either form fills on the website or account creations in our app. Thankfully, we don’t have to deal with all of the direct instrumentation using something like Google Tag Manager because RudderStack makes it easy to map existing <a href="http://rudderstack.com/product/event-stream/">event stream</a> identify and track calls (like “User Signed Up”) to conversions in Google Ads.</p><p>Sending all signups as conversions is helpful, but our paid team wanted to take it a step further: specifying which conversions represented qualified signups (i.e., MQLs). That sounds simple on the surface, but it’s actually a tricky data engineering problem because our MQL definition is both behavioral (did the user perform certain behaviors) as well as firmographic/demographic (company size, industry, job title, etc.). To add even more spice to the challenge, our firmographic/demographic enrichment happens via <a href="https://dashboard.clearbit.com/docs">Clearbit API</a> calls, <em>and</em> the ultimate ‘operational home’ for the MQL flag on a user is Salesforce.</p><p>Think about building a custom solution just to try to get those enriched conversions into Google Ads. Yikes.</p><p>The good news is that Google provides a data point that opens a pathway to tying all of this together. We won’t go into detail, but it is called the “<a href="https://support.google.com/google-ads/answer/9744275">gclid</a>,” which stands for “Google click ID.” This value represents a unique click by a unique user on a particular ad. It’s appended to the end of the URL that the user is directed to when they click.</p><p>Using the gclid and some clever workflows in our stack, we are able to not only send MQL conversions to Google Ads, but also drive much more detailed reporting on our paid advertising performance.</p><p>We will cover the step-by-step details in an upcoming guide, but here’s the basic workflow:</p><h3>First, grab the gclid value from the URL property of a page call, and add it to the user profile table in the warehouse</h3><p>One widespread method of capturing the gclid on a lead record is creating a hidden field on forms or signup flows, grabbing the value from the URL, and populating the hidden field so that on submission, the user record has a gclid value (in some sort of custom field). The main problem with that method is that many users don’t fill out the form on the page they land on (they browse the site for more information), meaning the UTM parameter is lost on subsequent pageviews.</p><p>Mitigating that problem is fraught with peril and many data engineers attempt the annoying practice of persisting the gclid value in the data layer, often in Google Tag Manager, so that it stays with the user as they browse the site. Not only is this brittle, but becomes an enormous pain when you have to build similar workflows for other ad platforms. Suffice it to say, this is a huge data engineering headache no matter which way you slice it.</p><p>RudderStack, dbt, and the warehouse make this much, much easier. We already track anonymous pageviews for each unique user, and those page calls include the URL as a property in the event payload. When the user eventually converts, we have the associated track and identify calls in the warehouse, so we can tie all of the previously anonymous pageviews to that now-known user.</p><p>We already run a dbt model that generates enriched user profiles, which includes the MQL flag from Salesforce pulled via a <a href="https://www.rudderstack.com/product/etl">RudderStack ETL</a> (extract, transform, load) job. A few simple lines of SQL allow us to grab any previous pageviews associated with MQLs that include URL properties with a glcid value.</p><p>Easy as that, we have the gclid value added to MQL user profiles without all of the mess of trying to persist values, do direct instrumentation with Google Tag Manager, or build a bunch of custom pipelines.</p><h3>Second, send the gclid value to Salesforce via reverse ETL and sync MQLs to Google Ads via direct integration</h3><p>At this point, a majority of the operational analytics work is done. We just need to complete the loop by getting the enriched MQL conversions back to Google Ads.</p><p>There are a few ways to do this: you could send the enriched conversions directly to Google Ads, but we chose to use the direct integration between Salesforce and Google Ads so that our data engineering team didn’t have to maintain additional pipelines.</p><p>So, the only thing left to do was get the gclid value into Salesforce. Amazingly, that was already taken care of by the reverse ETL job we were running to add other enriched data points (like lead score) to lead records in Salesforce. Revenue ops created a custom field, which we mapped in our RudderStack Reverse ETL job, and the data flow was complete.</p><h3>On to more important problems</h3><p>Our team wired up, tested, and deployed this solution in a few hours. I have battle scars from wrangling I’ve done in the past to achieve similar data flows, so it was pretty mind boggling to see how easily we accomplished this.</p><p>The best part, though, was that it gave our data team time to move on to the bigger, more important problem of collaborating with our analytics team to build better reporting on ad performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b685d6323533" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/making-data-engineering-easier-operational-analytics-with-event-streaming-and-reverse-etl-b685d6323533">Making Data Engineering Easier: Operational Analytics With Event Streaming and Reverse ETL</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From First-Touch to Multi-Touch Attribution With RudderStack, Dbt, and SageMaker]]></title>
            <link>https://medium.com/geekculture/from-first-touch-to-multi-touch-attribution-with-rudderstack-dbt-and-sagemaker-94d2beacd4ce?source=rss-a833ce2e841e------2</link>
            <guid isPermaLink="false">https://medium.com/p/94d2beacd4ce</guid>
            <category><![CDATA[customer-data-platform]]></category>
            <category><![CDATA[rudderstack]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[attribution-modeling]]></category>
            <category><![CDATA[dbt]]></category>
            <dc:creator><![CDATA[RudderStack]]></dc:creator>
            <pubDate>Mon, 04 Apr 2022 14:22:45 GMT</pubDate>
            <atom:updated>2022-04-05T06:58:15.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*SsFaigLlbgcljBGS_jqVpw.jpeg" /></figure><h3>An overview of the architecture, data and modeling you need to assess contribution to conversion in multi-touch customer journeys</h3><p><strong>Where should we spend more marketing budget?</strong></p><p>The answer to this age-old budget allocation question boils down to determining which campaigns are working and which aren’t, but with the amount of data we collect on the customer journey today, it’s not always crystal clear which campaigns are which.</p><p>Upon first glance, it’s fairly straightforward to review metrics in ad platforms like Google ads to examine ROI on paid ad campaigns, and you may even be sending conversion data back to that platform, but you’re still restricted to evaluating only a fraction of the user interactions (one or two steps of the conversion path at best) that led up to and influenced a sale.</p><p>These limitations are due to the fact that many ad platforms were built when basic marketing attribution was enough for most companies. Today, though, data teams and marketers have more data than ever, increasing their appetite for more advanced attribution solutions. Even so, advanced attribution is still hard. But why?</p><p>In short, moving beyond basic single-touch attribution introduces a number of complexities. Instead of binary outcomes (this digital marketing campaign brought someone to our site or it didn’t), a user can have many marketing touchpoints, which introduces the idea of influence along a buyer’s journey, and that’s where things start to get tricky.</p><p>To understand which marketing efforts are contributing more to a successful objective (conversion event) we have to evaluate it relative to all of the other campaigns, and this is very complicated. First, it involves collecting and normalizing an enormous amount of data from a lot of different sources, and second it requires the application of statistical modeling techniques that are typically outside the skillsets of many marketing departments.</p><p>Neither of these marketing measurement challenges should be addressed by the marketing team. The first (comprehensive data collection) is a data engineering problem and the second (statistical modeling) is a data science problem. Because those are not core skills in marketing, most marketers fall back on last-touchpoint models or outsource complex attribution to third-party attribution tools that don’t have a complete picture of the attribution data. The problem is, these types of attribution cannot deliver the deep insights necessary for a holistic, cross-channel understanding of marketing performance across the whole consumer journey from the first touchpoint to the last click. Thankfully, modern tooling can solve this problem across teams.</p><p><strong>The challenge: when a user is involved in multiple campaigns across multiple sessions on different devices, how do you know which of these different touchpoints actually influenced the sale?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*1rmFg1kNWtNFQ3H1" /></figure><p>The RudderStack approach involves building a data set in your warehouse that combines the events (user touches) as well as the metadata (such as the marketing campaign) associated with them. In addition to analyzing campaign performance, we can also use this same data for a variety of machine learning models including lead scoring and likelihood to repeat a purchase.</p><p>In this article we will walk through how we recently helped an e-commerce customer realign their marketing budget through the use of a combination of different attribution models. We will start with a high level architecture review and how they use RudderStack to collect all of the data (including marketing spend!) to create a complete story of the user journey in their own data warehouse. Next we will show you how they used dbt and RudderStack Reverse ETL to prepare the data for modeling. In this example AWS SageMaker was used to run the Jupyter Notebook and we will walk you through how the results of multiple models are sent back to their warehouse for reporting.</p><h3>Architecture: from comprehensive data collection to using multi-touch attribution models</h3><p>Here is the basic end-to-end flow:</p><ol><li>Stream behavioral events from various platforms (web, mobile, etc.) into the warehouse</li><li>ETL additional data sets to complete the user journey data set in the warehouse (sales emails, app volume usage, inventory, etc.)</li><li>Create enriched user journeys via RudderStack identity stitching</li><li>Define conversion and user features using dbt</li><li>Reverse-ETL user features to S3</li><li>Run python models on the S3 data from a Jupyter Notebook in SageMaker and output results back to S3</li><li>Lambda function streams new result records from S3 to RudderStack and routes to the warehouse and downstream tools</li></ol><p>The end result is that the enriched user journey data produces a data flow and feature set that can feed multiple <em>different</em> attribution models as outputs, from simple to more complex. This is important because downstream teams often need different views of attribution to answer different questions. On the simple end of the spectrum, knowing how people initially enter the journey, their first touch, is very helpful for understanding which channels drive initial interest, while a last-touch model shows which conversions finally turn visitors into users or customers.</p><p>The most important data, however, often lives <em>in between</em> first touch and last touch. In fact, even in our own research on the journey of RudderStack users, we commonly see 10+ total touch points before conversion. Understanding the touchpoints that happen after the first touch that influence the last touch can reveal really powerful insights for marketing and product teams, especially if those touchpoints cost money (in the form of paid campaigns).</p><p>Let’s dig into an overview of the workflow for this use case. Here’s what we’ll cover:</p><ul><li>A quick explanation of how data engineers can collect every touchpoint from the stack (without the pain)</li><li>An overview of how to build basic first touch and last touch attribution</li><li>An explanation of why it’s valuable to apply additional statistical models for multi-touch attribution and an overview of how feature building in dbt fits into the architecture</li></ul><h3>The data engineering challenge: capturing every touchpoint</h3><p>Capturing the entire “user journey” is such a common use case, both for us and our customers, that our teams often take the term for granted. When we talk about user journeys, what we really mean is, “in chronological order, tell me every single touchpoint where a particular user was exposed to our business, whether that be on our website, mobile app, email, etc. and also include metadata such as UTM params, referring URLs etc. that might also provide context or insight about how that particular touchpoint.”</p><p>But where does all of that data come from? The answer is that it comes from all over your stack, which explains why it’s a data engineering challenge. For behavioral event data, our customer uses <a href="https://www.rudderstack.com/product/event-stream/">RudderStack Event Stream</a> SDKs to capture a raw data feed of how users are interacting with their website and mobile app (<a href="https://www.rudderstack.com/docs/stream-sources/rudderstack-sdk-integration-guides/">we have 16 SDKs</a>, from JavaScript to mobile and server-side and even gaming frameworks).</p><p>Behavioral data is only one piece of the puzzle, though. This customer also captured touchpoints from cloud apps in their stack. For that they leverage Rudderstack ETL sources to ingest application data from their CRM and marketing automation tools. Lastly, they use RudderStack’s <a href="https://www.rudderstack.com/docs/rudderstack-api/http-api/">HTTP</a> and <a href="https://www.rudderstack.com/docs/stream-sources/webhook-source/">Webhook</a> sources for ingesting data from proprietary internal systems (those sources accept data from anything that will send a payload).</p><p>It’s worth noting that RudderStack’s SDKs handle identity resolution for anonymous and known users across devices and subdomains. This allowed our customer to use dbt to combine data from cloud apps, legacy data and user event data as part of their identity stitching framework to achieve the coveted 360 view of the customer.</p><p>Solving the data engineering challenge is really powerful stuff when it comes to attribution, in large part because data is the entire foundation of good modeling. This is also why we believe in building your customer data stack in the warehouse, where you are collecting all of your data anyways.</p><p>Our customer told us that one major advantage of having a flexible stack is that, unlike traditional first touch and last touch analysis in GA or Adobe Analytics, building a solution on the warehouse allowed them to factor in the effect (and cost) of coupons and other discounts applied at checkout (via server-side events) and treat them as alternative forms of paid marketing spend. Additionally, having data from sales and marketing automation tools truly completed the picture for them because they could evaluate the contribution of “offline” activity such as emails opened, even if the recipient didn’t click on any links that directed them back to the website. Both of these use cases were impossible for them with third party analytics tools and siloed data.</p><p>So at this point, our customer had all of the data in their warehouse and had stitched together customer profiles and journeys using dbt. Then what?</p><p>After building user journeys with RudderStack and dbt, they had the foundation for creating robust data models for statistical analysis and ML modeling. For their particular e-commerce use case, we helped them create a model that combined both the touchpoints and the marketing campaigns associated with those touchpoints to create a multipurpose dataset for use in SageMaker. Here is a sampling of some of event types and sources used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*6EmHmQHwvasNBjEEC4ZP0w.png" /></figure><p>Once we had established the touchpoints we needed in the dataset, the next step was defining the conversion — a key component of attribution models. This customer’s direct-to-consumer e-commerce use case defined conversion as a customer making any total purchases over a certain dollar threshold (many companies would consider these high value or loyal customers).</p><p>It’s important to note that this can comprise multiple purchases over any time period on a user level, which is impossible to derive in traditional analytics tools because it requires aggregating one or more transactions <em>and</em> one or more behavioral events <em>and</em> tying that to a known user. In the data warehouse, though, the customer had all of that data and could easily manage timelines because each touchpoint had a timestamp.</p><p>Using RudderStack and dbt, we helped them build a dbt model that output a single table of user touches with associated campaigns and flag each user with a timestamp of whether or not the user eventually converted. UTM parameters were extracted from Page calls and woven together with applicable track calls such as “Abandoned Cart Email Coupon Sent,” and then again combined with other data from ETL sources in the warehouse as outlined in the table below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*hrF8rnnrbiNC6pYZReNseA.png" /></figure><p>The output table was designed to serve a variety of different statistical and ML models beyond this use case and includes the following columns:</p><ol><li><strong>userId</strong>: RudderStack user identifier from the various events table. In our case we will use the Rudder ID created from the identity stitching model. For B2B applications, this could be AccountID, Org_ID, etc.</li><li><strong>event_category</strong>: The type of event being sourced. Not used in this analysis but may be useful for filtering or other ML modeling.</li><li><strong>event</strong>: The name of the specific event used to generate the touch. Again, this field is not used in our attribution modeling but will be used in other models.</li><li><strong>channel</strong>: The marketing channel attributed to this particular event. As we will see in our dbt, this could be driven by a UTM parameter on a page event or it may be extrapolated from the source itself (ie, braze SMS messages, email opens form customer.io, server-side events or shipping data already in the warehouse).</li><li><strong>timestamp</strong>: This will typically be the timestamp value on the event itself but could be any timestamp to indicate when this particular touch occurred</li><li><strong>conversion_time</strong>: This represents the timestamp of when the user had their first qualifying order total. This is computed in a different step within the dbt and applied to all of the events for that particular userId. If the user has not completed the checkout process, this will be null. It is important to note that we do not want any events for a particular user after the time the user converts.</li><li><strong>row_id</strong>: The sequence identifier for each userId. This is used by the RudderStack reverse etl to support daily incremental loads for new events each day.</li></ol><p>With the data set created in the warehouse, the customer connected RudderStack’s Reverse-ETL pipeline to send the table to S3, where the attribution modeling was executed in SageMaker and Jupyter Notebooks. They then used a Lambda function to send the results back through RudderStack and into the warehouse, where the team could begin interpreting results. (Keep your eyes peeled for a deep dive into that workflow in an upcoming post.)</p><p>Here’s a visual diagram of the architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*IsuAhT7xsoEScPSf" /></figure><h3>Starting with first and last touch attribution</h3><p>As we said above, this customer wanted to evaluate various attribution models to answer different questions about their marketing spend and the customer journey.</p><p>They started simple, with basic first touch and last touch models. As we said above, every touchpoint is timestamped, so it was fairly simple to extract first/last touch and first/last campaign attribution. This customer in particular was interested in comparing that attribution across first and last touch models, which was simple to achieve within the same report, SQL query, etc. Interestingly, they said this was incredibly valuable because a similar comparative analysis couldn’t be performed in Google Analytics or using a spreadsheet to export last touch attribution from a CRM.</p><h3>The problem with last touch attribution</h3><p>Last touch attribution is the most common way to assign credit for conversion. As simple as it sounds, this is often the case because it’s the easiest kind of attribution to track, especially in tools that were never designed for attribution (custom fields in Salesforce, anyone?). For the sake of clarity, a last touch attribution model assigns all of the ‘credit’ to the last touch. So, if a conversion is valued at $x, and the user interacted with four different campaigns before conversion, only the final campaign gets the whole credit of $x while the 3 previous campaigns get zero credit.</p><p>This becomes a major problem when the campaigns’ goals are different. For example, some campaigns may aim for brand awareness, which almost always means lower conversion rates. When brand campaigns do convert, it usually happens over a much longer period of time, even after the campaign has ended, or as an ‘assist’ that brings the user back in prior to conversion. So, even if certain brand campaigns are extremely influential on eventual conversion, last touch attribution models don’t afford them the credit they deserve. This is particularly important when marketing teams are trying to optimize the balance between spend on brand campaigns vs conversion campaigns.</p><p>We see this scenario across all of our customers, be they B2B or B2C, and the larger the sale, typically the flatter the tail. The chart below shows a typical Days to Conversion chart and highlights how last touch can grossly overstate the influence of a last touch campaign’s significance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/0*A-iE5_Uzxs1B6e0b" /></figure><h3>Better options through statistical modeling</h3><p>With the complexity of today’s marketing environments and the limitations of last touch modeling, we must consider more complex alternatives for assigning the appropriate credit to the appropriate campaign and consider the <strong>full path</strong> up to the point of conversion — which is exactly what our customer set out to do.</p><p>This problem of attributing user conversion to all touches throughout the journey is called <strong>Multi-Touch Attribution (MTA).</strong> This itself can again be done in various rule-based approaches. Some examples of these rules are:</p><ol><li><strong>Linear Attribution Model</strong>: This approach gives equal credit to all touches.</li><li><strong>Time-Decay Model</strong>: More recent touches are weighted more and the longer ago a touch occurred, the less weight it receives.</li><li><strong>U-Shape Attribution</strong>: Similar to Time-Decay except the first and last touches get higher credit and intermediate touches get less.</li></ol><p>These are all heuristic based rules and can be arbitrary. At RudderStack we recommend a more data driven approach. We routinely employ these two established methods:</p><ol><li><strong>Shapley values</strong> are derived from Game Theory, and they essentially capture the marginal contribution from each touch towards the ultimate conversion.</li><li><strong>Markov chain based values</strong> capture the probabilistic nature of user journeys, and the removal effect of each touch point. They also highlight the existing critical touches in the journey — points where if something goes wrong, the conversion probability is negatively impacted.</li></ol><p>Here’s (Fig 3) how our results look using these three models:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*228dCos7Q8QO3DtgVOikVA.png" /></figure><h3>Helpful insights in comparing models</h3><p>When our customer evaluated the returned results in their warehouse, they uncovered some pretty interesting and helpful insights:</p><ol><li>Last touch based attribution gives a very high weight to abandoned cart emails. Anecdotally this makes sense as users are likely enticed by a coupon for something they’ve already considered purchasing and this is the last activity they engage with prior to purchasing. On the other hand, both the Markov and Shapley values suggest that while this may occur just before a conversion, its marginal contribution is not as significant as the last touch model would suggest (remember, the key conversion is total purchases above some value). Instead of continuing to invest in complex abandoned cart follow-up email flows, the customer focused on A/B testing abandoned cart email messaging as well as testing recommendations for related products.</li><li>In the last touch model, Instagram purchases don’t look like a compelling touchpoint. This alone was valuable data, because Instagram purchase data is siloed and connecting activity across marketplaces is complicated. Again, using the warehouse helped break those silos down for our customer. Interestingly, even though last touch contribution was very low, it was clear from the Shapely values that Instagram purchases were a major influence on the journey for high value customers. So, in what would have previously been a counter-intuitive decision, the customer increased marketing spend to drive purchases on Instagram and included content that drove customers back to their primary eCommerce site.</li><li>Markov values for Twitter (organic) posts are much higher compared to the Shapley values. This showed our customer that not many people actually make a significant purchase based on Twitter posts, but when they do, they have very high intent. The customer reallocated spend from Google, which was overrated in the last touch model, and invested in promoting organic Twitter posts and creating new kinds of organic content.</li><li>The Facebook Display campaign has a high Shapley value but low Markov value, which indicates a high dropoff rate from people after seeing ads on Facebook. Based on this insight, the customer moved budget from Facebook to TikTok and YouTube, both of which had far less dropoff.</li></ol><h3>Conclusion</h3><p>The only way to truly understand what campaigns are working is to have full insight into every touchpoint of a user’s journey. RudderStack eliminates the engineering headaches involved in collecting and unifying all of your data feeds and reduces the build time for your data scientists with its uniform schema design and identity stitching. If you would like to learn more about how RudderStack can help address your company’s engineering or data science needs, <a href="https://app.rudderstack.com/signup?type=freetrial">sign up free</a> today and <a href="https://www.rudderstack.com/join-rudderstack-slack-community/">join us on slack</a>.</p><p>This blog as originally published at: <a href="https://www.rudderstack.com/blog/from-first-touch-to-multi-touch-attribution-with-rudderstack-dbt-and-sagemaker">https://www.rudderstack.com/blog/from-first-touch-to-multi-touch-attribution-with-rudderstack-dbt-and-sagemaker</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94d2beacd4ce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/from-first-touch-to-multi-touch-attribution-with-rudderstack-dbt-and-sagemaker-94d2beacd4ce">From First-Touch to Multi-Touch Attribution With RudderStack, Dbt, and SageMaker</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Event Stream Data From Your Astro Site To Google Analytics Using RudderStack]]></title>
            <link>https://levelup.gitconnected.com/how-to-event-stream-data-from-your-astro-site-to-google-analytics-using-rudderstack-cb51e5a52204?source=rss-a833ce2e841e------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb51e5a52204</guid>
            <category><![CDATA[customer-data-platform]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[rudderstack]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[RudderStack]]></dc:creator>
            <pubDate>Thu, 03 Mar 2022 09:58:56 GMT</pubDate>
            <atom:updated>2022-03-03T09:58:56.908Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*QZ2d98SSfs9BgtLkiQUWyg.png" /></figure><p><a href="https://rudderstack.com/">RudderStack</a> is an open-source <a href="https://www.rudderstack.com/blog/what-is-a-customer-data-platform">Customer Data Platform</a> that helps you track your customer events from your web, mobile, and server-side sources and sends them to your entire customer data stack in real-time.</p><p>This guide will help you quickly integrate your Astro site with RudderStack using our <a href="https://github.com/rudderlabs/rudder-sdk-js">JavaScript SDK</a> to get started tracking real-time user events and sending them to your preferred destinations in real-time.</p><p>You can instrument event streams on your Astro site by following three simple steps:</p><ol><li>Integrate your Astro site with the RudderStack JavaScript SDK and set up the tracking code</li><li>Set up a destination in RudderStack to route your event data in real-time</li><li>Deploy your Astro site and verify the events</li></ol><h3>Pre-Requisites</h3><p>Before getting started, your Astro site will need to be installed and set up. If it’s not done yet, visit the <a href="https://docs.astro.build/en/installation/"><strong>official Astro installation doc</strong></a> for more information.</p><h3>Step 1: Integrating Your Astro Site With The RudderStack JavaScript SDK</h3><h3>Creating A Source In RudderStack</h3><p>First, you need to set up a JavaScript source in your RudderStack dashboard that will track events from your Astro site. Follow these steps to set up the source:</p><p>1. Log into your <a href="https://app.rudderstack.com/">RudderStack dashboard</a>. If you’re new to RudderStack, <a href="https://app.rudderlabs.com/signup?type=freetrial">sign up here</a>.</p><p>2. Write down the <strong>Data Plane URL</strong>. You will need this later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/0*43WUY9icXhB2RBDi.png" /></figure><p>3. Create a Source by clicking on the <strong>Add Source</strong> option. You can also click on the <strong>Directory </strong>option in the left nav bar and select <strong>Event Streams</strong> under <strong>Sources</strong>. Next, select <strong>JavaScript</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/0*TgU97jWglqnTCUUy.png" /></figure><p>4. Add a relevant name for the JavaScript Source and click on <strong>Next</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/0*fDXBhIx3LR5bq2yC.png" /></figure><p>5. Your JavaScript source is now configured and ready to track events. Write down the <strong>Write Key</strong> associated with this source. You will need this later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*fJn3DZwro_Cf2QdQ.png" /></figure><h3>Integrating Your Astro Site With RudderStack</h3><p>Integrate RudderStack JavaScript code with your Astro site and set up the tracking code following steps given below:</p><ol><li>Navigate to the <strong>src &gt; pages</strong> folder in your Astro project directory.</li><li>Now open your <strong>index.astro</strong> file in an editor and insert the following lines of code within the <strong>&lt;head&gt;&lt;/head&gt;</strong> tag:</li></ol><pre>&lt;script&gt;</pre><pre>rudderanalytics = <em>window</em>.rudderanalytics = [];</pre><pre><em>var</em> methods = [</pre><pre>&quot;load&quot;,</pre><pre>&quot;page&quot;,</pre><pre>&quot;track&quot;,</pre><pre>&quot;identify&quot;,</pre><pre>&quot;alias&quot;,</pre><pre>&quot;group&quot;,</pre><pre>&quot;ready&quot;,</pre><pre>&quot;reset&quot;,</pre><pre>&quot;getAnonymousId&quot;,</pre><pre>&quot;setAnonymousId&quot;,</pre><pre>];</pre><pre><em>for</em> (<em>var</em> i = 0; i &lt; methods.length; i++) {</pre><pre><em>var</em> method = methods[i];</pre><pre>rudderanalytics[method] = (<em>function</em> (methodName) {</pre><pre><em>return</em> <em>function</em> () {</pre><pre>rudderanalytics.push(</pre><pre>[methodName].concat(Array.prototype.slice.call(arguments))</pre><pre>);</pre><pre>};</pre><pre>})(method);</pre><pre>}</pre><pre>rudderanalytics.load(&quot;WRITE_KEY&quot;,&quot;DATA_PLANE_URL&quot;);</pre><pre>//rudderanalytics.page();</pre><pre>&lt;/script&gt;</pre><pre>&lt;script src=&quot;https://cdn.rudderlabs.com/v1.1/rudder-analytics.min.js&quot;&gt;&lt;/script&gt;</pre><blockquote><strong><em>Important: </em></strong>You can refer to our sample Astro site present in <a href="https://github.com/rudderlabs/rudder-samples">RudderStack Astro site</a> repository for more information on modifying these files.</blockquote><h3>Step 2: Creating A Destination In RudderStack For Routing Your Astro Site Events</h3><p>In this section, we will route our Astro site events to <a href="https://docs.rudderstack.com/destinations/google-analytics-ga">Google Analytics</a>.</p><p>To add Google Analytics as a destination in RudderStack, follow the steps given below:</p><p>1. In your RudderStack dashboard’s left navigation bar, click on <strong>Destinations </strong>and then select <strong>Add Destination</strong> as shown:</p><blockquote><strong><em>Note</em></strong><em>: </em>You can use the <strong>Connect Destinations</strong> option if you have already configured a destination in RudderStack and want to send your event data to that platform.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/0*h18Z9tDe-rGtJLec.png" /></figure><p>2. Next, choose <strong>Google Analytics </strong>as your destination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/0*ENHRQSKXLT4hsChm.png" /></figure><p>3. Add a name to your destination and click on <strong>Next</strong>, as shown:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/0*dcMoB5_iQT2OnUQN.png" /></figure><p>4. Now, connect the <strong>JavaScript </strong>source that we previously configured in Step 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/0*HyuWE-B8wu-x1y44.png" /></figure><p>5. On the <strong>Connection Settings </strong>page, configure your Google Analytics destination with your Google Analytics<strong> Tracking ID</strong> and other optional settings, as shown below. Then, click <strong>Next</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/0*PwVINkx-nU6lqLt-.png" /></figure><p>6. You can also transform your events before sending them to Google Analytics. For more information on this feature, check out our <a href="https://docs.rudderstack.com/adding-a-new-user-transformation-in-rudderstack">documentation</a> on User Transformations.</p><p>7. Well done! Your Google Analytics is now configured as a destination. You should see the following source-destination connection in your dashboard:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*ZepJYcTFn5AMKLT2.png" /></figure><h3>Step 3: Deploying Your Astro Site And Verifying The Event Stream</h3><p>To verify if your event stream works correctly, deploy your Astro site and test if the events are tracked by the <strong>JavaScript source</strong> and delivered to your <strong>Google Analytics destination</strong>.</p><p>You can do this by following these steps:</p><p>1. In your Terminal or cmd, navigate to the root folder containing your Astro project.</p><p>2. To deploy the app, execute <strong>npm run dev</strong> command, as shown:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*1KTppyShC76TSRNQ.png" /></figure><p>3. Open your Astro site by visiting the server address mentioned in the cmd or <a href="http://localhost:3000/">http://localhost:3000</a> on your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*97P0-ahJIQCPOfbr.png" /></figure><p>4. Next, verify whether <strong>rudder-analytics.js</strong> (RudderStack’s JavaScript SDK) has loaded correctly or not. To do this, open your browser’s <strong>Developer tools </strong>and navigate to the <strong>Network tab</strong>. The following screenshot highlights this option for Google Chrome:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/0*d6ASs96UbGuoMhiX.png" /></figure><p>5. Check if RudderStack can track the different page views and clicks by clicking on the <strong>Live Events</strong> tab of your JavaScript source on the RudderStack dashboard page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*FOO_rdxJ1MgnvyIw.png" /></figure><blockquote><strong><em>Note</em></strong><em>: </em>After deploying your app, there can be a slight lag before events start sending and are visible in your dashboard and destination.</blockquote><p>6. Great! RudderStack has successfully tracked and captured the event:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/0*4WB1B9l7uO6lpoG3.png" /></figure><p>7. Finally, check if the events are delivered to your Google Analytics destination. Go to your Google Analytics dashboard and navigate to the <strong>Realtime &gt; Events</strong> option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/0*nELTRC1Qpz0TzPoH.png" /></figure><p>As you can see, there is one active user on the Astro site, and the track event is visible as well. This means the event was tracked and delivered successfully.</p><h3>Questions?</h3><p>In this guide, we covered how to instrument your Astro site with the RudderStack JavaScript SDK to send event data to your preferred destinations in real-time, using Google Analytics as an example. If you have any questions about this integration or would like to learn more about RudderStack, please <a href="/service/mailto:%20docs@rudderstack.com">contact us</a> or start a conversation in our <a href="https://rudderstack.com/join-rudderstack-slack-community">Slack</a> community.</p><h3>Sign Up For Free And Start Sending Data</h3><p>Test out our event stream, ELT, and reverse-ETL pipelines. Use our HTTP source to send data in less than 5 minutes, or install one of our 12 SDKs in your website or app. <a href="https://app.rudderstack.com/signup?type=freetrial">Get Started</a>.</p><p><em>This blog was originally published at:<br></em><a href="https://www.rudderstack.com/guides/how-to-event-stream-data-from-your-astro-site-to-google-analytics-using-rudderstack/"><em>https://www.rudderstack.com/guides/how-to-event-stream-data-from-your-astro-site-to-google-analytics-using-rudderstack/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb51e5a52204" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/how-to-event-stream-data-from-your-astro-site-to-google-analytics-using-rudderstack-cb51e5a52204">How To Event Stream Data From Your Astro Site To Google Analytics Using RudderStack</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RudderStack Product News — Vol.]]></title>
            <link>https://rudderstack.medium.com/rudderstack-product-news-vol-fb710844a3f3?source=rss-a833ce2e841e------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb710844a3f3</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[customer-data-platform]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[beacon-technology]]></category>
            <category><![CDATA[rudderstack]]></category>
            <dc:creator><![CDATA[RudderStack]]></dc:creator>
            <pubDate>Tue, 22 Feb 2022 07:52:43 GMT</pubDate>
            <atom:updated>2022-02-22T07:52:43.836Z</atom:updated>
            <content:encoded><![CDATA[<h3>RudderStack Product News — Vol. #020: SDK Event Filtering, Beacon Support for JS, and OneTrust for JS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*lqLoX6xVdhZfuFVES563TA.png" /></figure><h3>SDK Features: Client-side Event Filtering, Beacon Support for JS, and OneTrust for JS</h3><p>We’re excited to announce a series of new features for our SDKs. Our <a href="https://www.rudderstack.com/docs/stream-sources/rudderstack-sdk-integration-guides/event-filtering">SDK event filtering</a> lets users specify which events should be discarded or allowed to flow through on the client.</p><p>In addition to this, <a href="https://www.rudderstack.com/docs/stream-sources/rudderstack-sdk-integration-guides/rudderstack-javascript-sdk/javascript-sdk-enhancements/#sendbeacon-as-a-transport-mechanism">Beacon Support</a> is now available for JS. You can now use sendBeacon with the latest version of our JS SDK, which provides improved performance via an asynchronous process.</p><p>We now support <a href="https://www.rudderstack.com/docs/stream-sources/rudderstack-sdk-integration-guides/rudderstack-javascript-sdk/consent-managers/">OneTrust</a> as a consent manager for JS SDK. This consent manager offers various cookie consent solutions that allow customers to determine what personal data they are willing to share with a business.</p><p><a href="https://app.rudderstack.com/login"><strong>Try Now</strong></a></p><h3>Airflow for Reverse ETL</h3><p>RudderStack’s new Airflow Provider lets you schedule and trigger your Reverse ETL jobs from outside RudderStack and integrate them with your existing Airflow workflows.</p><p><a href="https://www.rudderstack.com/docs/warehouse-actions/airflow-provider/#using-the-rudderstack-airflow-provider"><strong>Documentation</strong></a></p><h3>Event Volume for Sources</h3><p>The sources page now has a new Events tab that includes information on event volume over time. Volumes are also calculated on a per-event basis so you can understand the footprint of different events in your tracking program. Log into our product to see the latest changes.</p><p><a href="https://app.rudderstack.com/signup?type=freetrial"><strong>Learn More</strong></a></p><h3>Email Notifications on Warehouse Sync Failures</h3><p>We now send out email notifications on warehouse sync failures so you can act on them immediately. Our goal is to reduce silent failures across the ecosystem and expand our notification capabilities over time.</p><p><a href="https://app.rudderstack.com/signup?type=freetrial"><strong>Try Now</strong></a></p><h3>Delta Lake Destination</h3><p>RudderStack now supports Delta Lake as a destination. Delta Lake is an open format storage layer that delivers reliability, security and performance on your data lake.</p><p><a href="https://www.rudderstack.com/docs/data-warehouse-integrations/delta-lake/#databricks-delta-lake"><strong>Documentation</strong></a></p><h3>Integrations</h3><p>Statsig Cloud Mode Integration</p><p>RudderStack supports Statsig as a destination to which people can send real-time event data for efficient A/B testing. Statsig helps companies safely A/B test features in production before rolling them out, avoiding product debates and cost issues when shipping new features.</p><p>Learn more <a href="https://www.rudderstack.com/docs/destinations/testing-and-personalization/statsig/">in the docs</a>.</p><h3>LaunchDarkly Web Device Mode Integration</h3><p>LaunchDarkly is a popular feature management platform that offers high quality A/B testing and experimentation functionalities. RudderStack supports LaunchDarkly as a destination to which customers can seamlessly send their data for flag management.</p><p>Learn more <a href="https://www.rudderstack.com/docs/destinations/testing-and-personalization/launchdarkly/">in the docs</a>.</p><h3>TikTok Ads Cloud Mode Integration</h3><p>TikTok Ads is TikTok’s online advertising platform. We now support TikTok Ads Cloud Mode Integration on web, mobile, and server.</p><p>Learn more <a href="https://www.rudderstack.com/docs/destinations/advertising/tiktok-ads/#tiktok-ads">in the docs</a>.</p><h3>Candu Cloud Mode Integration</h3><p>Candu is a product experience platform that provides no-code web tools for SaaS applications. RudderStack now supports Candu Cloud Mode on web, mobile, and server.</p><p>Learn more <a href="https://www.rudderstack.com/docs/destinations/testing-and-personalization/candu/#getting-started">in the docs</a>.</p><h3>Other happenings at RudderStack</h3><p><strong>🎧 The Data Stack Show: What a High Performing Data Team (and Stack) Looks Like</strong></p><p>Check out this episode of The Data Stack Show to hear Paige Berry from Netlify talk about how they organize their data team for success.</p><p><a href="https://datastackshow.com/podcast/what-a-high-performing-data-team-and-stack-looks-like-with-paige-berry-of-netlify/">Listen</a></p><p><strong>📄 On the Blog: What is a Customer Data Platform?</strong></p><p>Read this post from our Director of Product, Brian Lu, to learn about foundational principles of the customer data platform and get a few CDP evaluation tips.</p><p><a href="https://www.rudderstack.com/blog/what-is-a-customer-data-platform">Read more</a></p><p><strong>🖥 DC_Thurs: Interview with RudderStack’s Founder and CEO</strong></p><p>In this episode of DC_Thurs from Data Council, RudderStack Founder and CEO, Soumyadeb Mitra, chats with Pete Soderling about how uses for the customer data platform extend well beyond marketing.</p><p><a href="https://www.youtube.com/watch?v=CjQNcmZe3Bc">Watch now</a></p><p><em>This blog was originally published at:<br></em><a href="https://www.rudderstack.com/blog/rudderstack-product-news-vol-020-sdk-event-filtering-beacon-support-for-js-and-onetrust-for-js"><em>https://www.rudderstack.com/blog/rudderstack-product-news-vol-020-sdk-event-filtering-beacon-support-for-js-and-onetrust-for-js</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb710844a3f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enabling the Customer Data Stack: RudderStack Series B Funding]]></title>
            <link>https://rudderstack.medium.com/enabling-the-customer-data-stack-rudderstack-series-b-funding-bcf88c45f6e?source=rss-a833ce2e841e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcf88c45f6e</guid>
            <category><![CDATA[customer-data-platform]]></category>
            <category><![CDATA[rudderstack]]></category>
            <category><![CDATA[modern-data-stack]]></category>
            <category><![CDATA[data-privacy]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[RudderStack]]></dc:creator>
            <pubDate>Mon, 14 Feb 2022 09:49:31 GMT</pubDate>
            <atom:updated>2022-02-16T03:42:24.268Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*lqLoX6xVdhZfuFVES563TA.png" /></figure><p>Today, I’m thrilled to announce RudderStack’s $56 million Series B funding led by Insight Ventures with continued support from Kleiner Perkins and S28 Capital. This brings our total funding to $82 million. Our Series B is a big step forward in helping our customers build the best data stacks possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f9gS2OoIA7k42NaH" /></figure><p>In 2019, I co-founded RudderStack with the goal to help data engineers build the infrastructure required to help their businesses understand their users and serve their needs. I was inspired by my experience at my previous company, where I spent a year building customer data pipelines. In the process, I learned about many of the challenges that both myself and my peers were facing as we were collecting and processing customer data at enterprise scale. This funding round is a testament to the progress we have made in addressing these challenges for our customers.</p><p>With this funding round, we intend to accelerate investments in our product to enable engineers everywhere to build future-proof customer data infrastructure.</p><p>I am proud of what this team has accomplished in just a few short years and am looking forward to what the future holds.</p><p>Read the <a href="https://techcrunch.com/2022/02/02/rudderstack-raises-56m-for-its-customer-data-platform/">TechCrunch article</a> featuring our Series B to learn more.</p><p><em>This blog was originally published at:<br></em><a href="https://www.rudderstack.com/blog/enabling-the-customer-data-stack-rudderstack-series-b-funding/"><em>https://www.rudderstack.com/blog/enabling-the-customer-data-stack-rudderstack-series-b-funding/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcf88c45f6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is a Customer Data Platform?]]></title>
            <link>https://medium.com/rudderstack/what-is-a-customer-data-platform-b2862c43f7f3?source=rss-a833ce2e841e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2862c43f7f3</guid>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[customer-data-platform]]></category>
            <category><![CDATA[data-privacy]]></category>
            <category><![CDATA[rudderstack]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[RudderStack]]></dc:creator>
            <pubDate>Thu, 10 Feb 2022 13:25:52 GMT</pubDate>
            <atom:updated>2022-02-10T13:25:52.186Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*AoSe-r0c88Qd3v-TJdB8UA.png" /></figure><p>The goal of a customer data platform (CDP) is to (1) build a unified view of your customers and (2) utilize these profiles to enrich the quality of customer interactions across multiple touchpoints. With a “build once, use everywhere” mentality, organizations can use a CDP to make sure their customer interactions are personalized, consistent across touchpoints, and valuable for all parties involved.</p><h3>What does a customer data platform do?</h3><p>Customers interact with an organization through marketing, sales, support, and the product itself. CDPs help collect and aggregate this information, build customer profiles, and propagate this information to downstream systems. Operational systems take advantage of these profiles to deliver personalized messaging, contextualized interactions, and custom experiences. To achieve this, there are several major things a CDP does:</p><ol><li><strong>Bring in the data.</strong> Customer Data Platforms have integrations with a variety of first-party data sources that capture customer information in relation to an organization. This includes marketing, sales, support, and the product itself.</li><li><strong>Build the profiles.</strong> Customer Data Platforms build unified customer profiles (oftentimes called “Customer 360”) that are a combination of static traits as well as aggregate behavior information.</li><li><strong>Make the profiles useful.</strong> Once the profiles are built, they are utilized by internal apps, sales/marketing/support vendors, and other systems to take advantage of the data to personalize communications or contextualize interactions.</li></ol><h3>Bringing in the data</h3><p>Since customer interactions are captured in a variety of tools and software, there are many</p><p>This includes information such as data used within the product, metadata (e.g. geography), and behavioral data (product usage, marketing responsiveness, sales/support communications). This data is often referred to as “first party data” because it is the customer’s interaction with the organization itself rather than information bought from outside parties.</p><p>There are several ways of bringing in data, many of which are understood in the context of the modern data stack. These are the most common examples.</p><ul><li><strong>Application Event Tracking.</strong> Organizations can leverage SDKs across a variety of languages that enable them to track and understand user behavior and flows throughout a software application. This can be done either on the client (Mobile, Web, Smart Device) or on the server (Python, Java, Go, etc.) with trade-offs for each.</li><li><strong>Vendor Webhooks.</strong> Some software vendors expose webhooks on activity that happens on their platform. These data streams are private to the organization using the vendor and provide information on how the vendors are used.</li><li><strong>Production Databases.</strong> Production databases are a good source of truth for application transactions or production data models. These data streams are often brought in via ELT/ETL (extract, transform, load) processes that leverage modern techniques like change data capture (CDC).</li><li><strong>Vendor Data Extracts.</strong> Vendors that directly engage with customers on behalf of an organization often hold the data within their systems. This data can be extracted in batch through vendor provided APIs.</li></ul><h3>Building the profiles</h3><p>Bringing in customer data enables you to build unified, comprehensive customer profiles based on every touchpoint with your organization. Given the data that is collected through upstream integrations, a customer data platform builds a single view of the user that can be understood, filtered, aggregated, or propagated, depending on the use case.</p><p>Advanced features in building customer profiles include:</p><ul><li><strong>Personalization.</strong> Machine learning models or simple heuristics can help predict what customers are interested in based on existing interaction. This includes personalized recommendations, personalized messaging, or cohort-specific customer journeys. Here’s how one of our customers leverages <a href="https://www.rudderstack.com/blog/real-time-personalization-with-redis-and-rudderstack">RudderStack and Redis for real-time personalization</a>.</li><li><strong>Customer Health.</strong> Customer health is based on a combination of engagement (or lack thereof), quality of interaction, direct feedback, and more. This information can help guide messaging that is encouraging, conciliatory, determined or exploratory depending on how the customer feels about the company/product.</li><li><strong>Identity resolution.</strong> Customer interactions across many tools often share an identifier, but pseudo-anonymous interactions (e.g. pre-login) benefit from being stitched back together to customers once you determine who they were. Learn more about <a href="https://www.rudderstack.com/blog/the-tale-of-identity-graph-and-identity-resolution/">identity resolution</a>.</li></ul><h3>Making the profiles useful</h3><p>Activating data on a customer data platform involves making it available to downstream communication platforms, whether it be sales, marketing, support, or the product itself. These are often the same tools used to capture these interactions from the “Bring in the Data” section above.</p><p>This can involve either pushing the downstream systems or exposing an interface (e.g. API endpoint) that enables vendors to access and aggregate customer data. If the data lives in a cloud data warehouse, there may be technological overlap with products in the <a href="https://www.rudderstack.com/product/reverse-etl">Reverse ETL</a> category which help push data from warehouses to downstream integrations.</p><p>In addition to using data for individual customers, CDPs enable organizations to build audiences lists or properties based on features of audiences. For example, if you want to target all customers from Europe who joined in the past 5 days, a CDP would enable you to leverage the central customer profile to build audience lists that can be used in communication platforms.</p><h3>What should you look for when evaluating a CDP solution?</h3><p>The best customer data platform for you depends on a number of factors you may value for your business. Data storage, privacy, control, cost, completeness, extensibility, and more. Here are a few considerations that should inform your CDP evaluation:</p><ul><li><strong>How complete is the data coming in?</strong> With the new wave of privacy-conscious browser restrictions designed to improve user privacy and to weaken the marketplace of data brokers, first-party event collection systems are often affected even though they are not the intended target. Effective CDPs have a number of approaches to tackling external challenges and verifying data quality.</li><li><strong>How good is the data coming in?</strong> Do you need tight controls over the data quality of the data coming in from your application, your vendors, and your databases? Some CDPs support a concept of Tracking Plans to verify that data coming in has a consistent format that can be used to accurately update a user profile.</li><li><strong>How much control do you have over your data?</strong> When working with a customer data platform, do you need to interact with the data directly, or are you ok working with the data through interfaces provided by the CDP? If a CDP shares its data with you or lives on a cloud data warehouse, then you have more visibility into your data and can re-use your customer data profiles for custom processing and analytics. Read more on <a href="https://www.rudderstack.com/blog/what-is-data-control/">data control</a>.</li><li><strong>What channels do you use to communicate with customers?</strong> B2B organizations have high-value investments in a smaller number of customers through sales processes, while B2C (such as ecommerce or marketplaces) organizations traditionally invest more in digital marketing and advertisements. Different CDPs have product optimizations or cost models that may be more advantageous for one or the other.</li><li><strong>How comprehensive is your data privacy program?</strong> Data privacy laws such as GDPR and CCPA put stricter controls on the collection, access, storage, and facilitation of customer data. A CDP should be able to provide compliance for both data within its system as well as forward deletion requests to downstream systems. In addition to this, some CDPs may go one step further with compliance for medical data (HIPAA). Read more on <a href="https://www.rudderstack.com/blog/customer-data-pipelines-play-a-key-role-in-data-privacy">the role your CDP can play in data privacy</a>.</li></ul><p>Ultimately, the customer data platform is an evolving concept that brings together multiple elements of the modern data stack into a very clear set of goals that enable organizations to make the most out of first-party customer data.</p><p><em>This blog was originally published at:<br></em><a href="https://www.rudderstack.com/blog/what-is-a-customer-data-platform/"><em>https://www.rudderstack.com/blog/what-is-a-customer-data-platform/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2862c43f7f3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rudderstack/what-is-a-customer-data-platform-b2862c43f7f3">What Is a Customer Data Platform?</a> was originally published in <a href="https://medium.com/rudderstack">RudderStack</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>