To track the AMP pages, you must include the amp-analytics tag in your HTML code.

This tag only uses first-party cookies. These cookies can only be used to measure one domain at a time. So if your website is distributed on different domains (e.g. www.website.com and www.website-special.com), no related visit can be counted. However, switching between different subdomains (for example, www1.website.com and www2.website.com) or HTTP/HTTPS is supported.

Name of the Cookie: amp-wt3-eid
Cookie content: /^amp\-[a-zA-z0-9\-_]{64}$/
Cookie domain: *.domain.tld (without Subdomain)
Cookie path: /
Cookie runtime: 365		
TEXT

Example Cookie Content

amp-imS04mTQ5CCw5MMqraI15y-_hPlB1k8Fxk27GcfH1HULHP79-KoRjN5QXkxJlGud
TEXT

Please note that it is not possible to recognize the visit or visitor across pages when he switches between AMP pages and regular pages. In this case, Mapp Intelligence will count one visit/visitor for each of the AMP pages and regular pages.


You can also use third-party cookies to record the user ID. To do this, perform the following implementation:

Example

<amp-analytics type="mapp_intelligence">
    <script type="application/json">
	{
		"vars": {
			"trackDomain": "analytics.mapp.com",
			"trackId": "111111111111111",
			"everId": ""
		},
		"triggers": { 
			...
			"trackPageview": {
				"on": "visible", 
				"request": "pageview" 
			},
			... 
		}
	}
	</script>
</amp-analytics>
XML
ParameterDescription
everIdIf the user recognition is to be collected via third-party cookies, overwrite the variable "everId" with an empty string.