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

How do you set additional methods? #20

Open
ManxStef opened this issue Jan 10, 2015 · 0 comments
Open

How do you set additional methods? #20

ManxStef opened this issue Jan 10, 2015 · 0 comments

Comments

@ManxStef
Copy link

At the risk of asking a stupid question, how do you define additional basic GA methods? For instance, referring to the official Google Analytics docs, I'd like to set the Basic Method:

_setSiteSpeedSampleRate(sampleRate)

so I can track the page speed metrics for 100% of site visitors. But I can't seem to do this in the plugin's options because putting it in a custom variables box yields the following output in my site's source:

_gaq.push(['_setCustomVar', 1, '_setSiteSpeedSampleRate', '100']);

Which isn't correct, it should be:

_gaq.push(['_setSiteSpeedSampleRate', '100']);

Is it possible to add this method via a hook? If so, a bit of example code would be much appreciated!

If not, would it be possible to add this and maybe the _setSampleRate and _anonymizeIp() methods as options to the plugin, please?

Thanks!

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

No branches or pull requests

1 participant