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

Different type of user at the same site (virtual pageview)

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

 

is it possible to trigger virrtual pageviews depending on something unique added to the  site code? I mean i have the same registration site for  3 kind of users and i want to call out 3 different virtual pageviews depending on which type of clients they are. At this point my data base knows the type of client, and my developers can send or add something to the site but i dont know what it should be so i can trigger a tag with a virtual pageview. I hope i have described it well Smiley Tongue

 

Pls help 

Re: Different type of user at the same site (virtual pageview)

Participant ✭ ✭ ☆
# 2
Participant ✭ ✭ ☆
You can modify your tracking code based on kind of user and send location parameter with pageview hit:

ga('send', 'pageview', '/my-virtual-page-path');

Re: Different type of user at the same site (virtual pageview)

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Can you give an example?

Re: Different type of user at the same site (virtual pageview)

Participant ✭ ✭ ☆
# 4
Participant ✭ ✭ ☆
Standard code for sending pageview is:
ga("send","pageview");

Depends on user type you can use this code:

ga("send","pageview","/registration/type1");
or
ga("send","pageview","/registration/type2");
or
ga("send","pageview","/registration/type3");

I don't know how to help you more.