Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability so send arbitrary params on track('...') #6

Open
arikon opened this issue Jul 24, 2013 · 15 comments
Open

Add ability so send arbitrary params on track('...') #6

arikon opened this issue Jul 24, 2013 · 15 comments
Milestone

Comments

@arikon
Copy link
Contributor

arikon commented Jul 24, 2013

Yandex.Metrica supports urls with arbitrary params, and allows filtering by them. I think GA should also support this.

We could add support of sending such params to the tracking service.

Example:

var insight = Insight( ... );
insight.track('path', 'to', 'page', {
    param1: 'value',
    param2: 'value'
});

This should transform to the following path:

/path/to/page?param1=value&param2=value

What do you think of it?

@sindresorhus
Copy link
Member

I like it. PR welcome ;)

@arikon
Copy link
Contributor Author

arikon commented Jul 24, 2013

@sindresorhus Will do after (and base on) #4 ;)

@sindresorhus
Copy link
Member

🐤

@arikon
Copy link
Contributor Author

arikon commented Aug 20, 2013

@sindresorhus A bit busy for the last few weeks

@sindresorhus
Copy link
Member

No problem, just thought I would ping in case you forgot ;)

@sindresorhus
Copy link
Member

ping

@arikon
Copy link
Contributor Author

arikon commented Nov 6, 2013

@sindresorhus Sorry guys, no time for this now =(
Shall I close or we could leave it for now as is?

@sindresorhus
Copy link
Member

leave it

floatdrop added a commit to floatdrop/insight that referenced this issue Jan 13, 2014
@rayshan
Copy link
Contributor

rayshan commented Mar 25, 2014

Is the point of this to track custom events / funnels? Would custom dimensions & metrics suffice?
https://developers.google.com/analytics/devguides/collection/analyticsjs/custom-dims-mets

e.g. to track OS type

ga('set', {
  'dimension5': 'OSX'
});

@sindresorhus
Copy link
Member

@arikon ?

@arikon
Copy link
Contributor Author

arikon commented Aug 27, 2014

@sindresorhus Still have no time for this. Feel free to close it if needed.

@sindresorhus
Copy link
Member

@arikon the ? was to the above question, not to implement this.

@arikon
Copy link
Contributor Author

arikon commented Aug 27, 2014

@sindresorhus Oh, I see now =)

@rayshan The point is to track any useful data and generate reports with it. I think custom dimensions & metrics of GA will suffice.

@rayshan rayshan added this to the 1.0 milestone Aug 27, 2014
@rayshan
Copy link
Contributor

rayshan commented Aug 27, 2014

Thanks guys. Now that I understand GA better, custom dim / metrics should be easy to implement.

@omefire
Copy link
Contributor

omefire commented Apr 28, 2016

Hi folks, I just read through the thread and I still don't see how I can use this with .trackEvent(...):

insight.trackEvent('category', 'action', 'label', 42, {
    os: 'Linux', 
    ...
}

I don't see a way to pass the custom dimensions/additional params (the one with the 'os' property)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants