Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/keen/amp
- Owner: keen
- Created: 2018-11-16T16:42:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-29T16:03:25.000Z (about 6 years ago)
- Last Synced: 2024-11-09T06:38:16.154Z (2 months ago)
- Topics: amp, amp-html, demo, tracking
- Language: HTML
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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