3.2K members online now
3.2K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
Guide Me

How create funnel with dimensions and metrics?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

How to create visited page funnel with dimensions?

I have this script in all my pages:

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//','ga');

// Analytics
ga('create', 'UA-XXXXXXXX-1','auto',{'name': 'Z'},{'allowLinker': true});
ga('Z.set', 'dimension1', '3563');
ga('Z.set', 'dimension2', 'Name Hotel');
ga('Z.send', 'pageview');


i have 4 pages:

  • Landing Page (default.aspx)
  • Page for add Offers (offers.aspx)
  • Purchase Form (form.aspx)
  • Reservation completed (thanks.aspx)

In Reservation Completed page i have the code:


ga('Z.require', 'ecommerce', 'ecommerce.js');
'id': '6631482 | Name Hotel | RES008744-3563',
'affiliation': 'Name Hotel',
'revenue': '813,9317948775735193217811290', //Value in €
'shipping': '0',
'tax': '0'
ga('Z.ecommerce:addItem', {
'id': '6631482 | Name Hotel | RES008744-3563',
'sku': '7841288',
'name': 'Name Hotel',
'category': 'Category Hotel',
'quantity': '1'});



Using the Dev Tools ( ), i get the results above, but i need the pages too.



Following this logic, I would like to have the pageview amount of the 4 different pages. Something like the goal funnel:






My question


Should I create dimensions with HIT scope?
( )


For example, in the page of Offers, i add this line:

ga('send', 'pageview', '/offers.aspx');

And in the page form, add this:

ga('send', 'pageview', '/form.aspx');


Marked as Best Answer.
Accepted by topic author Thallyson D
January 2017

How create funnel with dimensions and metrics?

[ Edited ]
Explorer ✭ ✭ ☆
# 2
Explorer ✭ ✭ ☆

Hi @Thallyson D,

I am assuming that you want to make horizontal funnels kind of like: 

ID   Hotel    /default   /offers    /form    /thank
1      xyz         3              2            1           1

then you can use custom metric for those 4 pages
Eg: ga(Z.set, 'metric1' ,1 ) for /default
      ga(Z.set, 'metric2' ,1 ) for /offers

You can check here for more detailed explanation:
Also custom metric implementation :

Let us know if you're looking for something else.


Hope this helps,


How create funnel with dimensions and metrics?

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hi @Ritwik B,


Thanks for ideia, i go try this solution Smiley Happy

I think this way I'm really going to get the data I need.