Implementation documents

icon picker
Page View Tracking


Page View dataLayer Events
Search
page_view
/_suyyL
page_view
Context
/_suyyL
Popis udalosti
Push this objects to datalayer whenever the page loads. Update the also the user object, also whenever the visitor logs in, logs out, registers, interacts with age_checker, checkout, makes a purchase etc. If the page contains some kind of content (article|blog|podcast|etc.), fill the values for content object parameters. Otherwise the values should be empty.
Príklad kódu
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ page: null }); // Clear the previous page object.
window.dataLayer.push({
"event": "page_view",
"page":{
"page_language": "en",
"page_type": "homepage",

},
"content":{
"content_type": "article|blog|podcast"
"content_category": "example1|example2|example3",
"content_author": "example1|example2|example3",
"content_published": "DD|MM|YYYY",
"content_has_video": true,
"content_has_image": true

}
});
Parametre udalosti
Search
Parameter Name
Description
Data Type
Example Values
Context
content_type
Type of content
String
article|blog|podcast
content_category
Category of the content. Possible multiple values.
Text
example1|example2|example3
content_author
Author of the article. Possible multiple values.
Text
example1|example2|example3
content_published
Date of the article publication.
Text
DD|MM|YYYY
content_has_video
If the article contains a video.
Boolean
True if contains, false if not.
content_has_image
If the article contains an image.
Boolean
True if contains, false if not.
There are no rows in this table
Show hidden columns

Page View dataLayer Parameters
Search
No items available

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.