Analytics
3.5K members online now
3.5K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Combining two goals, one about destination page and the time on it.

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi!

How can i combine two different goals into one? In my case, i want to know how many visit a certain page and stay there more than a specific period

1 Expert replyverified_user

Re: Combining two goals, one about destination page and the time on i

[ Edited ]
Top Contributor
# 2
Top Contributor

Hi,

if you use GTM easySmiley Happy

The concept is to send an event based on these two conditions so when a person visits a certain page and when he / she is on that page for a defined time.

As easy as:
setTimeout(function(){
ga('send','event','MyGoal','Success');
}, 3000);

Set the goal as event in GA.

Kind regards,
Zorin

Web analyst @ escapestudio.net

Re: Combining two goals, one about destination page and the time on i

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thanks for helping me!
Lets say i want to define time period 20 seconds and a url for my goal
So,
I go to tag manager -> container -> tags -> new -> create a HTML tag - > copy your code ->fire on where? -> next ?
or im totaly wrong?
Marked as Best Answer.
Solution
Accepted by topic author EYplus S
November 2015

Re: Combining two goals, one about destination page and the time on i

Top Contributor
# 4
Top Contributor
Hi,

the example above is not for GTM but rather for hard code implementation.

In case of GTM use:
1 one GA event type tag
1 timer trigger where you:
Leave the event as is
Set for 20000 miliseconds
Limit to 1

Enable when: the page where the event should trigger so {{Page Path}} contains something

Fire on: all timers or if you want additional constraints use Some timers.

Kind regards,
Zorin
Web analyst @ escapestudio.net