Closed PineappleIOnic closed 2 years ago
Are we sure this method are not relevant for other adapters?
At least for the user-agent, it seems it might be common to use it for setting as a default header in our http call to the adapter API.
Do other providers allow us to set the IP?
Looking at the GA Spec, we could use the UIP
parameter to implement the same thing on GA. As for active campaign, I can't find anything in the API Spec that will allow us to do this.
I think it will make sense to move the new methods to the abstract class and ignore them on ActiviteCampaign
This PR adds
setUserAgent
andsetClientIP
methods to the plausible and google analytics adapter to allow easy modification of those variables once set without reinitialising the constructor.