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 to extend/replace the sendbeacon function? #36

Open
michalrames opened this issue Feb 1, 2017 · 0 comments
Open

How to extend/replace the sendbeacon function? #36

michalrames opened this issue Feb 1, 2017 · 0 comments

Comments

@michalrames
Copy link

Hi,

This is a JS-noob question but I'm hoping someone can point me in the right direction.

I'd like to intercept the sendbeacon() function (reason: custom auditing, adblocked GA, etc...).

Can you advise on the correct way of doing that please? I tried

 player.ga().sendbeacon = function(action, nonInteraction, value) {
		console.log('intercepted');
	};

but that doesn't work.

Thanks

Michal

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