Skip to content

Conversation

@nsorros
Copy link

@nsorros nsorros commented Dec 16, 2016

The problem
When an event gets sent to Google analytics all the properties (options) are lost since GA only supports sending a category, action, label and value argument along with the event.
https://developers.google.com/analytics/devguides/collection/analyticsjs/events

Proposed solution
I suggest we stringify the properties and add them in the event label. This will allow us to differentiate events between each other by using a match regex filter.
http://stackoverflow.com/questions/25373015/google-analytics-event-tracking-with-multiple-labels

Use case
I want to set up a goal for first and repeat investment. I have no way to differentiate by the investment count property since it is not passed in GA.

Copy link

@sergiopatricio sergiopatricio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After having this, do we still need the events in the form /virtual/event/...?
(I don't know where exactly they are used, just have an idea that they were used for some kind of conversion track)

@nsorros
Copy link
Author

nsorros commented Dec 19, 2016

@sergiopatricio They can probably be deleted but I have flagged this as a low priority for now. It is something I will investigate as soon as the first pass of my GA reviews finishes but thanks for flagging this.

@nsorros nsorros merged commit 837b9cf into master Dec 19, 2016
@nsorros nsorros deleted the ga-label-update branch December 19, 2016 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants