php-ga-measurement-protocol icon indicating copy to clipboard operation
php-ga-measurement-protocol copied to clipboard

Reset params after hit

Open elliotlings opened this issue 9 years ago • 1 comments

After submitting a hit could the params be reset except the required ones like trackingId etc? Would this cause issues?

I'm thinking that my IoC can return a singleton Analytics object with the trackingId, clientId etc bootstrapped then after each hit the parameters are reset maintaining trackingId, clientId, etc

elliotlings avatar Feb 08 '16 14:02 elliotlings

The way this is handled right now is just to create a new object, it's not possible (or too cumbersome) in your case to do this?

jorgeborges avatar Feb 15 '16 01:02 jorgeborges