angulartics / angulartics-google-analytics

Google Analytics plugin for Angulartics
MIT License
133 stars 86 forks source link

Transport setting not working anymore #87

Closed Frank3K closed 7 years ago

Frank3K commented 7 years ago

In commit aa0a779de8fd0b46463816e3d0b24511e102f9d2 (v0.3.0) the transport setting got lost. Now it's not working anymore.

Support for the transport setting was introduced in #21 and it is mentioned in the readme.


Reproduction: configure the $analyticsProvider as follows:

    .config(function($analyticsProvider) {
        $analyticsProvider.settings.ga.transport = 'beacon';
    });

Observe that image tracking is used using the developer tools.

DanWilkerson commented 7 years ago

Thanks for pointing this out, I've got a PR in that should fix the issue.