I have ecommerce site and i want to track how many users chose guest checkout and how many registered user purchase.
Is it possible with ? https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce
https://developers.google.com/analytics/devguides/collection/analyticsjs/events
So how can i do that? Thanks in advance.
The Google Analytics basically works as two ways.
1. Page Tracking
2. Event Tracking
Before you track the users first find out what kind of users (i.e Free User or Registered User).
Hope you have the Google Analytics key. Please include the two functions as below.
//Track the events
trackGAEvent(eventName, eventAction, eventCategory)
{
//Do your stuff here
}
//Track the page views
trackGAPageEvent(eventName, eventAction, eventCategory)
{
//Do your stuff here
}
Based on the above functions you'll track.
You can call these functions accordingly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.