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

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:

<script>
(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','//www.google-analytics.com/analytics.js','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');

</script>

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:

 

<script>
//Ecommerce
ga('Z.require', 'ecommerce', 'ecommerce.js');
ga('Z.ecommerce:addTransaction',{
'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'});
ga('Z.ecommerce:send');
</script>

 

 

Using the Dev Tools ( https://ga-dev-tools.appspot.com/query-explorer ), i get the results above, but i need the pages too.
QQabo

 

 


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

 

 7R1rT

 

 

 

My question

 

Should I create dimensions with HIT scope?
(https://support.google.com/analytics/answer/2709828 )

 

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');

 

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
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
etc.

You can check here for more detailed explanation: http://www.analytics-ninja.com/blog/2015/12/google-analytics-custom-metrics-calculated-metrics.html
Also custom metric implementation : https://support.google.com/analytics/answer/2709828?hl=en

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

 

Hope this helps,

Thanks,
Ritwik


View solution in original post

Marked as Best Answer.
Solution
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
etc.

You can check here for more detailed explanation: http://www.analytics-ninja.com/blog/2015/12/google-analytics-custom-metrics-calculated-metrics.html
Also custom metric implementation : https://support.google.com/analytics/answer/2709828?hl=en

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

 

Hope this helps,

Thanks,
Ritwik


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.