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

Request for 2 additional params to the configure method in your code? #6

Open
tonym99 opened this issue Jul 25, 2018 · 1 comment
Open

Comments

@tonym99
Copy link

tonym99 commented Jul 25, 2018

Can you add the other optional params for the configure method in your code? This would be much appreciated!

Google allows several more params to the create call which include "name" and "userId". You currently only provide 2 params - trackingId and cookieDomain. It seems like all you have to do is modify these 2 lines of code in your angular-ga.js file:

configure(trackingId, options = 'auto') {
ga('create', trackingId, options);

This is from the Google Analytics site - https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_with_multiple_trackers

ga('create', {
trackingId: 'UA-XXXXX-Y',
cookieDomain: 'auto',
name: 'myTracker',
userId: '12345'
})
;

@SamVerschueren
Copy link
Owner

PR welcome!

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

2 participants