# impact-map
Impact Map for JesusCares.com

# impact-map
Impact Map for JesusCares.com

## Overview of write process ~226ms

1. A visitor loads a page or makes a commitment on JesusCares.com. Google Tag Manager loads the user.html script, sending a GET request to the CloudFront. The request includes the query string parameter, action, which describes if this is a page view or commitment.
2. CloudFront sends the request to API Gateway since the URL begins with /rest
3. API Gateway sends the request to Lambda, along with the action name and IP address of the client.
4. Lambda in write.js creates a DynamoDB item with an unique ID, the time it was added, when it should expire, the coordinates of the client (looked up with geoip-lite) and what kind of action the client performed.
5. After about 24-48 hours, DynamoDB deletes the item based on the Expire field.


Add overview of write process
Add overview of write process