Skip to content

Way to override cookie values #9

@tonistiigi

Description

@tonistiigi

In https://github.com/Skookum/nodealytics/blob/6a7817101695720f86bc0149acc7ce00d87096a0/lib/main.js#L139 it firsts checks if cookie values are in the options object and only when they are not found it generates new.

But there is no way to set these values to the options object. It isn't exported and utmcc property is not used anywhere else.

So simple solution would be just to add exports.options = options but ideally I'd like something where I could just pass in the request object and it would figure it out from the headers.

I can provide pull request for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions