UI Testing with Nightmare

Nightmare is a browser automation library for node.js, designed to be much simpler and easier to use than Phantomjs. We originally built Nightmare to create integration logos with 99Designs Tasks before they had an API, and we still use it in Sherlock. But the vast majority of Nightmare developers—now 55k+ downloads per month—use it for web UI testing and crawling.

January Changelog

 and Han Kim

We work to improve Segment every day. We’re always releasing new features and integrations, updating our product, and publishing new guides on innovative ways to get the most out of your data. Here’s an account of what we did in January.

Introducing Segment for Facebook Lead Ads

Today, we’re excited to announce the beta launch of a new Segment Source: Facebook Lead Ads. With Facebook, people provide their information to their selected business via a pre-loaded form within Facebook. Lead Ads have been shown to be effective across verticals, with popular use cases in generating newsletter sign ups, event attendees, and seeding product discounts.

Improving Our Focus by Measuring Sound Levels

At Segment, focus is one of our four core values. But it was difficult for team members to focus in the office, so in June we ran an internal team survey about what helps and hurts focus. The results showed that “chatter and noise” was one of the biggest culprits for distraction around the office. “Slack group channels” came in second.

How Does Mobile App Size Affect Installs?

LV

When it comes to your app, size makes a difference. Bigger apps have fewer downloads, worse reviews, and a harder time penetrating the international market. We measured the exact impact of increased app size, shown below. We’ve also included learnings on how to prevent bloat in your own app.

Effect of Mobile App Size on Downloads

A few months ago we were at a conference in Half Moon Bay talking with a general manager at a large mobile company, and he said, “One of my projects for the next six months is to reduce SDK bloat in all our apps.” Six months is a substantial investment! So we asked why this mattered so much to him.

Analyzing Segment’s Mobile API Traffic

A customer data platform’s most important job is making the entire customer journey accessible across all the major touch points. Segment focuses on collecting 10 core customer data streams: mobile, web, server, offline, support, sales, email, marketing automation, advertisement, and payments. It’s fairly rare for us to see customers collect data from only one source. In fact,…

Lifecycle of a Mobile API Call

AJ

At Segment, we’re working hard to make our mobile SDKs the best possible collection options for your analytics data. An SDK can make your data more durable, minimize data transfer, and optimize your app’s battery usage. In this article, we’ll take you through what happens under the hood as a piece of data flows through our iOS and Android SDKs from a button handler in your app…

The Segment AWS Stack

AWS is the default for running production infrastructure. It’s cheap, scalable, and flexible to whatever configuration you’d like to run on top of it. But that flexibility comes with a cost: it makes AWS endlessly configurable.

Introducing the Native Mobile Spec

We’re incredibly excited to share that Segment’s customer data platform is now powering the analytics stack for over 3,000 mobile apps, including our friends at HomeAway, HotelTonight, Instacart, VSCO and DraftKings. Collectively, these apps have over 500 million downloads, and we’ve been poring over our data and conversations with these customers to build you something…

Scaling NSQ to 750 Billion Messages

Since Segment’s first launch in 2012, we’ve used queues everywhere. Our API queues messages immediately. Our workers communicate by consuming from one queue and then publishing to another. It’s given us a ton of leeway when it comes to dealing with sudden batches of events or ensuring fault tolerance between services.

Faster Insights with Custom Dashboards for Segment Sources

SS

This week we launched Segment Sources — a new way to bring together all of your customer touch points into a single database. More than 11,000 developers and analysts already rely on Segment to help load data from their websites and mobile apps into their data warehouse for advanced analysis. Now you can add in brand new dimensions of the customer experience that happen…

Introducing Sources: Your Data, Together at Last

Most companies analyze what’s happening on their mobile apps and websites, but that’s only a sliver of the customer experience. Your customers aren’t just using your app—they’re also sending in support tickets, opening emails, talking with your sales team, tapping through your text messages, and more.

How Success Engineers Keep Us Customer-First

Success Engineers play a critical role at Segment. They are our front line, answering customer questions as quickly and thoroughly as possible. The team is so important that Peter, our CEO and the original Success Engineer, does a monthly rotation in Success to stay connected to customer questions and problems.

Segment is Officially a Green Business

BS

A couple of weeks ago a good friend of mine stopped by our Potrero Hill office. As soon as she walked in the office she said, “Wow! This place is like a breath of fresh air.” Ivy that covers one side of our building, and plants are spread throughout our 20,000 sq foot warehouse office.