AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
4.8K members online now
4.8K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Custom Event Tracking

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

In addition to ‘global’ user data such as browser, geo-location, URL, etc.… we need to know: category (search), location (header/search results), page, results per page, search term, ect…

A suggested schema for the data would be something like this:

 

{
	eventCategory: 'search',
	eventAction: 'quick search',
        eventLabel: 'search results page'
}

but in addition to this we would want to track some additional custom object like this

{
	projectIds: [1,4,6],
	page:1,
	pageSize:15,
	term: 'custom document'
}

With old GA it supported custom object tacking such as this, but with new UA I dont think it does anymore... is there a way to track this type of complex data and object? do we have to set up tons of custom metrics and dimensions to do so?

1 Expert replyverified_user

Custom Event Tracking

Top Contributor
# 2
Top Contributor

Hi @Jacob H - in essence yes you would need to customize the model via custom dimensions and metrics + maybe some calculated metrics. The other way would be to concatenate the entire custom payload and parse / split it outside of Google Analytics. Please note that this:

{
projectIds: [1,4,6],
page:1,
pageSize:15,
term: 'custom document'
}

 

would have to be rewritten to conform Custom Dimension / Metrics Syntax for a set command que. 

 

Kind regards,

Zorin

Web analyst @ escapestudio.net