Looking for a session pageview count. Is there already a utag* cookie or option for knowing when a visitor is on the 1st page of a session (or nth page)? If not, best practice for counting PVs (will we need a new cookie)?

Gold Contributor
Gold Contributor
 
4 REPLIES 4

Looking for a session pageview count. Is there already a utag* cookie or option for knowing when a visitor is on the 1st page of a session (or nth page)? If not, best practice for counting PVs (will we need a new cookie)?

Employee Emeritus

Hi John, cp.utag_main__pn will give you the pageview count and cp.utag_main__ss will be set to 1 when the session starts and 0 otherwise, cp.utag_main__sn is the # of sessions. Here is an article on the utag_main cookies https://community.tealiumiq.com/t5/Tealium-iQ/Tealium-Cookies/ta-p/138 Does this give you what you are looking for?

Looking for a session pageview count. Is there already a utag* cookie or option for knowing when a visitor is on the 1st page of a session (or nth page)? If not, best practice for counting PVs (will we need a new cookie)?

Moderator
Moderator
Hi John, The value you're looking for is utag_main__pn (double underscore between "main" and "pn"). Just add this as a data source with type "First Party Cookie", and it can then be referenced directly in mappings and extensions. Craig.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.

Looking for a session pageview count. Is there already a utag* cookie or option for knowing when a visitor is on the 1st page of a session (or nth page)? If not, best practice for counting PVs (will we need a new cookie)?

Moderator
Moderator
Looks like Jim and I both hit reply at once. Fortunately we both agree on the solution :-)
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.

Looking for a session pageview count. Is there already a utag* cookie or option for knowing when a visitor is on the 1st page of a session (or nth page)? If not, best practice for counting PVs (will we need a new cookie)?

Gold Contributor
Gold Contributor
Perfect. Thank you both
Public