Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keen/amp

Keen-AMP integration
https://github.com/keen/amp

amp amp-html demo tracking

Last synced: 12 days ago
JSON representation

Keen-AMP integration

Awesome Lists containing this project

README

        

# Add Keen analytics to AMP pages

Use one of the examples below to track events on your AMP pages.

Add custom parameters to the `extraUrlParams` property to save them into your collection.

## Get Project ID & API Keys
[Login to Keen to create a project](https://keen.io/login?s=gh_amp) and grab the **Project ID** and **Write Key** from your project's **Access** page.

## Examples of the integration

* [Simple](./simple/index.html) - basic example of the page view tracking. [Demo @JSFiddle](https://jsfiddle.net/k87noayc/)

* [Remote configuration](./remote_configuration/index.html) - define remote configuration to use the same code on different websites. [Demo @JSFiddle](https://jsfiddle.net/osuehmr5/)

* [Vendor configuration](./vendor/index.html) - the default page views tracking configuration provided by Keen. [Demo @JSFiddle](https://jsfiddle.net/mfub20zp/)

---
### Read more about AMP's

#### Triggers:
https://www.ampproject.org/docs/reference/components/amp-analytics#triggers

#### Variable Substitutions:
https://github.com/ampproject/amphtml/blob/master/spec/amp-var-substitutions.md