- Vendors
- Acquia Lift
- Adobe Analytics
- AFS Analytics
- Alexa Internet
- AT Internet
- Baidu Analytics
- Burt
- Chartbeat
- Clicky Web Analytics
- comScore
- Cxense
- Dynatrace
- EPICA
- Eulerian Analytics
- Facebook Pixel
- Gemius
- Google Ads
- Google Analytics
- Google Tag Manager
- INFOnline / IVW
- Keen
- Kenshoo
- Krux
- Linkpulse
- Lotame
- Médiamétrie
- mediarithmics
- Moat Analytics
- Mobify
- mParticle
- New Relic
- Nielsen
- Nielsen Marketing Cloud
- OEWA
- Parsely
- Piano
- Pinpoll
- Pressboard
- Quantcast Measurement
- Segment
- SOASTA mPulse
- SimpleReach
- Snowplow Analytics
- Rambler/TOP-100
- TEA Analytics
- Tealium Collect
- Top.Mail.Ru
- Umeng+ Analytics
- Treasure Data
- Webtrekk
- Yandex Metrica
- Vpon Analytics
Analytics vendors
This document lists analytics vendors that have built-in configurations for use with the amp-analytics
component.
To send analytics data to a third-party vendor:
- In the
amp-analytics
tag, add thetype
attribute and set its value to the specified vendor as described in the Vendors section below. - Determine what data you want to capture and track, and specify those details in the configuration data. See the vendor's documentation for instructions on how to capture analytics data.
In the following example, we send pageview data to Google Analytics, a third-party analytics provider with a built-in configuration for amp-analytics
<amp-analytics type="googleanalytics" id="analytics1"> <script type="application/json"> { "vars": { "account": "UA-XXXXX-Y" }, "triggers": { "trackPageview": { "on": "visible", "request": "pageview" } } } </script> </amp-analytics>
TIP – If you're comfortable digging through code, you can explore the raw configurations in the vendors.js
file.
NOTE – Vendors that wish to integrate their service with <amp-analytics>
should refer to the details in Integrate your analytics tools with AMP.
Vendors
Acquia Lift
Type attribute value: acquialift
Adds support for Acquia Lift. The decisionApiUrl
, accountId
and siteId
must be specified. More information about Acquia Lift can be found at https://docs.acquia.com/lift.
Adobe Analytics
Type attribute value: adobeanalytics
Adds support for Adobe Analytics. More details for adding Adobe Analytics support can be found at marketing.adobe.com.
AFS Analytics
Type attribute value: afsanalytics
Adds support for AFS Analytics. Additionally, the websiteid
and server
variables must be specified. More details for adding AFS Analytics support can be found at afsanalytics.com.
Alexa Internet
Type attribute value: alexametrics
Adds support for Alexa Certified Site Metrics. The atrk_acct
and domain
variables must be specified. More information can be found at Alexa’s Certified Metrics FAQ.
AT Internet
Type attribute value: atinternet
Adds support for AT Internet. More details for adding AT Internet support can be found at developers.atinternet-solutions.com.
Baidu Analytics
Type attribute value: baiduanalytics
Adds support for Baidu Analytics. More details for adding Baidu Analytics support can be found at tongji.baidu.com/.
Burt
Type attribute value: burt
Adds support for Burt. Additionally, the trackingKey
variable must be specified. It's also possible to specify the optional variables category
and subCategory
. More details can be found at burtcorp.com.
Chartbeat
Type attribute value: chartbeat
Adds support for Chartbeat. More details for adding Chartbeat support can be found at support.chartbeat.com.
Clicky Web Analytics
Type attribute value: clicky
Adds support for Clicky Web Analytics. More details for adding Clicky support can be found at clicky.com.
comScore
Type attribute value: comscore
Adds support for comScore Unified Digital Measurement™ pageview analytics. Requires defining var c2
with comScore-provided c2 id. More information can be found at comscore.com.
Cxense
Type attribute value: cxense
Adds support for Cxense Insight analytics. Requires defining var siteId
with Cxense-provided siteId. More details can be found at wiki.cxense.com.
Dynatrace
Type attribute value: dynatrace
Adds support for Dynatrace real user monitoring. Requires defining var app
with a Dynatrace provided application id and var tenant
with a Dynatrace provided environment identifier. More details for adding Dynatrace real user monitoring can be found at dynatrace.com.
EPICA
Type attribute value: epica
Adds support for EPICA page views and events. More details can be found at EPICA docs.
Eulerian Analytics
Type attribute value: euleriananalytics
Adds support for Eulerian Technologies Analytics. Requires defining var analyticsHost
with Eulerian delegated domain. More details can be found at eulerian.wiki.
Facebook Pixel
Type attribute value: facebookpixel
Adds support for the Facebook Pixel. In your amp-analytics
configuration, you must define your Pixel ID as pixelId: YOUR-PIXEL-ID
. The events supported along with the corresponding event values that can be specified are detailed in the Facebook Pixel developer documentation.
Gemius
Type attribute value: gemius
Adds support for Gemius Audience/Prism analytics. Additionally, the gemius-provided prefix
and identifier
variables must be specified. It's also possible to specify the optional variable extraparams
(key1=value1|key2=value2). More details can be found at gemius.com.
Google Ads
Type attribute value: googleadwords
Adds support for Google Ads conversion tracking and remarketing. See more details in the Google Ads help center for conversion tracking and remarketing. Both tags can be used independent of each other.
Google Analytics
Type attribute value: googleanalytics
Adds support for Google Analytics. More details for adding Google Analytics support can be found at developers.google.com.
Google Tag Manager
Type attribute value: N/A
Unlike other analytics vendors, Google Tag Manager is a tag management service, and does not require the type
attribute. Google Tag Manager is supported in AMP. Consult the Google Tag Manager documentation for supported tags and for instructions on adding Google Tag Manager to your AMP page.
INFOnline / IVW
Type attribute value: infonline
Adds support for INFOnline / IVW. Requires a copy of amp-analytics-infonline.html on a different subdomain than the including AMP file (why?). The file must be served via HTTPS. For example, if your AMP files are hosted on www.example.com
, then amp-analytics-infonline.html
needs to be on another subdomain such as iframe.example.com
or assets.example.com
.
Additionally, the following variables must be defined:
st
: offer IDco
: commentcp
: codeurl
: HTTPS location ofamp-analytics-infonline.html
More details for adding INFOnline / IVW support can be found at www.infonline.de.
Keen
Type attribute value: keen
Adds support for Keen. Additionally, the following vars
must be defined:
projectId
: your project idwriteKey
: your write key
Use extraUrlParams
to add more data. Configuration details can be found at keen.io/docs/api.
Kenshoo
Type attribute value: kenshoo
Adds support for Kenshoo. More information and configuration details can be found at helpcenter.kenshoo.com.
Krux
Type attribute value: krux
Adds support for Krux. Configuration details can be found at help.krux.com.
Linkpulse
Type attribute value: linkpulse
Adds support for Linkpulse. Configuration details can be found at docs.linkpulse.com.
Lotame
Type attribute value: lotame
Adds support for Lotame. More information and configuration details can be found at mylotame.force.com.
Médiamétrie
Type attribute value: mediametrie
Adds support for Médiamétrie tracking pages. Requires defining var serial
. Vars level1
to level4
are optional. More information can be found at mediametrie.com.
mediarithmics
Type attribute value: mediarithmics
Adds support for mediarithmics. More information and configuration details can be found at developer.mediarithmics.com.
Moat Analytics
Type attribute value: moat
Adds support for Moat. Please contact your Moat representative for configuration details. More information on Moat can be found at moat.com/analytics.
Mobify
Type attribute value: mobify
Adds support for Mobify. More details for adding Mobify support can be found at docs.mobify.com.
mParticle
Type attribute value: mparticle
Adds support for mParticle. More details for adding mParticle support can be found at docs.mparticle.com.
New Relic
Type attribute value: newrelic
Adds support for New Relic Browser to measure AMP throughput and performance. By adding the newrelic
attribute value you’ll need to add your app ID
and license key
from your New Relic Browser account to start capturing data. More details can be found on the New Relic Browser AMP docs page at docs.newrelic.com.
Nielsen
Type attribute value: nielsen
Adds support for Nielsen DCR. Please contact your Nielsen representative to get set up with your apid
as well as assist in defining the remaining parameters in the vars
section. For more information, see Nielsen's support documentation.
Nielsen Marketing Cloud
Type attribute value: nielsen-marketing-cloud
Adds support for Nielsen Marketing Cloud. More details can be found at Nielsen Marketing Cloud.
OEWA
Type attribute value: oewa
Adds support for OEWA. Requires a copy of amp-analytics-oewa.html on a different subdomain than the including AMP file (why?). The file must be served via HTTPS. For example, if your AMP files are hosted on www.example.com
, then amp-analytics-oewa.html
needs to be on another subdomain such as oewa-amp.example.com
. More details for adding OEWA support can be found here.
Additionally, the following variables must be defined:
In the vars
section:
s
: offercp
: category path
In the requests
section:
url
: HTTPS location ofamp-analytics-oewa.html
NOTE – There is a variation named oewadirect
that does not use the iframe-ping solution and has a better client detection by using AMP CLIENT_ID
. This is currently EXPERIMENTAL, and prohibited by the OEWA because it does not use oewa2.js
.
Parsely
Type attribute value: parsely
Adds support for Parsely. Configuration details can be found at parsely.com/docs.
Piano
Type attribute value: piano
Adds support for Piano. Configuration details can be found at vx.piano.io.
Pinpoll
Type attribute value: pinpoll
Adds support for Pinpoll. Configuration details can be found at pinpoll.com.
Pressboard
Type attribute value: pressboard
Adds support for Pressboard. Configuration details can be found at help.pressboard.ca.
Quantcast Measurement
Type attribute value: quantcast
Adds support for Quantcast Measurement. More details for adding Quantcast Measurement can be found at quantcast.com
Segment
Type attribute value: segment
Adds support for segment page views and events. To see the full list of fields that you can send, see Segment Spec.
SOASTA mPulse
Type attribute value: mpulse
Adds support for SOASTA mPulse. Configuration details can be found at docs.soasta.com.
SimpleReach
Type attribute value: simplereach
Adds support for SimpleReach. Configuration details can be found at simplereach.com/docs.
Snowplow Analytics
Type attribute value: snowplow
Adds support for Snowplow Analytics. More details for adding Snowplow Analytics support can be found at github.com/snowplow/snowplow/wiki.
Rambler/TOP-100
Type attribute value: top100
Adds support for Rambler/TOP-100. Configuration details can be found at top100.rambler.ru.
TEA Analytics
Type attribute value: teaanalytics
Adds support for TEA Analytics. More details for adding TEA Analytics support can contact with Kimberly (wuqian56@gmail.com).
Tealium Collect
Type attribute value: tealiumcollect
Adds support for Tealium Collect. More details for adding Tealium Collect support can be found at docs.tealium.com.
Top.Mail.Ru
Type attribute value: topmailru
Adds support for Top.Mail.Ru. Configuration details can be found at Top.Mail.Ru Help.
Umeng+ Analytics
Type attribute value: umenganalytics
Adds support for Umeng+ Analytics. More details for adding Umeng+ Analytics support can be found at dev.umeng.com.
Treasure Data
Type attribute value: treasuredata
Adds support for Treasure Data. Configuration details can be found at treasuredata.com.
Webtrekk
The attribute value ~~webtrekk
~~ is deprecated (will remove on 31/12/2018) - use webtrekk_v2
instead
Adds support for Webtrekk. Configuration details can be found at supportcenter.webtrekk.com.
Yandex Metrica
Type attribute value: metrika
Adds support for Yandex Metrica. Configuration details can be found at Yandex Support.
Vpon Analytics
Type attribute value: vponanalytics
Adds support for Vpon Vpon Analytics. Configuration details can be found at Vpon Analytics.