-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up the Cloudfront collector
HOME > SNOWPLOW SETUP GUIDE > Step 1: setup a Collector > [Setup the Cloudfront collector](setting up the cloudfront collector) > Overview
The Cloudfront collector is the most common collector employed by Snowplow uses.
A tracking pixel (called i
) is uploaded to Amazon Cloudfront CDN. The Snowplow Tracker sends data to the collector by making a GET
request for the pixel, and appending the data to be passed to the pixel query string. The Cloudfront Collector uses Cloudfront logging to record the request (including the query string) to S3.
- Simple and robust (no moving parts). All the collector does is faithfully log
GET
requests from trackers. Because logging is done using the standard Amazon Cloudfront logging, it is incredibly reliable. - Scalable. The Cloudfront collector is powered by Amazon's cloud infrastructure: specifically its content delivery network, which is built to billions of requests per day.
This guide assumes you have:
- An account with Amazon Web Services
- S3 and Cloudfront enabled on your AWS account
Setting up the Cloudfront Collector is a five stage process:
- [Setup a bucket on Amazon S3 for the 1x1 tracking pixel] 1-bucket
i
. This is the pixel that will be requested by everyGET
made by the Snowplow tracker. - [Upload the tracking pixel] 2-tracking-pixel to the bucket.
- [Create a bucket on S3 for the Snowplow logs] 3-s3, generated by the Cloudfront collector.
- [Create a Cloudfront distribution] 4-cf for serving the tracking pixel that is now stored in S3. This will ensure that the pixel is fetched very quickly (using Cloudfront's CDN) and crucially we will use Cloudfront logging to record every request made of the tracking pixel. These requests will contain all the data passed to the collector from the tracker, appended to the
GET
request in the form of a query string. - [Test your tracking pixel on Cloudfront] 5-test.
Note: We recommend running all Snowplow AWS operations through an IAM user with the bare minimum permissions required to run Snowplow. Please see our IAM user setup page for more information on doing this.
Home | About | Project | Setup Guide | Technical Docs | Copyright © 2012-2013 Snowplow Analytics Ltd
HOME > SNOWPLOW SETUP GUIDE > Step 1: Setup a Collector > [Setup the Cloudfront Collector] (Setting-up-the-Cloudfront-collector)
- [Setup a Collector] (setting-up-a-collector)
- [Setup the Cloudfront Collector] (setting-up-the-Cloudfront-collector)
- [Step 2: Setup a Tracker] (setting-up-a-tracker)
- [Step 3: Setup EmrEtlRunner] (setting-up-EmrEtlRunner)
- [Step 4: Setup the StorageLoader] (setting-up-storageloader)
- [Step 5: Analyze your data!] (Getting started analyzing Snowplow data)
Useful resources