Data Layer
Learn about the data layer variables from the AMP library.
The following parameters are populated by the Tealium AMP Library. These variables are included automatically in each tracking call from the library and are used in your Tealium Customer Data Hub configuration.
In the following table, some variables are used for both page view/event tracking, while some are only used for each.
For page view tracking, the default event is screen_view
. For event tracking, specify an event name using the variable tealium_event
.
Parameter | Description | Page Tracking | Event Tracking | Example |
---|---|---|---|---|
amp_hostname |
AMP hostname | ✔ | ✔ | example.com |
amp_request_count |
AMP request count | ✔ | ✔ | 1 |
amp_version |
AMP version number | ✔ | ✔ | 1907022322580 |
ampdoc_url |
AMP document URL | ✔ | ✔ | http://example.com/path/to/file.html |
canonical_hostname |
Canonical hostname | ✔ | ✔ | example.ampproject.org |
content_load_ms |
Time in milliseconds to load the content | ✔ | 66 |
|
domain |
The full domain name of the URL | ✔ | ✔ | example.com |
lang |
Language code | ✔ | ✔ | en-us |
page_view_id |
Page view ID number | ✔ | 769 |
|
pathname |
Path of the URL, excluding the query parameters and domain | ✔ | ✔ | /path/to/file.html |
referrer |
URL path without the file name | ✔ | http://example.com/path/to/ |
|
screen_size |
Screen resolution height x width (pixels) | ✔ | 2560x1440 |
|
scroll_x |
Horizontal scrolling value (x-axis) | ✔ | 0 |
|
scroll_y |
Vertical scrolling value (y-axis) | ✔ | 0 |
|
tealium_visitor_id |
Generated uuid (case-sensitive) | ✔ | ✔ | amp-ABc1dEF2gH3IJK4lmn5OPz |
timestamp |
Epoch timestamp (overridden in the vars block) |
✔ | ✔ | 1563305241134 |
title |
AMP document’s title (overridden in the vars block) |
✔ | ✔ | Hello, AMP |
tz |
Time zone | ✔ | ✔ | 420 |
url |
The full URL of the page | ✔ | ✔ | http://example.com/path/file.html |
viewport_height |
Browser viewport height (pixels) | ✔ | ✔ | 1417 |
viewport_width |
Browser viewport width (pixels) | ✔ | ✔ | 2560 |
This page was last updated: January 7, 2023