Skip to content
Permalink
Browse files

Add Privacy link to the footer

  • Loading branch information...
marcomontalbano committed Sep 19, 2019
1 parent 2f945a8 commit e22270b61f7e48e55b1ca71a2a95225f84267814
Showing with 13 additions and 2 deletions.
  1. +9 −0 README.md
  2. +2 −0 netlify.toml
  3. +2 −2 src/index.html
@@ -79,3 +79,12 @@ This will start the client server on http://localhost:8080, and the netlify-lamb
[netlify-lambda](https://github.com/netlify/netlify-lambda) isn’t required to deploy Lambda functions to Netlify, but it offers some handy features out of the box that make it quicker to get started, like the local dev server and nice defaults for transpiling and bundling functions in production.

The client server is configured to proxy `/.netlify` requests to the Lambda server (see [webpack.client.js](webpack.client.js)). This is the same behavior the site has when it’s deployed to Netlify.

## Privacy

Google Analytics is used to record the following:

* [Basic visit data](https://support.google.com/analytics/answer/6004245?ref_topic=2919631).
* `referer` or `video url` to track api usage.

By clicking on `convert to markdown` or consuming api you accept this terms & condition; no additional data is sent to the server.
@@ -4,4 +4,6 @@
functions = "dist/server"

[template.environment]
NODE_ENV = "Node Environment"
CLOUDINARY_CLOUD_NAME = "Cloudinary Cloud Name"
GA_TRACKING_ID = "Google Analytics Tracking ID"
@@ -27,8 +27,7 @@
<meta name="theme-color" content="#ffffff">
<script>
(function() {
var isProd = location.hostname === 'video-to-markdown.netlify.com';
if (isProd) {
if (process.env.NODE_ENV === 'production' && process.env.GA_TRACKING_ID) {
window.ga = window.ga || function () { (ga.q = ga.q || []).push(arguments) }; ga.l = +new Date;
ga('create', process.env.GA_TRACKING_ID, 'auto');
ga('send', 'pageview');
@@ -175,6 +174,7 @@ <h2>API</h2>

<footer>
<a rel="noopener noreferrer" href="https://marcomontalbano.com" target="_blank">Marco Montalbano</a>
<a rel="noopener noreferrer" href="https://github.com/marcomontalbano/video-to-markdown#user-content-privacy" target="_blank">Privacy</a>
<a rel="noopener noreferrer" href="https://github.com/marcomontalbano/video-to-markdown" target="_blank"><i class="fab fa-github"></i> GitHub</a>
</footer>
</div>

0 comments on commit e22270b

Please sign in to comment.
You can’t perform that action at this time.