Analytics
2.7K members online now
2.7K 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

Custom Dimension Scope Configuration

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

Hello, 

 

 

Please suggest analytics scope for below listed custom dimensions. 

 

Should I include them in all analytics tags within tag manager such as page view, transaction, event? 

 

customerLoggedIn - Appeared on all pages

customerId - Logged in users

visitorExistingCustomer -  Logged in users

visitorLifetimeValue - Logged in users

visitorLifetimeOrders - Logged in users

customerGroupCode - Logged in users

transactionPromoCode - Thanks page

transactionPaymentType - Thanks page

transactionShippingMethod - Thanks page

 

 

 

	dataLayer = [];
	dataLayer.push({
	"customerLoggedIn":"Yes",
	"customerId":17,
	"visitorExistingCustomer":"Yes",
	"visitorLifetimeValue":0,
	"visitorLifetimeOrders":0,
	"customerGroupCode":"General"
	});
	
    dataLayer.push({'transactionId': 200000573});
    dataLayer.push({'transactionAffiliation': "www.example.co"});
    dataLayer.push({'transactionTotal': 72.21});
    dataLayer.push({'transactionTax': 0});
    dataLayer.push({'transactionShipping': 7.54});
    dataLayer.push({'transactionPromoCode': "271NB"});
    dataLayer.push({'transactionPaymentType': "PayPal"});
    dataLayer.push({'transactionShippingMethod': "International"});
    dataLayer.push({'transactionProducts': [{
	"sku":"ABCXYZ-ABC-60CT-5",
	"name":"ABC Prduct Name",
	"category":"Category Name",
	"price":64.67,
	"quantity":1
	}]});
	dataLayer.push({'event':'myPageLoad'});

 

 

Looking forward for suggestions. 

 

Thanks

Stephen

 

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Stephen Oliver
January 2017

Custom Dimension Scope Configuration

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

I will try:

 

 

hit: customerLoggedIn - Appeared on all pages
user: customerId - Logged in users
user: visitorExistingCustomer - Logged in users
session: visitorLifetimeValue - Logged in users
session: visitorLifetimeOrders - Logged in users
user: customerGroupCode - Logged in users
hit: transactionPromoCode - Thanks page
hit: transactionPaymentType - Thanks page
hit: transactionShippingMethod - Thanks page

 

 

also do see: https://www.optimizesmart.com/complete-guide-to-dimensions-and-metrics-in-google-analytics/#a14

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Stephen Oliver
January 2017

Custom Dimension Scope Configuration

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

I will try:

 

 

hit: customerLoggedIn - Appeared on all pages
user: customerId - Logged in users
user: visitorExistingCustomer - Logged in users
session: visitorLifetimeValue - Logged in users
session: visitorLifetimeOrders - Logged in users
user: customerGroupCode - Logged in users
hit: transactionPromoCode - Thanks page
hit: transactionPaymentType - Thanks page
hit: transactionShippingMethod - Thanks page

 

 

also do see: https://www.optimizesmart.com/complete-guide-to-dimensions-and-metrics-in-google-analytics/#a14

Custom Dimension Scope Configuration

Follower ✭ ✭ ☆
# 3
Follower ✭ ✭ ☆

Thanks for the help. 

 

As of now I've only placed customerId in PageView and Transaction tag. Do you think recommend other CDs also need to be uploaded in Transaction and Event tags? 

 

Regards

Custom Dimension Scope Configuration

A T
Participant ✭ ✭ ✭
# 4
A T
Participant ✭ ✭ ✭

other than hit CDs, rest can be sent only once.

Custom Dimension Scope Configuration

Follower ✭ ✭ ☆
# 5
Follower ✭ ✭ ☆

Hi, 

 

So you recommend to keep below CDs on all both PageView and Transaction tags.

 

Event tags are not that much important. So I won't add CDs there.  

 

hit: customerLoggedIn - Appeared on all pages
hit: transactionPromoCode - Thanks page
hit: transactionPaymentType - Thanks page
hit: transactionShippingMethod - Thanks page

 

Is it correct? 

Custom Dimension Scope Configuration

A T
Participant ✭ ✭ ✭
# 6
A T
Participant ✭ ✭ ✭

It will beon all pages:

hit: customerLoggedIn - Appeared on all pages

 

It will be only on thanks page:
hit: transactionPromoCode - Thanks page
hit: transactionPaymentType - Thanks page
hit: transactionShippingMethod - Thanks page

Custom Dimension Scope Configuration

Follower ✭ ✭ ☆
# 7
Follower ✭ ✭ ☆

Ok, I see what you mean. 

 

CDs with session and user scope placed accross all pages once user logged in. I hope it should not create any problem.  

 

And is it fine if I keep all CDs in just Analytics tag only? 

Custom Dimension Scope Configuration

A T
Participant ✭ ✭ ✭
# 8
A T
Participant ✭ ✭ ✭

yep. its if all CDs are available in just Analytics tag only.