Analytics
4.3K members online now
4.3K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Equivalent of custom variables “page” scope for dimensions

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I am trying to upgrade a site's Google Analytics (GA) from the previous ga.js API to the newer analytics.js API. I have an issue with the conversion of Custom Variables into Custom Dimensions.

 

Previously, custom variables had their scope set to "page". However, when I try to create a custom dimension there is no "page" scope. Is there a Dimension scope value equivalent to the "page" scope used in custom variables from the old api? There is nothing in the upgrade ga.js to analytics.js documentation which explains how these previous scope values map to the new ones.

 

ga.js api custom variable scope can have one of these values:

  • Visitor
  • Session
  • Page

 

In the new analytics.js api the scope value for a dimension can be one of the following:

  • Product
  • Hit
  • Session
  • User

Re: Equivalent of custom variables “page” scope for dimensions

A T
Participant ✭ ✭ ✭
# 2
A T
Participant ✭ ✭ ✭

closest you can come to is a 'Hit' for 'Page' scope.