Analytics
1.7K members online now
1.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

Setting up custom variables (layers of data)

N/A
# 1
N/A

Hello,

 

I am trying to set a way to correlate data.

How would I implement in code to report custom variables and then I correlate them.

 

For example Long Island --> Page Name --> Weather

or New Jersey --> Page Name --> Weather

 

I will need to go into GA and be able to select "Long Island" and get uniques and page views. Is there a way to accomplish this?

 

The other question, how would I pass separate "views" within my code?

 

Thanks!

1 Expert replyverified_user

Setting up custom variables (layers of data)

Rising Star
# 2
Rising Star

Hi,

 

There are numerous ways to do it but custom variables are old news.

 

You could use custom dimensions, content grouping, url renaming etc.  It really depends on your needs.

 

Some resources for you:

 

https://developers.google.com/analytics/devguides/collection/analyticsjs/custom-dims-mets

 

https://developers.google.com/analytics/devguides/collection/analyticsjs/pages#modifying_page_urls

 

https://support.google.com/analytics/answer/2853423?hl=en

 

That said, a hit level custom dimension(s) sent with the pageview would probably work fine.

 

Best,

 

Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn